aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-04 16:15:38 -0500
committerTed Gould <ted@canonical.com>2009-09-04 16:15:38 -0500
commit567920a040c541ad10dfc53844ca9f5bd1e22a21 (patch)
tree833e280e0371e7ed470a5de3b268e131a617c13b
parent1b860bf5516f760774881bbb9dec90cea75109f8 (diff)
downloadayatana-indicator-messages-567920a040c541ad10dfc53844ca9f5bd1e22a21.tar.gz
ayatana-indicator-messages-567920a040c541ad10dfc53844ca9f5bd1e22a21.tar.bz2
ayatana-indicator-messages-567920a040c541ad10dfc53844ca9f5bd1e22a21.zip
Ask for all the properties up front.
-rw-r--r--src/im-menu-item.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c
index 193b1a4..36ae2f6 100644
--- a/src/im-menu-item.c
+++ b/src/im-menu-item.c
@@ -353,9 +353,12 @@ im_menu_item_new (IndicateListener * listener, IndicateListenerServer * server,
dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), "type", INDICATOR_MENUITEM_TYPE);
+ indicate_listener_get_property(listener, server, indicator, INDICATE_INDICATOR_MESSAGES_PROP_NAME, sender_cb, self);
+ indicate_listener_get_property_time(listener, server, indicator, INDICATE_INDICATOR_MESSAGES_PROP_TIME, time_cb, self);
+ indicate_listener_get_property(listener, server, indicator, INDICATE_INDICATOR_MESSAGES_PROP_ICON, icon_cb, self);
+ indicate_listener_get_property(listener, server, indicator, INDICATE_INDICATOR_MESSAGES_PROP_COUNT, count_cb, self);
+ indicate_listener_get_property(listener, server, indicator, INDICATE_INDICATOR_MESSAGES_PROP_ATTENTION, attention_cb, self);
indicate_listener_get_property(listener, server, indicator, "sender", sender_cb, self);
- indicate_listener_get_property_time(listener, server, indicator, "time", time_cb, self);
- indicate_listener_get_property(listener, server, indicator, "icon", icon_cb, self);
g_signal_connect(G_OBJECT(self), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(activate_cb), NULL);
priv->indicator_changed = g_signal_connect(G_OBJECT(listener), INDICATE_LISTENER_SIGNAL_INDICATOR_MODIFIED, G_CALLBACK(indicator_modified_cb), self);