aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-18 11:01:43 -0500
committerTed Gould <ted@gould.cx>2010-08-18 11:01:43 -0500
commit5c85a799d1b5bd613177ff80bf36d11f13afec1e (patch)
tree3d8c2c5413ca32a25b7afbca75882dc6ae2cac64 /libindicator
parent94a94652592cab71ec64f75cca04e9b9052d05db (diff)
parent7df0fe9109e7ffab293cf5d720cc708d5e6ff89f (diff)
downloadlibayatana-indicator-5c85a799d1b5bd613177ff80bf36d11f13afec1e.tar.gz
libayatana-indicator-5c85a799d1b5bd613177ff80bf36d11f13afec1e.tar.bz2
libayatana-indicator-5c85a799d1b5bd613177ff80bf36d11f13afec1e.zip
Import upstream version 0.3.12
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;
}