aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-06-15 14:10:22 -0500
committerTed Gould <ted@gould.cx>2010-06-15 14:10:22 -0500
commit81f4b7c5e21a23e97bdd267567b40cdbe0d528b7 (patch)
tree432ab4ca54574652dbaf10bdf63e043975063a2d /libdbusmenu-gtk
parentd0bbb5a0985adccf54cf857d4b0f17a8ba803cd2 (diff)
downloadlibdbusmenu-81f4b7c5e21a23e97bdd267567b40cdbe0d528b7.tar.gz
libdbusmenu-81f4b7c5e21a23e97bdd267567b40cdbe0d528b7.tar.bz2
libdbusmenu-81f4b7c5e21a23e97bdd267567b40cdbe0d528b7.zip
Making the path more unique and using the lower level path set function.
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r--libdbusmenu-gtk/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index a9c6657..c7d1140 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -158,9 +158,9 @@ swap_agroup (DbusmenuMenuitem * mi, gpointer userdata) {
if (accel_path != NULL) {
gtk_accel_map_change_entry(accel_path, key, modifiers, TRUE /* replace */);
} else {
- gchar * accel_path = g_strdup_printf("<Appmenus>/Generated/%d", dbusmenu_menuitem_get_id(mi));
+ gchar * accel_path = g_strdup_printf("<Appmenus>/Generated/%X/%d", GPOINTER_TO_UINT(data->client), dbusmenu_menuitem_get_id(mi));
gtk_accel_map_add_entry(accel_path, key, modifiers);
- gtk_menu_item_set_accel_path(gmi, accel_path);
+ gtk_widget_set_accel_path(GTK_WIDGET(gmi), accel_path, data->new_agroup);
g_free(accel_path);
}