Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2007-09-21 22:51:13 (GMT)
committer Benjamin Berg <benjamin@sipsolutions.net>2007-09-21 22:51:13 (GMT)
commitaf1a104682fc6db035f66fdb8e8621faaac392f9 (patch)
tree2183efe2a364079c45f6cf9fb0b8e3f544867331 /gtk
parent518d16be5a24a01f9eab5a402330054acff61853 (diff)
Better support for palette menus. Setting the xthickness to 0
and ythickness to the wanted padding.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/theme/gtkrc.em19
1 files changed, 13 insertions, 6 deletions
diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em
index aa0dee5..68c9d2f 100644
--- a/gtk/theme/gtkrc.em
+++ b/gtk/theme/gtkrc.em
@@ -223,6 +223,13 @@ style "menu"
ythickness = $thickness
}
+# Base this style on "menu" to get the correct colors
+style "palette-menu" = "menu"
+{
+ xthickness = 0
+ ythickness = $subcell_size
+}
+
# Can this all be moved in the menuitem style?
style "menu-child"
{
@@ -586,9 +593,12 @@ widget_class "<GtkWindow>*" style "window-child"
widget_class "*<SugarToolbox>*" style "toolbox"
widget_class "*<GtkToolbar>*" style "toolbox"
-# SugarPalette
-widget_class "<SugarPalette>" style "menu"
-widget_class "<SugarPalette>.*" style "menu-child"
+# SugarPalette and Menu
+widget_class "*<GtkMenu>" style "menu"
+widget_class "<SugarPalette>" style "menu"
+widget_class "<SugarPalette>.*" style "menu-child"
+widget_class "<SugarPalette>*<GtkMenu>" style "palette-menu"
+widget_class "*<GtkMenuShell>.*" style "menu-child"
# SugarFrameWindow
widget_class "*<SugarFrameWindow>*" style "frame"
@@ -616,9 +626,6 @@ widget_class "<SugarPalette>*<SugarGroupBox>*<GtkLayout>" style "groupbox-palett
# right. An alternative would be to lower the priority of the
# background matches (which need widget_class) to eg. "application"
-# Menu
-widget_class "*<GtkMenuShell>" style "menu" # Why is this menu shell?
-widget_class "*<GtkMenuShell>.*" style "menu-child" # Why is this menu shell?
widget_class "*<GtkMenuItem>*" style "menuitem"
widget_class "*<GtkCheckMenuItem>" style "checkmenuitem"
widget_class "*<GtkImageMenuItem>" style "imagemenuitem"