aboutsummaryrefslogtreecommitdiff
path: root/src/menu-dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu-dbus.c')
-rw-r--r--src/menu-dbus.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/menu-dbus.c b/src/menu-dbus.c
index cb4d531..1fea066 100644
--- a/src/menu-dbus.c
+++ b/src/menu-dbus.c
@@ -4,6 +4,30 @@
GtkWidget *
_dbus_menu_make_menuitem_val (DBusGProxy * proxy, guint id)
{
+ GError * error = NULL;
+ gboolean proxyret;
+
+ gchar * label;
+ gchar * tooltip;
+ gchar * icon;
+ gchar * indicator;
+ guint submenu;
+
+ /* TODO: switch to begin_call */
+ proxyret = dbus_g_proxy_call (proxy, "GetItem", &error,
+ G_TYPE_UINT, id,
+ G_TYPE_INVALID,
+ G_TYPE_STRING, &label,
+ G_TYPE_STRING, &tooltip,
+ G_TYPE_STRING, &icon,
+ G_TYPE_STRING, &indicator,
+ G_TYPE_UINT, &submenu,
+ G_TYPE_INVALID);
+
+ if (!proxyret) {
+ /* TODO: clear error */
+ return NULL;
+ }