aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-31 12:29:20 -0500
committerTed Gould <ted@gould.cx>2010-03-31 12:29:20 -0500
commit75b0bba462e192a32e4484e52d0751852d03df12 (patch)
tree14a773d3acc571310bd4ff9addd8d48c9e217c1f /libdbusmenu-glib/client.c
parentf3681a09522d6381eef14525eafdc4c467420879 (diff)
downloadlibdbusmenu-75b0bba462e192a32e4484e52d0751852d03df12.tar.gz
libdbusmenu-75b0bba462e192a32e4484e52d0751852d03df12.tar.bz2
libdbusmenu-75b0bba462e192a32e4484e52d0751852d03df12.zip
Adding a bunch of comments
Diffstat (limited to 'libdbusmenu-glib/client.c')
-rw-r--r--libdbusmenu-glib/client.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 7cf5a14..940adad 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -660,6 +660,8 @@ menuitem_call_cb (DBusGProxy * proxy, GError * error, gpointer userdata)
return;
}
+/* Sends the event over DBus to the server on the other side
+ of the bus. */
void
dbusmenu_client_send_event (DbusmenuClient * client, gint id, const gchar * name, const GValue * value, guint timestamp)
{
@@ -668,6 +670,8 @@ dbusmenu_client_send_event (DbusmenuClient * client, gint id, const gchar * name
return;
}
+/* Reports errors and responds to update request that were a result
+ of sending the about to show signal. */
static void
about_to_show_cb (DBusGProxy * proxy, gboolean need_update, GError * error, gpointer userdata)
{
@@ -683,17 +687,22 @@ about_to_show_cb (DBusGProxy * proxy, gboolean need_update, GError * error, gpoi
return;
}
+/* Sends the about to show signal for a given id to the
+ server on the other side of DBus */
void
dbusmenu_client_send_about_to_show(DbusmenuClient * client, gint id)
{
DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client);
org_ayatana_dbusmenu_about_to_show_async (priv->menuproxy, id, about_to_show_cb, client);
/*
- FIXME: We should wait until either
+ TODO: We should ideally restrict the displaying of the menu until:
+
- about_to_show_cb has been called and need_update was false
- about_to_show_cb has been called, need_update was true and menu has been
updated
- about_to_show_cb has not been called and we already waited for 10msecs
+
+ There's not really support in GTK for doing this easily.
*/
return;
}