Hi all

I get some failed assertions from gtk when I try to generate an
optionmenu using an itemfactory. It doesn't happen when I create a menu
or menubar, only when creating an optionmenu. Am I doing something
wrong, or is it a bug in pygtk or gtk+?


Consider this code:

menuitems = (("/Test1", None, None, 0, "<StockItem>", gtk.STOCK_ADD), )
ifact = gtk.ItemFactory(gtk.OptionMenu, "<main>")
ifact.create_items(menuitems)


which gives the following errors:

(:18378): Gtk-CRITICAL **: file gtkaccelmap.c: line 135
(gtk_accel_map_add_entry): assertion `_gtk_accel_path_is_valid
(accel_path)' failed
 
(:18378): Gtk-CRITICAL **: file gtkwidget.c: line 2937
(gtk_widget_set_accel_path): assertion `_gtk_accel_path_is_valid
(accel_path)' failed

(:18378): Gtk-CRITICAL **: file gtkmenu.c: line 1188
(gtk_menu_set_accel_path): assertion `accel_path[0] == '<' && strchr
(accel_path, '/')' failed


-- 
Erik Grinaker <[EMAIL PROTECTED]>
http://erikg.wired-networks.net/

"We act as though comfort and luxury were the chief requirements of
life, when all that we need to make us happy is something to be
enthusiastic about."
                                                      -- Albert Einstein

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to