aboutsummaryrefslogtreecommitdiff
path: root/src/app-indicator.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-03-23 17:31:03 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-03-23 17:31:03 -0400
commitb0772a8e298fbd818e8bf8dfbb9aa861f3aefbc3 (patch)
treeaedbb9a62f9405fa338c30fbd00968522c151bd4 /src/app-indicator.c
parent30a29c6f147d9404b2c5faec6fc567784154f648 (diff)
parentd5366011a599f600ffe56cc1a42c2ee068f96151 (diff)
downloadlibayatana-appindicator-b0772a8e298fbd818e8bf8dfbb9aa861f3aefbc3.tar.gz
libayatana-appindicator-b0772a8e298fbd818e8bf8dfbb9aa861f3aefbc3.tar.bz2
libayatana-appindicator-b0772a8e298fbd818e8bf8dfbb9aa861f3aefbc3.zip
releasing version 0.3.0-0ubuntu10.3.0-0ubuntu1
Diffstat (limited to 'src/app-indicator.c')
-rw-r--r--src/app-indicator.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 347e168..cc785ca 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -1471,34 +1471,26 @@ static void
status_icon_changes (AppIndicator * self, gpointer data)
{
GtkStatusIcon * icon = GTK_STATUS_ICON(data);
- GIcon *themed_icon = NULL;
gchar *longname = NULL;
switch (app_indicator_get_status(self)) {
case APP_INDICATOR_STATUS_PASSIVE:
longname = append_panel_icon_suffix(app_indicator_get_icon(self));
- themed_icon = g_themed_icon_new_with_default_fallbacks (longname);
gtk_status_icon_set_visible(icon, FALSE);
- gtk_status_icon_set_from_gicon(icon, themed_icon);
+ gtk_status_icon_set_from_icon_name(icon, longname);
break;
case APP_INDICATOR_STATUS_ACTIVE:
longname = append_panel_icon_suffix(app_indicator_get_icon(self));
- themed_icon = g_themed_icon_new_with_default_fallbacks (longname);
- gtk_status_icon_set_from_gicon(icon, themed_icon);
+ gtk_status_icon_set_from_icon_name(icon, longname);
gtk_status_icon_set_visible(icon, TRUE);
break;
case APP_INDICATOR_STATUS_ATTENTION:
longname = append_panel_icon_suffix(app_indicator_get_attention_icon(self));
- themed_icon = g_themed_icon_new_with_default_fallbacks (longname);
- gtk_status_icon_set_from_gicon(icon, themed_icon);
+ gtk_status_icon_set_from_icon_name(icon, longname);
gtk_status_icon_set_visible(icon, TRUE);
break;
};
- if (themed_icon) {
- g_object_unref (themed_icon);
- }
-
if (longname) {
g_free(longname);
}