diff options
| author | Ted Gould <ted@gould.cx> | 2010-04-15 01:15:42 -0500 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2010-04-15 01:15:42 -0500 |
| commit | d40baa2d6e30001d423658ce3ac173449f932310 (patch) | |
| tree | a72a3e8bc4852f80ab380fa72f4e6d0bf685d96f /libdbusmenu-gtk/client.c | |
| parent | 00a7938319d15cb6484b8e7dc897d854816772bf (diff) | |
| parent | e4a3d964d9c5b57fe1f3488459545212891732b0 (diff) | |
| download | libdbusmenu-d40baa2d6e30001d423658ce3ac173449f932310.tar.gz libdbusmenu-d40baa2d6e30001d423658ce3ac173449f932310.tar.bz2 libdbusmenu-d40baa2d6e30001d423658ce3ac173449f932310.zip | |
Changing the GTK layer to look at the realized location instead of the absolute location in the menu ordering.
Diffstat (limited to 'libdbusmenu-gtk/client.c')
| -rw-r--r-- | libdbusmenu-gtk/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 3de42fe..b13af6a 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -308,7 +308,7 @@ dbusmenu_gtkclient_newitem_base (DbusmenuGtkClient * client, DbusmenuMenuitem * /* Oh, we're a child, let's deal with that */ if (parent != NULL) { - new_child(parent, item, dbusmenu_menuitem_get_position(item, parent), DBUSMENU_GTKCLIENT(client)); + new_child(parent, item, dbusmenu_menuitem_get_position_realized(item, parent), DBUSMENU_GTKCLIENT(client)); } return; @@ -335,7 +335,7 @@ new_child (DbusmenuMenuitem * mi, DbusmenuMenuitem * child, guint position, Dbus } GtkMenuItem * childmi = dbusmenu_gtkclient_menuitem_get(gtkclient, child); - gtk_menu_shell_insert(GTK_MENU_SHELL(menu), GTK_WIDGET(childmi), position); + gtk_menu_shell_insert(GTK_MENU_SHELL(menu), GTK_WIDGET(childmi), dbusmenu_menuitem_get_position_realized(child, mi)); gtk_widget_show(GTK_WIDGET(menu)); return; @@ -373,7 +373,7 @@ move_child (DbusmenuMenuitem * mi, DbusmenuMenuitem * child, guint new, guint ol } GtkMenuItem * childmi = dbusmenu_gtkclient_menuitem_get(gtkclient, child); - gtk_menu_reorder_child(GTK_MENU(ann_menu), GTK_WIDGET(childmi), new); + gtk_menu_reorder_child(GTK_MENU(ann_menu), GTK_WIDGET(childmi), dbusmenu_menuitem_get_position_realized(child, mi)); return; } |
