fix traceback with Gtk3.6

This commit is contained in:
Yann Leboulanger 2013-01-05 10:38:39 +01:00
parent 936d538eba
commit 0519253ff8
1 changed files with 2 additions and 1 deletions

View File

@ -1932,7 +1932,8 @@ class Interface:
# Calculate the side lenght of the popup to make it a square
size = int(round(math.sqrt(len(self.emoticons_images))))
for image in self.emoticons_images:
item = Gtk.MenuItem()
# In Gtk 3.6, Gtk.MenuItem() doesn't contain a label child
item = Gtk.MenuItem('q')
img = Gtk.Image()
if isinstance(image[1], GdkPixbuf.PixbufAnimation):
img.set_from_animation(image[1])