diff options
author | Krzysztof Klimonda <kklimonda@syntaxhighlighted.com> | 2010-03-25 19:43:52 +0100 |
---|---|---|
committer | Krzysztof Klimonda <kklimonda@syntaxhighlighted.com> | 2010-03-25 19:43:52 +0100 |
commit | 5bf0d10c5c87aca4ea853ef11eab7ed4ca206830 (patch) | |
tree | ed42285f955d616c935b648aee9d9f33d9caefe7 /src/libappindicator/app-indicator.c | |
parent | 64c02739926fa0559c0ad528ab8f41cd2f2522a4 (diff) | |
download | libayatana-appindicator-5bf0d10c5c87aca4ea853ef11eab7ed4ca206830.tar.gz libayatana-appindicator-5bf0d10c5c87aca4ea853ef11eab7ed4ca206830.tar.bz2 libayatana-appindicator-5bf0d10c5c87aca4ea853ef11eab7ed4ca206830.zip |
Make app_indicator_set_property also set the suffixed icon_name.
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r-- | src/libappindicator/app-indicator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index 84c39b3..3a4522e 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -142,6 +142,7 @@ static void status_icon_status_wrapper (AppIndicator * self, const gchar * statu static void status_icon_changes (AppIndicator * self, gpointer data); static void status_icon_activate (GtkStatusIcon * icon, gpointer data); static void unfallback (AppIndicator * self, GtkStatusIcon * status_icon); +static char * append_panel_icon_suffix (const char * icon_name); static void watcher_proxy_destroyed (GObject * object, gpointer data); static void client_menu_changed (GtkWidget *widget, GtkWidget *child, AppIndicator *indicator); static void submenu_changed (GtkWidget *widget, GtkWidget *child, gpointer data); @@ -452,6 +453,7 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu { AppIndicator *self = APP_INDICATOR (object); AppIndicatorPrivate *priv = self->priv; + gchar *long_name; const gchar *instr; GEnumValue *enum_val; @@ -502,7 +504,8 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu if (priv->icon_name) g_free (priv->icon_name); - priv->icon_name = g_strdup (instr); + long_name = append_panel_icon_suffix (instr); + priv->icon_name = long_name; g_signal_emit (self, signals[NEW_ICON], 0, TRUE); } |