diff options
author | Dan Williams <dcbw@localhost.localdomain> | 2006-09-28 21:00:15 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@localhost.localdomain> | 2006-09-28 21:00:15 (GMT) |
commit | 8e7fe5dd659db80f6a09541379037d5237d92a30 (patch) | |
tree | 0d3cfae96382f6880453b8d73961b6f766c153f4 /sugar/chat | |
parent | 5db9888666078dddfe5f51b3c2b1e72de6eb2511 (diff) |
Deal with missing icons
Diffstat (limited to 'sugar/chat')
-rw-r--r-- | sugar/chat/ChatToolbar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sugar/chat/ChatToolbar.py b/sugar/chat/ChatToolbar.py index b150fa6..70f0c2c 100644 --- a/sugar/chat/ChatToolbar.py +++ b/sugar/chat/ChatToolbar.py @@ -83,8 +83,9 @@ class ChatToolbar(gtk.HBox): for name in Emoticons.get_instance().get_all(): icon_theme = gtk.icon_theme_get_default() pixbuf = icon_theme.load_icon(name, 16, 0) - model.append([pixbuf, name]) - + if pixbuf: + model.append([pixbuf, name]) + icon_view = gtk.IconView(model) icon_view.connect('selection-changed', self.__emoticon_selection_changed_cb) icon_view.set_pixbuf_column(0) |