aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-08-31 20:29:42 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-08-31 20:29:42 +0800
commit8bbf952350c37970e8947b807513e58e91435998 (patch)
tree7cac55cfc3250341ac352fecb7f491bbd1ead20b /widgets/misc
parent8bf77996e08c94eb3bd885b2b69b74206868d622 (diff)
downloadgsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar
gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.gz
gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.bz2
gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.lz
gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.xz
gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.zst
gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.zip
Fix some bugs related to the New menu and toolbar button.
svn path=/branches/kill-bonobo/; revision=36232
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-menu-tool-button.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/widgets/misc/e-menu-tool-button.c b/widgets/misc/e-menu-tool-button.c
index be77895fbe..f2ff6ded44 100644
--- a/widgets/misc/e-menu-tool-button.c
+++ b/widgets/misc/e-menu-tool-button.c
@@ -51,12 +51,10 @@ menu_tool_button_get_first_menu_item (GtkMenuToolButton *menu_tool_button)
/* XXX GTK+ 2.12 provides no accessor function. */
children = GTK_MENU_SHELL (menu)->children;
- if (children == NULL || children->next == NULL)
+ if (children == NULL)
return NULL;
- /* Return the /second/ menu item, which turns out to be the first
- * visible item. The first menu item is some kind of placeholder? */
- return GTK_MENU_ITEM (children->next->data);
+ return GTK_MENU_ITEM (children->data);
}
static void