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.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
|
||||
|
||||
@@ -614,6 +614,7 @@
|
||||
(button3-mask GDK_BUTTON3_MASK)
|
||||
(button4-mask GDK_BUTTON4_MASK)
|
||||
(button5-mask GDK_BUTTON5_MASK)
|
||||
(release-mask GDK_RELEASE_MASK)
|
||||
(modifier-mask GDK_MODIFIER_MASK))
|
||||
|
||||
(define-enum GdkSubwindowMode
|
||||
|
||||
@@ -488,7 +488,7 @@ gtk_rc_add_widget_name_style (GtkStyle *style,
|
||||
gtk_pattern_spec_init (&rc_set->pspec, pattern);
|
||||
rc_set->rc_style = rc_style;
|
||||
|
||||
gtk_rc_sets_widget = g_slist_append (gtk_rc_sets_widget, rc_set);
|
||||
gtk_rc_sets_widget = g_slist_prepend (gtk_rc_sets_widget, rc_set);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -515,7 +515,7 @@ gtk_rc_add_widget_class_style (GtkStyle *style,
|
||||
gtk_pattern_spec_init (&rc_set->pspec, pattern);
|
||||
rc_set->rc_style = rc_style;
|
||||
|
||||
gtk_rc_sets_widget_class = g_slist_append (gtk_rc_sets_widget_class, rc_set);
|
||||
gtk_rc_sets_widget_class = g_slist_prepend (gtk_rc_sets_widget_class, rc_set);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -1404,7 +1404,7 @@ gtk_rc_parse_widget_style (GScanner *scanner)
|
||||
return G_TOKEN_STRING;
|
||||
}
|
||||
|
||||
gtk_rc_sets_widget = g_slist_append (gtk_rc_sets_widget, rc_set);
|
||||
gtk_rc_sets_widget = g_slist_prepend (gtk_rc_sets_widget, rc_set);
|
||||
|
||||
return G_TOKEN_NONE;
|
||||
}
|
||||
@@ -1450,7 +1450,7 @@ gtk_rc_parse_widget_class_style (GScanner *scanner)
|
||||
return G_TOKEN_STRING;
|
||||
}
|
||||
|
||||
gtk_rc_sets_widget_class = g_slist_append (gtk_rc_sets_widget_class, rc_set);
|
||||
gtk_rc_sets_widget_class = g_slist_prepend (gtk_rc_sets_widget_class, rc_set);
|
||||
|
||||
return G_TOKEN_NONE;
|
||||
}
|
||||
|
||||
@@ -653,6 +653,7 @@ static GtkEnumValue _gdk_modifier_type_values[] = {
|
||||
{ GDK_BUTTON3_MASK, "GDK_BUTTON3_MASK", "button3-mask" },
|
||||
{ GDK_BUTTON4_MASK, "GDK_BUTTON4_MASK", "button4-mask" },
|
||||
{ GDK_BUTTON5_MASK, "GDK_BUTTON5_MASK", "button5-mask" },
|
||||
{ GDK_RELEASE_MASK, "GDK_RELEASE_MASK", "release-mask" },
|
||||
{ GDK_MODIFIER_MASK, "GDK_MODIFIER_MASK", "modifier-mask" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
|
||||
# this file gets included from testgtkrc
|
||||
|
||||
style 'button_list' = 'button'
|
||||
style 'main_buttons' = 'button'
|
||||
{
|
||||
font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
|
||||
bg[PRELIGHT] = { 0, 0.75, 0x00 }
|
||||
bg[PRELIGHT] = { 0, 0, 0.75 }
|
||||
}
|
||||
|
||||
widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
|
||||
widget "main window.*GtkButton*" style "main_buttons"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
|
||||
# this file gets included from testgtkrc
|
||||
|
||||
style 'button_list' = 'button'
|
||||
style 'main_buttons' = 'button'
|
||||
{
|
||||
font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
|
||||
bg[PRELIGHT] = { 0, 0.75, 0x00 }
|
||||
bg[PRELIGHT] = { 0, 0, 0.75 }
|
||||
}
|
||||
|
||||
widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
|
||||
widget "main window.*GtkButton*" style "main_buttons"
|
||||
|
||||
Reference in New Issue
Block a user