diff options
author | Tim Janik <timj@gtk.org> | 1998-06-30 12:34:36 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-06-30 12:34:36 +0000 |
commit | 10184125551c2cccbf1b31f64100c064a4e3c2ab (patch) | |
tree | bc0997055a1e1e4535d3e140fdb5544ef4879c47 /tests/testgtkrc | |
parent | b483ca4b9765c3fb39e1af170b35786679f216bc (diff) | |
download | gtk+-10184125551c2cccbf1b31f64100c064a4e3c2ab.tar.gz |
fixed lookup order for rc styles. the latest defined rc set pattern is
Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
rc set pattern is favoured, this is needed for overriding of style
patterns with subsequently parsed rc files.
Diffstat (limited to 'tests/testgtkrc')
-rw-r--r-- | tests/testgtkrc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/testgtkrc b/tests/testgtkrc index a44970bf7a..af20076f5e 100644 --- a/tests/testgtkrc +++ b/tests/testgtkrc @@ -10,8 +10,7 @@ # widget <widget_set> style <style_name> # widget_class <widget_class_set> style <style_name> -# testgtkrc2 introduces the green color in the button list - +# testgtkrc2 sets all the buttons in the main window to blue by default include "testgtkrc2" pixmap_path "." @@ -33,17 +32,11 @@ style "scale" bg_pixmap[NORMAL] = "<parent>" } -style "button" +style "button" = "default" { # fg[PRELIGHT] = { 1.0, 1.0, 1.0 } # bg[PRELIGHT] = { 0, 0, 0.75 } -} - -# we set all the buttons in the main window to be blue by default -style 'main_buttons' = 'button' -{ - font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*" - bg[PRELIGHT] = { 0, 0, 0.75 } +# bg[PRELIGHT] = { 0.75, 0, 0x00 } } style "toggle_button" = "button" @@ -79,6 +72,15 @@ style "curve" fg[NORMAL] = { 58000, 0, 0 } # red } +# override testgtk2, introduce the green color in the button list +style 'button_list' = 'button' +{ + font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*" + bg[PRELIGHT] = { 0, 0.75, 0x00 } +} +widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list" + +widget_class "*" style "default" widget_class "GtkWindow" style "window" widget_class "GtkDialog" style "window" widget_class "GtkFileSelection" style "window" @@ -88,6 +90,4 @@ widget_class "*GtkRadioButton*" style "toggle_button" widget_class "*GtkButton*" style "button" widget_class "*Ruler" style "ruler" widget_class "*GtkText" style "text" -widget_class "*" style "default" -widget "main window.*GtkButton*" style "main_buttons" widget "*GtkCurve" style "curve" |