Public bug reported: The version of pygtk included with the latest ubuntu 8.10 alpha (6) breaks the way gtk.ImageMenuItem's get_children function works. Instead of returning gtk.Image and gtk.AccelLabel objects it simply returns the gtk.AccelLabel.
Example (on ubuntu 8.04): >>> import gtk >>> print gtk.ImageMenuItem(stock_id=gtk.STOCK_OK).get_children() [<gtk.AccelLabel object at 0xb7cc5aa4 (GtkAccelLabel at 0x83bb850)>, <gtk.Image object at 0xb7cc5c0c (GtkImage at 0x835e0f8)>] Example (on ubuntu 8.10 alpha 6): >>> import gtk >>> print gtk.ImageMenuItem(stock_id=gtk.STOCK_OK).get_children() [<gtk.AccelLabel object at 0x9ae0a2c (GtkAccelLabel at 0x9d7e028)>] A simple workaround would be to use get_child for the label and get_image for the image, but I suspect this may break some applications' functionality if the status quo remains. ** Affects: pygtk (Ubuntu) Importance: Undecided Status: New -- gtk.ImageMenuItem's get_children() function no longer returns the gtk.Image https://bugs.launchpad.net/bugs/275188 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs