Re: EuGTK: check_menu_item
- Posted by irv Jan 23, 2012
- 1495 views
Jerry_Story said...
dmak.exw:4768): Gtk-CRITICAL **: gtk_check_menu_item_get_active: assertion `GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failedThe line number is useless. I don't see a demo on this. How can I get a clue?
This error message indicates that the 'handle' you passed was not recognized as being an item in the GtkCheckMenuItem class. I'd have to know how you are obtaining that handle to see if it's a bug in EuGTK (most likely, but easily fixed) - or some other bug.
There's a classname() function in GtkEngine.e which returns the class of a handle - try
display(classname(x))
where x is the handle at a point just before the error. If you get a 'subscript -1 is out of bounds...' error, then the handle is invalid/not registered. If that's the case, I'll have to figure out why.