Hello,

On Thu, 29 Apr 1999, you wrote:

>I'm getting seg faults with gnome-python 1.0.2 when selecting some menu
>items in a gtk app (menus made with item factory).  Same behavior under Gtk
>1.2.1 and 1.2.2.


The problem might be, that GtkExtra.py redefines the MENU_FACTORY_* constants to
different values, than they are defined in GTK.py. So programs using 
MenuFactory might end in using wrong values for MenuFactory*s type. I already
sent a patch to James Henstridge.

Lars Heete
diff -U5 -r pygtk-0.6.0/GtkExtra.py pygtk-0.6.0.patched/GtkExtra.py
--- pygtk-0.6.0/GtkExtra.py     Sun Apr 25 03:19:46 1999
+++ pygtk-0.6.0.patched/GtkExtra.py     Wed Apr 28 10:48:18 1999
@@ -6,14 +6,10 @@
 #
 
 from gtk import *
 import string
 
-MENU_FACTORY_MENU_BAR    = 0
-MENU_FACTORY_MENU        = 1
-MENU_FACTORY_OPTION_MENU = 2
-
 # type is MENU_FACTORY_{MENU,MENU_BAR,OPTION_MENU}
 class MenuFactory:
        def __init__(self, type=MENU_FACTORY_MENU_BAR):
                self.accelerator = GtkAccelGroup()
                if type == MENU_FACTORY_MENU_BAR:

Reply via email to