View Single Post
Old 08-26-2010, 04:32 PM   #42
CoolDragon
Addict
CoolDragon doesn't litterCoolDragon doesn't litter
 
Posts: 244
Karma: 124
Join Date: Feb 2010
Device: none
Quote:
Yes, that's the easy way but It doesn't work if there is some markup in the text, as our case (the big or bold tags). That's the reason I get label first and then set the text using gtk_label_set_markup() instead of xxx_set_text().
I know, you cannot adjust the style of the label using the xxx_set_text(). But xxx_set_text() yields almost identical result as <big>. Anyway, I would like to know how to set the font of the label to some "fixed width" font, because, when the clock updates between full screen refresh, the label width will change a little bit, along with the status bar icons's positions. The result of a local refresh is some "ghost" pixel from previous drawing.
CoolDragon is offline   Reply With Quote