aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-16 10:27:00 -0500
committerTed Gould <ted@gould.cx>2011-03-16 10:27:00 -0500
commit224a7bad973443574bdd182fcd7b544c641edc58 (patch)
tree7bf48c8c6767c57f55b18347dd11fb4a84f6be9d /libdbusmenu-gtk/client.c
parent4c20267a1c5db9f7b259524ea92403a8caeb58ab (diff)
downloadlibdbusmenu-224a7bad973443574bdd182fcd7b544c641edc58.tar.gz
libdbusmenu-224a7bad973443574bdd182fcd7b544c641edc58.tar.bz2
libdbusmenu-224a7bad973443574bdd182fcd7b544c641edc58.zip
Using the new defines
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r--libdbusmenu-gtk/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index f9de880..497808b 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -458,7 +458,7 @@ menu_pressed_cb (GtkMenuItem * gmi, DbusmenuMenuitem * mi)
{
if (gtk_menu_item_get_submenu(gmi) == NULL) {
GVariant * variant = g_variant_new("i", 0);
- dbusmenu_menuitem_handle_event(mi, "clicked", variant, gtk_get_current_event_time());
+ dbusmenu_menuitem_handle_event(mi, DBUSMENU_MENUITEM_EVENT_ACTIVATED, variant, gtk_get_current_event_time());
} else {
/* TODO: We need to stop the display of the submenu
until this callback returns. */
@@ -471,9 +471,9 @@ static void
submenu_notify_visible_cb (GtkWidget * menu, GParamSpec * pspec, DbusmenuMenuitem * mi)
{
if (gtk_widget_get_visible (menu))
- dbusmenu_menuitem_handle_event(mi, "opened", NULL, gtk_get_current_event_time());
+ dbusmenu_menuitem_handle_event(mi, DBUSMENU_MENUITEM_EVENT_OPENED, NULL, gtk_get_current_event_time());
else
- dbusmenu_menuitem_handle_event(mi, "closed", NULL, gtk_get_current_event_time());
+ dbusmenu_menuitem_handle_event(mi, DBUSMENU_MENUITEM_EVENT_CLOSED, NULL, gtk_get_current_event_time());
}
/* Process the visible property */