diff options
author | Ted Gould <ted@gould.cx> | 2010-11-11 21:52:59 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-11-11 21:52:59 -0600 |
commit | 9bde70f2f1b96fe335dc11c941f64784c8f258f0 (patch) | |
tree | 7681ff930eb35d41af8eedb04b7a27f2c39011c4 /src | |
parent | 2d87c7a295d0eb4681ed65a709c77ef47a421bf7 (diff) | |
download | libayatana-appindicator-9bde70f2f1b96fe335dc11c941f64784c8f258f0.tar.gz libayatana-appindicator-9bde70f2f1b96fe335dc11c941f64784c8f258f0.tar.bz2 libayatana-appindicator-9bde70f2f1b96fe335dc11c941f64784c8f258f0.zip |
Filling out the activate function.
Diffstat (limited to 'src')
-rw-r--r-- | src/app-indicator.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index ee18cad..199e256 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -2153,7 +2153,16 @@ app_indicator_get_ordering_index (AppIndicator *self) static void shorty_activated_cb (DbusmenuMenuitem * mi, guint timestamp, gpointer user_data) { + gchar * nick = g_object_get_data(G_OBJECT(mi), APP_INDICATOR_SHORTY_NICK); + g_return_if_fail(nick != NULL); + g_return_if_fail(IS_APP_INDICATOR(user_data)); + AppIndicator * self = APP_INDICATOR(user_data); + AppIndicatorPrivate *priv = self->priv; + + g_return_if_fail(priv->shorties != NULL); + + indicator_desktop_shortcuts_nick_exec(priv->shorties, nick); return; } |