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)>]
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 : em(gtk. STOCK_MISSING_ IMAGE) children( )
import gtk
Imenu = gtk.ImageMenuIt
children = Imenu.get_
print children
[<gtk.AccelLabel object at 0xd9ea00 (GtkAccelLabel at 0xbf7010)>]
In Debian, I do this em(gtk. STOCK_MISSING_ IMAGE) children( )
import gtk
Imenu = gtk.ImageMenuIt
children = Imenu.get_
print children
[<gtk.AccelLabel object at 0xb7d7f6e4 (GtkAccelLabel at 0x8673018)>, <gtk.Image object at 0xb7d7f874 (GtkImage at 0x8652570)>]