labels and dpi
Yes but... in fact if I make a bigger label and the user changes dpi again, I run into the same problem. My question is if this is fixable? Or can I only make bigger the label? Thanks in advance -- Forwarded message -- From: Ronald Vincent Tarrant [EMAIL PROTECTED] Date: 10-ene-2006 4:39 Subject: Re: labels and dpi To: gtk-app-devel-list@gnome.org Fernando Apesteguía wrote: I have a problem about displaying text on labels. When I change the dpi font configuration, the text doesn't fit the label, so the message appear to be cutted. I would like to know if there is any way to handle this. May be I'm forgetting some gtk_label_set_* function? Have you tried changing the height/width of the label? label.set_size_request(width, height) Or perhaps this is too obvious and I'm going to get flamed for mentioning it. :-) -Ron T. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: labels and dpi
On Tue, 2006-01-10 at 13:53 +0100, Fernando Apesteguía wrote: Yes but... in fact if I make a bigger label and the user changes dpi again, I run into the same problem. My question is if this is fixable? Or can I only make bigger the label? It sounds like you are using a fixed x/y layout instead of packing the label and widget into a horizontal box. Use automatic layout if you can. If for some reason you have to use fixed positioning, your code needs to position the label and then move the widget to make room... taking into account the changes in a right-to-left locale such as one using Arabic! Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org www.advogato.org ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
labels and dpi
2006/1/10, Ronald Vincent Tarrant [EMAIL PROTECTED]: Fernando Apesteguía wrote: Yes but... in fact if I make a bigger label and the user changes dpi again, I run into the same problem. My question is if this is fixable? Or can I only make bigger the label? If you're talking about the width, try adding a space at the end of your string like this: Label It took me a while to figure out what you're talking about, but I remember running into this when populating a menu. Is that what you're doing? If so, that's the only fix I could come up with other than doing a lot of nonsensical calculations with dpi, etc. -Ron T. Actually, I want my app behaves for example like the gnome font dialog. When I change dpi configuration, dialog, gnome panel and others, they expand their widths and heights to fit the text. Did you try it?. Maybe I'm missing some widget property to do this automatically. The other possibility is to code calculations with dpi as you said. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: labels and dpi
Fernando Apesteguía wrote: Actually, I want my app behaves for example like the gnome font dialog. When I change dpi configuration, dialog, gnome panel and others, they expand their widths and heights to fit the text. Did you try it?. Maybe I'm missing some widget property to do this automatically. The other possibility is to code calculations with dpi as you said. ___ Okay, now that I know more or less what you're up to, I'm sorry to say I have no ideas other than, as stated earlier, calculating on the fly somehow. I would imagine you're using a GtkStyle to set the font, so that would be the place to look for raw data to calculate size. Sorry I can't be more helpful. -Ron T. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
labels and dpi
Hi, I have a problem about displaying text on labels. When I change the dpi font configuration, the text doesn't fit the label, so the message appear to be cutted. I would like to know if there is any way to handle this. May be I'm forgetting some gtk_label_set_* function? Thanks in advance!! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: labels and dpi
Fernando Apesteguía wrote: I have a problem about displaying text on labels. When I change the dpi font configuration, the text doesn't fit the label, so the message appear to be cutted. I would like to know if there is any way to handle this. May be I'm forgetting some gtk_label_set_* function? Have you tried changing the height/width of the label? label.set_size_request(width, height) Or perhaps this is too obvious and I'm going to get flamed for mentioning it. :-) -Ron T. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list