From fabf0f1c95c1709cb61266168047d359a814d817 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 17 Sep 2009 17:47:09 +0000 Subject: Pad menus differently so that no item is selected in popup menus (#1350) --- diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em index 560a8c6..56770ea 100644 --- a/gtk/theme/gtkrc.em +++ b/gtk/theme/gtkrc.em @@ -271,8 +271,8 @@ style "menu" ${# This is just the exact reverse of what is going on inside GTK+ ...} GtkMenu::scroll-arrow-vlength = $(my_floor(subcell_size/0.7 + 2*thickness)) - GtkMenu::horizontal-padding = 0 - GtkMenu::vertical-padding = 0 + GtkMenu::horizontal-padding = $thickness + GtkMenu::vertical-padding = $thickness # This means the outline of the submenu overlaps with a palette. # However in the case of two normal menus, they are next to each other. # It is not possible to be smarter about this, because the style comes from @@ -280,12 +280,21 @@ style "menu" GtkMenu::horizontal-offset = 0 GtkMenu::vertical-offset = 0 + xthickness = 0 + ythickness = 0 +} + +style "palette" = "menu" +{ xthickness = $thickness ythickness = $thickness } style "palette-menu" = "menu" { + GtkMenu::horizontal-padding = 0 + GtkMenu::vertical-padding = 0 + xthickness = 0 ythickness = $subcell_size } @@ -759,9 +768,9 @@ widget_class "*.." style "notebook-tab" # SugarPalette and Menu widget_class "*" style "menu" -widget_class "" style "menu" -widget_class ".*" style "menu-child" -widget_class "*" style "palette-menu" +widget_class "" style "palette" +widget_class ".*" style "menu-child" +widget_class "*" style "palette-menu" widget_class "*.*" style "menu-child" # SugarFrameWindow @@ -778,7 +787,7 @@ widget_class "**" style "groupbox-panel-child" widget_class "*" style "notebook-panel" -widget_class "**" style "groupbox-palette-child" +widget_class "**" style "groupbox-palette-child" # SugarToolbox -- cgit v0.9.1