revert detection inexisting file in setIconImage()

we want the user to know that the path he provided is wrong.
This commit is contained in:
foudfou 2012-02-07 18:50:54 +01:00
parent 771d6df3b3
commit 35463b302c
1 changed files with 2 additions and 5 deletions

View File

@ -111,12 +111,9 @@ firetray.Handler.setIconImage = function(filename) {
return false;
LOG(filename);
let pixbuf = gdk.gdk_pixbuf_new_from_file(filename, null);
if (strEquals(pixbuf, gdk.GdkPixbuf.ptr(null)))
return false;
try {
gtk.gtk_status_icon_set_from_pixbuf(firetray.StatusIcon.trayIcon, pixbuf);
gtk.gtk_status_icon_set_from_file(firetray.StatusIcon.trayIcon,
filename);
} catch (x) {
ERROR(x);
return false;