aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/menuitem.h
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2010-04-01 12:41:41 +0200
committerSebastien Bacher <seb128@ubuntu.com>2010-04-01 12:41:41 +0200
commit042dd16d3e0f8b6149e80243aa833832aa4fc1f6 (patch)
tree48bcee799eeeb8ca7e73e2000e2d48c6e79d55ab /libdbusmenu-glib/menuitem.h
parent0f343edd778547d86b08bc4550f29429715928f1 (diff)
parent65bd97a9dfb54716be7797923773e1ad7a33a67c (diff)
downloadlibdbusmenu-042dd16d3e0f8b6149e80243aa833832aa4fc1f6.tar.gz
libdbusmenu-042dd16d3e0f8b6149e80243aa833832aa4fc1f6.tar.bz2
libdbusmenu-042dd16d3e0f8b6149e80243aa833832aa4fc1f6.zip
releasing version 0.2.8-0ubuntu2
Diffstat (limited to 'libdbusmenu-glib/menuitem.h')
-rw-r--r--libdbusmenu-glib/menuitem.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.h b/libdbusmenu-glib/menuitem.h
index 04fd911..cb6b8f4 100644
--- a/libdbusmenu-glib/menuitem.h
+++ b/libdbusmenu-glib/menuitem.h
@@ -85,6 +85,17 @@ struct _DbusmenuMenuitem
};
/**
+ dbusmenu_menuitem_about_to_show_cb:
+ @mi Menu item that should be shown
+ @user_data Extra user data sent with the function
+
+ Callback prototype for a callback that is called when the
+ menu should be shown.
+*/
+typedef void (*dbusmenu_menuitem_about_to_show_cb) (DbusmenuMenuitem * mi, gpointer user_data);
+
+
+/**
DbusmenuMenuitemClass:
@property_changed: Slot for #DbusmenuMenuitem::property-changed.
@item_activated: Slot for #DbusmenuMenuitem::item-activated.
@@ -97,6 +108,8 @@ struct _DbusmenuMenuitem
@handle_event: This function is to override how events are handled
by subclasses. Look at #dbusmenu_menuitem_handle_event for
lots of good information.
+ @send_about_to_show: Virtual function that notifies server that the
+ client is about to show a menu.
@reserved1: Reserved for future use.
@reserved2: Reserved for future use.
@reserved3: Reserved for future use.
@@ -118,9 +131,10 @@ struct _DbusmenuMenuitemClass
/* Virtual functions */
void (*buildxml) (GPtrArray * stringarray);
void (*handle_event) (DbusmenuMenuitem * mi, const gchar * name, const GValue * value, guint timestamp);
+ void (*send_about_to_show) (DbusmenuMenuitem * mi, dbusmenu_menuitem_about_to_show_cb cb, gpointer cb_data);
void (*reserved1) (void);
- void (*reserved2) (void);
+ /* void (*reserved2) (void); */
/* void (*reserved3) (void); */
/* void (*reserved4) (void); -- realized, realloc when bumping lib version */
};
@@ -161,6 +175,7 @@ gboolean dbusmenu_menuitem_get_root (DbusmenuMenuitem * mi);
void dbusmenu_menuitem_foreach (DbusmenuMenuitem * mi, void (*func) (DbusmenuMenuitem * mi, gpointer data), gpointer data);
void dbusmenu_menuitem_handle_event (DbusmenuMenuitem * mi, const gchar * name, const GValue * value, guint timestamp);
+void dbusmenu_menuitem_send_about_to_show (DbusmenuMenuitem * mi, dbusmenu_menuitem_about_to_show_cb cb, gpointer cb_data);
/**
SECTION:menuitem