Deal with missing icons
This commit is contained in:
parent
5db9888666
commit
8e7fe5dd65
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user