Comment 11 for bug 256329

Revision history for this message
Julien Lavergne (gilir) wrote :

The problem seems to be in gtk.ImageMenuItem : the get_children should return a label and a image but it return only a label in Ubuntu.

In Ubuntu, I do this :
import gtk
Imenu = gtk.ImageMenuItem(gtk.STOCK_MISSING_IMAGE)
children = Imenu.get_children()
print children
[<gtk.AccelLabel object at 0xd9ea00 (GtkAccelLabel at 0xbf7010)>]

In Debian, I do this
import gtk
Imenu = gtk.ImageMenuItem(gtk.STOCK_MISSING_IMAGE)
children = Imenu.get_children()
print children
[<gtk.AccelLabel object at 0xb7d7f6e4 (GtkAccelLabel at 0x8673018)>, <gtk.Image object at 0xb7d7f874 (GtkImage at 0x8652570)>]