diff options
author | Ted Gould <ted@canonical.com> | 2008-11-12 22:01:39 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2008-11-12 22:01:39 -0600 |
commit | 947bc3f33cfd514f9d517578f0aab6bec05cc191 (patch) | |
tree | e50e3282eab970c0cf0962f725ec2de2f68f66e1 | |
parent | b63286e253aea5a176439efbc69efae18112528b (diff) | |
download | libayatana-indicator-947bc3f33cfd514f9d517578f0aab6bec05cc191.tar.gz libayatana-indicator-947bc3f33cfd514f9d517578f0aab6bec05cc191.tar.bz2 libayatana-indicator-947bc3f33cfd514f9d517578f0aab6bec05cc191.zip |
Working on ideas for the prototype of the individual item stuff
-rw-r--r-- | src/menu-dbus.c | 24 |
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; + } |