diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-09-30 17:54:29 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-09-30 17:54:29 +0200 |
commit | 5819385d28106fd7f511fc4e8eb4960b46a5fc37 (patch) | |
tree | 33a9bbce812079e59cc5e4dae3cf84b2122f6c32 /src | |
parent | 4aca6f60949a7c707f33fa6f39257613b7d6d5d5 (diff) | |
download | libayatana-appindicator-5819385d28106fd7f511fc4e8eb4960b46a5fc37.tar.gz libayatana-appindicator-5819385d28106fd7f511fc4e8eb4960b46a5fc37.tar.bz2 libayatana-appindicator-5819385d28106fd7f511fc4e8eb4960b46a5fc37.zip |
simplify
Diffstat (limited to 'src')
-rw-r--r-- | src/app-indicator.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index 7b5e0f2..13c7ce4 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -1523,13 +1523,10 @@ status_icon_changes (AppIndicator * self, gpointer data) GtkStatusIcon * icon = GTK_STATUS_ICON(data); gchar *longname = NULL; - GtkIconTheme *icon_theme; + GtkIconTheme *icon_theme = gtk_icon_theme_get_default(); if (self->priv->icon_theme_path != NULL) { - icon_theme = gtk_icon_theme_new(); - gtk_icon_theme_prepend_search_path(icon_theme, self->priv->icon_theme_path); - } else { - icon_theme = gtk_icon_theme_get_default(); + gtk_icon_theme_append_search_path(icon_theme, self->priv->icon_theme_path); } switch (app_indicator_get_status(self)) { @@ -1563,9 +1560,6 @@ status_icon_changes (AppIndicator * self, gpointer data) if (longname) { g_free(longname); } - if (icon_theme != gtk_icon_theme_get_default()) { - g_object_unref(icon_theme); - } return; } |