diff options
author | Ted Gould <ted@canonical.com> | 2009-09-04 16:06:18 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-04 16:06:18 -0500 |
commit | 43f6131be305835947b565d0afcc0dc11660e218 (patch) | |
tree | 04d3b3a1bf466e1a9c14b25451c15288f283642c /src | |
parent | 1b0210cbd43099ae96ea48f817a4cef50941c9c2 (diff) | |
download | ayatana-indicator-messages-43f6131be305835947b565d0afcc0dc11660e218.tar.gz ayatana-indicator-messages-43f6131be305835947b565d0afcc0dc11660e218.tar.bz2 ayatana-indicator-messages-43f6131be305835947b565d0afcc0dc11660e218.zip |
oops forgot to remove type from the modified one, oops.
Diffstat (limited to 'src')
-rw-r--r-- | src/im-menu-item.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c index 2d361ac..75da527 100644 --- a/src/im-menu-item.c +++ b/src/im-menu-item.c @@ -83,7 +83,6 @@ static void activate_cb (ImMenuItem * self, static void indicator_modified_cb (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, - gchar * type, gchar * property, ImMenuItem * self); @@ -306,7 +305,7 @@ activate_cb (ImMenuItem * self, gpointer data) /* Callback when a property gets modified. It figures out which one got modified and notifies the appropriate person. */ void -indicator_modified_cb (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gchar * property, ImMenuItem * self) +indicator_modified_cb (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, ImMenuItem * self) { ImMenuItemPrivate * priv = IM_MENU_ITEM_GET_PRIVATE(self); @@ -314,6 +313,8 @@ indicator_modified_cb (IndicateListener * listener, IndicateListenerServer * ser if (INDICATE_LISTENER_INDICATOR_ID(indicator) != INDICATE_LISTENER_INDICATOR_ID(priv->indicator)) return; if (server != priv->server) return; + /* Determine which property has been changed and request the + value go to the appropriate callback. */ if (!g_strcmp0(property, INDICATE_INDICATOR_MESSAGES_PROP_NAME)) { indicate_listener_get_property(listener, server, indicator, INDICATE_INDICATOR_MESSAGES_PROP_NAME, sender_cb, self); } else if (!g_strcmp0(property, INDICATE_INDICATOR_MESSAGES_PROP_TIME)) { |