Re: EuGTK - GtkImageMenuItem - Is it checked?
- Posted by Jerry_Story Sep 06, 2010
- 859 views
irv said...
item_x = create(GtkCheckMenuItem,"with_mnemonic=>_About") --- -- alternate: create(GtkCheckMenuItem,"with_label=>My Label Text") --- if get(item_x,"active") then ....
However, I left out GtkCheckMenuItem from the wrapper: you can easily add the following anywhere in the control method declarations section of GtkRoutines.e
control[GtkCheckMenuItem] = {"gtk_check_menu_item",GtkMenuItem, {"new_with_mnemonic",{S},P}, {"new_with_label",{S},P}, {"new",{},P}, {"get_active",{P},B}, {"set_active",{P,B}}, {"toggled",{P}}, {"get_inconsistent",{P},B}, {"set_inconsistent",{P,B}}, {"set_draw_as_radio",{P,B}}, {"get_draw_as_radio",{P},B} }
Thanks.