View Single Post
Old 08-26-2010, 04:41 PM   #43
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by CoolDragon View Post
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.
The easy way is to change the /usr/share/popupmenu/popupmenu.rc "style" file. You can find some simple useful examples on the lua apps I've released.
EDIT: adding a name for the widget (gtk_widget_set_name() ?) could help to identify only this label in the style file.

Last edited by Iņigo; 08-26-2010 at 04:50 PM.
Iņigo is offline   Reply With Quote