From 4a1a65dfbd3bd8a07638c4cff3a2f60cf270f44f Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 19 Jan 2010 20:03:05 +0000 Subject: [PATCH] Make icon setting more rubust --- terminatorlib/window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 413f0840..72807751 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -7,6 +7,7 @@ import pygtk pygtk.require('2.0') import gobject import gtk +import glib from util import dbg, err from translation import _ @@ -122,7 +123,7 @@ class Window(Container, gtk.Window): try: icon = icon_theme.load_icon(APP_NAME, 48, 0) - except NameError: + except (NameError, glib.GError): dbg('Unable to load 48px Terminator icon') icon = self.render_icon(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON)