summaryrefslogtreecommitdiff
path: root/gtk/gtkuimanager.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-12-13 05:35:17 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-12-13 05:35:17 +0000
commit5191e341b431e3a02dae9312c2eb8297fd860f57 (patch)
tree67fcf697868082caa899f354d97dbf46c508c96e /gtk/gtkuimanager.c
parent57d366882d3e8a07f01b70f043050d22a2ce2538 (diff)
downloadgtk+-5191e341b431e3a02dae9312c2eb8297fd860f57.tar.gz
Don't let the empty menu filler affect visibility of separators. (#160500,
2004-12-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c (update_smart_separators): Don't let the empty menu filler affect visibility of separators. (#160500, Christian Persch)
Diffstat (limited to 'gtk/gtkuimanager.c')
-rw-r--r--gtk/gtkuimanager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c
index b5c9379cca..e507a75e00 100644
--- a/gtk/gtkuimanager.c
+++ b/gtk/gtkuimanager.c
@@ -1959,7 +1959,6 @@ update_smart_separators (GtkWidget *proxy)
else if (GTK_IS_MENU_ITEM (proxy) || GTK_IS_TOOL_ITEM (proxy))
parent = gtk_widget_get_parent (proxy);
-
if (parent)
{
gboolean visible;
@@ -1980,10 +1979,11 @@ update_smart_separators (GtkWidget *proxy)
while (cur)
{
if (g_object_get_data (cur->data, "gtk-empty-menu-item"))
- filler = cur->data;
-
- if (GTK_IS_SEPARATOR_MENU_ITEM (cur->data) ||
- GTK_IS_SEPARATOR_TOOL_ITEM (cur->data))
+ {
+ filler = cur->data;
+ }
+ else if (GTK_IS_SEPARATOR_MENU_ITEM (cur->data) ||
+ GTK_IS_SEPARATOR_TOOL_ITEM (cur->data))
{
gint mode =
GPOINTER_TO_INT (g_object_get_data (G_OBJECT (cur->data),