aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-18 10:57:05 -0500
committerTed Gould <ted@gould.cx>2010-08-18 10:57:05 -0500
commit3a8fac7512355daeaed3debb4807cb1651ddd1df (patch)
treea4305e55a6b3bbaf9af772d055a093fff0ba6fb5 /libindicator
parent6a055d8bfda60a818fa8c9118561b0afc2b4c4f5 (diff)
parent6878f1743e25a849d0a883259f06345814280637 (diff)
downloadlibayatana-indicator-3a8fac7512355daeaed3debb4807cb1651ddd1df.tar.gz
libayatana-indicator-3a8fac7512355daeaed3debb4807cb1651ddd1df.tar.bz2
libayatana-indicator-3a8fac7512355daeaed3debb4807cb1651ddd1df.zip
Fixing a g_error so we don't kill unity
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-image-helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c
index 6b11f6f..b404b8f 100644
--- a/libindicator/indicator-image-helper.c
+++ b/libindicator/indicator-image-helper.c
@@ -50,6 +50,7 @@ refresh_image (GtkImage * image)
icon_filename = names[1];
} else {
g_warning("Unable to find icon\n");
+ gtk_image_clear(image);
return;
}
} else {
@@ -67,7 +68,8 @@ refresh_image (GtkImage * image)
}
if (pixbuf == NULL) {
- g_error("Unable to load icon from file '%s' because: %s", icon_filename, error == NULL ? "I don't know" : error->message);
+ g_warning("Unable to load icon from file '%s' because: %s", icon_filename, error == NULL ? "I don't know" : error->message);
+ gtk_image_clear(image);
return;
}