How to set / get Gtk "Style Properties"

How to set gtk "Style Properties" listed in the gtk documentation?
for example, for GtkWidget there are style properties:

"separator-height" gint : Read "separator-width" gint : Read 

So how to install and install them? using GTK + and C.

Thanks, PP.

+6
gtk
source share
1 answer

For example:

 gint height, width; gtk_widget_style_get(widget, "separator-height", &height, "separator-width", &width, NULL); 

It works like g_object_get() . There is no corresponding gtk_widget_style_set() , although you must install them via the RC file that you download with gtk_rc_parse() . Here is the documentation for the RC files.

Just to be clear, users usually don't like it when you mess with your themes.

+4
source share

All Articles