aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-16 10:29:58 -0500
committerTed Gould <ted@gould.cx>2011-03-16 10:29:58 -0500
commit7be07c87e6f01fa30fc66a2d3d05e868f29d362a (patch)
tree9a70364818ae894f986b9b39603c0520d6529f37 /libdbusmenu-gtk
parent7b45ed929b6c83335034ee9e3b98cf6dd7891b7a (diff)
parentd2243c9e779c8b7038a6dff55f0cd1d5a0721351 (diff)
downloadlibdbusmenu-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.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 */