diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2011-08-11 21:20:42 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2011-08-11 21:20:42 +0200 |
commit | 871b89ed341a27030eafe0c4d9f5d551ea331f1e (patch) | |
tree | 65c2470b48f54d01ad580d8f46dc81d52062e4a4 /libindicator/indicator-image-helper.c | |
parent | 8ee4d7de06ce3128335c52202f1717b7eb80bec1 (diff) | |
parent | 5600252dee9cd71ef58e51e3195f9bbce6c4b43e (diff) | |
download | libayatana-indicator-871b89ed341a27030eafe0c4d9f5d551ea331f1e.tar.gz libayatana-indicator-871b89ed341a27030eafe0c4d9f5d551ea331f1e.tar.bz2 libayatana-indicator-871b89ed341a27030eafe0c4d9f5d551ea331f1e.zip |
* New upstream release.
Diffstat (limited to 'libindicator/indicator-image-helper.c')
-rw-r--r-- | libindicator/indicator-image-helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c index b404b8f..23b08d0 100644 --- a/libindicator/indicator-image-helper.c +++ b/libindicator/indicator-image-helper.c @@ -44,6 +44,11 @@ refresh_image (GtkImage * image) /* Look through the themes for that icon */ icon_info = gtk_icon_theme_lookup_by_gicon(default_theme, icon_names, icon_size, 0); if (icon_info == NULL) { + /* Maybe the icon was just added to the theme, see if a rescan helps */ + gtk_icon_theme_rescan_if_needed(default_theme); + icon_info = gtk_icon_theme_lookup_by_gicon(default_theme, icon_names, icon_size, 0); + } + if (icon_info == NULL) { /* Try using the second item in the names, which should be the original filename supplied */ const gchar * const * names = g_themed_icon_get_names(G_THEMED_ICON( icon_names )); if (names) { |