Re: how to set gtk global font with code?



On Wednesday 10 January 2007 03:27, lonelycat wrote:
>   Hi all:
>
>  Can anyone tell me how to set gtk global font with code instead of editing
> gtkrc file?

GtkSettings has a "gtk-font-name" property representing the default font used 
by the application.  You can extract the settings object with 
gtk_settings_get_default() and then set the property on it.

Chris




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