aboutsummaryrefslogtreecommitdiff
path: root/tests/test-gtk-shortcut-server.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-06-24 14:15:33 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-06-24 14:15:33 -0400
commit9a8c84b879e78aa8e0a9c1759fc5b73a29efd116 (patch)
tree8471f1da76c5592c05fffb462337726c43b81db5 /tests/test-gtk-shortcut-server.c
parent565603d992afa03da6a8f485fcdbe8b71677f7db (diff)
parentb08640dfaa65d54ac758e14f103e92bdc20990e0 (diff)
downloadlibdbusmenu-9a8c84b879e78aa8e0a9c1759fc5b73a29efd116.tar.gz
libdbusmenu-9a8c84b879e78aa8e0a9c1759fc5b73a29efd116.tar.bz2
libdbusmenu-9a8c84b879e78aa8e0a9c1759fc5b73a29efd116.zip
* debian/control, debian/*: Renaming packages for library version
bump from 3 to 4. * New upstream release. * Fixing visibility for Eclipse (LP: #770263 and LP: #618587) * Unseting a GValue properly (LP: #785828) * Memory leaks for GVariant usage (LP: #784890) * Making GTK 3 default build * Removing the SerializableMenuitem object * debian/rules: Making GTK2 the special build * New upstream release. - Fix a typo in the signal name to make it match the XML files (LP: #641209) - Ref'ing the server for the entire time we're getting the bus (LP: #738568) - Watch additions/removals from submenus that get added - Activate new toplevel menu items as they get added - Make sure we don't activate toplevel children that aren't menu items or don't have submenus (LP: #761112)
Diffstat (limited to 'tests/test-gtk-shortcut-server.c')
-rw-r--r--tests/test-gtk-shortcut-server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-gtk-shortcut-server.c b/tests/test-gtk-shortcut-server.c
index b205d03..5df4881 100644
--- a/tests/test-gtk-shortcut-server.c
+++ b/tests/test-gtk-shortcut-server.c
@@ -46,7 +46,11 @@ build_menu (void)
item = dbusmenu_menuitem_new();
dbusmenu_menuitem_property_set(item, DBUSMENU_MENUITEM_PROP_LABEL, "Control-L");
+#if GTK_CHECK_VERSION(3,0,0)
+ dbusmenu_menuitem_property_set_shortcut(item, GDK_KEY_l, GDK_CONTROL_MASK);
+#else
dbusmenu_menuitem_property_set_shortcut(item, GDK_l, GDK_CONTROL_MASK);
+#endif
dbusmenu_menuitem_child_append(root, item);
g_object_unref(item);