aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r--libdbusmenu-gtk/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c
index f21e548..d2cb287 100644
--- a/libdbusmenu-gtk/parser.c
+++ b/libdbusmenu-gtk/parser.c
@@ -300,7 +300,7 @@ parse_menu_structure_helper (GtkWidget * widget, RecurseContext * recurse)
/* If the item is not opening a submenu we don't want to activate
it as that'd cause an action. Like opening a preferences dialog
to the user. That's not a good idea. */
- if (gtk_menu_item_get_submenu(GTK_WIDGET(iter->data)) == NULL) {
+ if (gtk_menu_item_get_submenu(GTK_MENU_ITEM(iter->data)) == NULL) {
continue;
}