1. EuGTK: check_menu_item
- Posted by Jerry_Story Jan 21, 2012
- 1630 views
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?
2. Re: EuGTK: check_menu_item
- Posted by irv Jan 23, 2012
- 1494 views
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.
3. Re: EuGTK: check_menu_item
- Posted by Jerry_Story Jan 23, 2012
- 1487 views
I get many instances of the check_menu_item error and no useful line number. This is what I tracked some of it down to.
display(classname(MenuNDA)) -- diagnosis display(classname(MenuNDP)) -- diagnosis -- remember nutrients display if get(MenuNDA,"active") then puts(fn,"nutrients display = 1 \n") elsif get(MenuNDP,"active") then puts(fn,"nutrients display = 2 \n") end if display(classname(MenuB12)) -- diagnosis -- remember B12 if get(MenuB12,"active") then puts(fn,"B12 =1 \n") else puts(fn,"B12 = 0 \n") end if
(dmak.exw:12780): Gtk-CRITICAL **: gtk_check_menu_item_get_active: assertion `GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed GtkRadioMenuItem GtkRadioMenuItem (dmak.exw:12780): Gtk-CRITICAL **: gtk_check_menu_item_get_active: assertion `GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed (dmak.exw:12780): Gtk-CRITICAL **: gtk_check_menu_item_get_active: assertion `GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed GtkCheckMenuItem
Those things are radio menu items, as they are supposed to be. But the error message seems to think they are supposed to be check menu items.
4. Re: EuGTK: check_menu_item
- Posted by irv Jan 25, 2012
- 1486 views
Sorry, my bad - I left something out. There's an update here:
https://sites.google.com/site/euphoriagtk/Home
Look at test25.ex for an example.
And THANKS, I need help finding bugs, there's just too many things for one person to check 'em all!
5. Re: EuGTK: check_menu_item
- Posted by mattlewis (admin) Jan 25, 2012
- 1443 views
Sorry, my bad - I left something out. There's an update here:
https://sites.google.com/site/euphoriagtk/Home
Look at test25.ex for an example.
And THANKS, I need help finding bugs, there's just too many things for one person to check 'em all!
The demos seem to work on my 64-bit version of 4.1 under Kubuntu 11.10, although I've been getting errors like:
Warning: can't create image from '~/demos/thumbnails/icon-start.png' Failed to open file '/home/matt/demos/thumbnails/tiphat1.gif': No such file or directory...since I didn't extract into my home dir.
Matt
6. Re: EuGTK: check_menu_item
- Posted by SDPringle Jan 26, 2012
- 1330 views
If you are using the one that extracts only to a 'demos' directory, you are using a very old copy of EuGTK.
Shawn Pringle