Commit 7175a2e9 authored by Matthias Clasen's avatar Matthias Clasen

Some leftover cleanups.

parent f8595c79
Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
menu is NULL.
(update_smart_separators): Remove some unneeded ifs.
Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
......
Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
menu is NULL.
(update_smart_separators): Remove some unneeded ifs.
Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
......
Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
menu is NULL.
(update_smart_separators): Remove some unneeded ifs.
Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
......
Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
menu is NULL.
(update_smart_separators): Remove some unneeded ifs.
Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
......
Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
menu is NULL.
(update_smart_separators): Remove some unneeded ifs.
Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
......
......@@ -1662,7 +1662,7 @@ _gtk_menu_is_empty (GtkWidget *menu)
g_return_val_if_fail (menu == NULL || GTK_IS_MENU (menu), TRUE);
if (!menu)
return FALSE;
return TRUE;
children = gtk_container_get_children (GTK_CONTAINER (menu));
......@@ -1772,10 +1772,8 @@ update_smart_separators (GtkWidget *proxy)
GtkWidget *item;
item = gtk_menu_get_attach_widget (GTK_MENU (parent));
if (GTK_IS_MENU_ITEM (item))
_gtk_action_sync_menu_visible (NULL, item, empty);
if (GTK_IS_WIDGET (filler))
g_object_set (G_OBJECT (filler), "visible", empty, NULL);
_gtk_action_sync_menu_visible (NULL, item, empty);
g_object_set (G_OBJECT (filler), "visible", empty, NULL);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment