Re: The '*' in gtk rcstrings? (was Re: Setting the background colour of a container)



learfox furry ao net writes:

gchar *rcstring = "
style 'blue_background' {
        bg[NORMAL] = { 0.0, 0.0, 1.0 }
}

widget '*some_blue_fixed_widget' style 'blue_background'
";

The above string was given by WolfGang I think, but what I noticed
was that the name '*some_blue_fixed_widget' was used instead of
'some_blue_fixed_widget'. I tried this example and only with the * did
it work.

Is there a reason the * should be in there? what does * mean?

See the section titled "pathnames and patterns" in:

 http://developer.gnome.org/doc/API/gtk/gtk-resource-files.html

Basically, the 'widget ....' declaration matches against a pathame,
like

 GtkWindow.my_hbox_widget.GtkVBox.some_blue_fixed_widget

Rather than just the widget name.

                                        Owen


 




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