1. EuGTK: check_menu_item

dmak.exw:4768): Gtk-CRITICAL **: gtk_check_menu_item_get_active: assertion `GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed 
The line number is useless. I don't see a demo on this. How can I get a clue?

new topic     » topic index » view message » categorize

2. Re: EuGTK: check_menu_item

Jerry_Story said...

dmak.exw:4768): Gtk-CRITICAL **: gtk_check_menu_item_get_active: assertion `GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed 
The 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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuGTK: check_menu_item

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: EuGTK: check_menu_item

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!

new topic     » goto parent     » topic index » view message » categorize

5. Re: EuGTK: check_menu_item

irv said...

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: EuGTK: check_menu_item

If you are using the one that extracts only to a 'demos' directory, you are using a very old copy of EuGTK.

Shawn Pringle

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu