[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Applying font setting universaly



On Wed, 2004-01-14 at 15:15, Tristan Van Berkom wrote:
> Dinesh Nadarajah wrote:
> > Hi:
> > 
> > I am trying to write a small control-panel like application where I
> > would like to set the user select a font and have that apply to all the
> > 'already' open applications.
> > 
> > I can write the .gtk2rc file but that affects only apps. that are open
> > after the file has been written. I want to affect the font setting
> > immediately.
> > 
> Is this in the context of a window manager ?
> 
> You would like to "re-skin" gtk2 applications live *without*
> executing code from the applications in question ?
> 
> If thats the case, it won't be easy...
> 
> 
> Regards,
>                            -Tristan

gtk-theme-switch2 (http://www.muhri.net/nav.php3?node=gts) does it like
this (and it works for me):

GdkEventClient event;
event.type = GDK_CLIENT_EVENT;
event.send_event = TRUE;
event.window = NULL;
event.message_type = gdk_atom_intern("_GTK_READ_RCFILES", FALSE);
event.data_format = 8;
gdk_event_send_clientmessage_toall((GdkEvent *)&event);

after writing the .gtkrc with the proper font/theme information.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]