diff options
author | Ted Gould <ted@gould.cx> | 2011-03-16 10:29:58 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-16 10:29:58 -0500 |
commit | 7be07c87e6f01fa30fc66a2d3d05e868f29d362a (patch) | |
tree | 9a70364818ae894f986b9b39603c0520d6529f37 /libdbusmenu-gtk | |
parent | 7b45ed929b6c83335034ee9e3b98cf6dd7891b7a (diff) | |
parent | d2243c9e779c8b7038a6dff55f0cd1d5a0721351 (diff) | |
download | libdbusmenu-7be07c87e6f01fa30fc66a2d3d05e868f29d362a.tar.gz libdbusmenu-7be07c87e6f01fa30fc66a2d3d05e868f29d362a.tar.bz2 libdbusmenu-7be07c87e6f01fa30fc66a2d3d05e868f29d362a.zip |
Adding defines for the event identifiers
Diffstat (limited to 'libdbusmenu-gtk')
-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 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 */ |