1. EuGTK: GtkCheckMenuItem

Everything is showing up in the menu bar except GtkCheckMenuItem.

 MenuRaw    = create(GtkCheckMenuItem,"new_with_label=>Raw only, no cooked"), 
 MenuNoSalt = create(GtkCheckMenuItem,"new_with_label=>No Salt"), 
 MenuNoDried = create(GtkCheckMenuItem,"new_with_label=>No Dried"), 

grep finds examples of GtkRadioMenuItem but no examples of GtkCheckMenuItem.

/demos$ grep RadioMenu *.ex 
test25.ex:	editradio1 = create(GtkRadioMenuItem,0,"Normal","SetColors",NORM), 
test25.ex:	editradio2 = create(GtkRadioMenuItem,editradio1,"Inverse","SetColors",INVERSE), 
test25.ex:	editradio3 = create(GtkRadioMenuItem,editradio2,"Grn/Blk","SetColors",GRNBLK) 
/demos$ grep CheckMenu *.ex 
/demos$  
How do you do GtkCheckMenuItem?

new topic     » topic index » view message » categorize

2. Re: EuGTK: GtkCheckMenuItem

I left that out, but you can easily fix that: in GtkEngine.e, around line 199, add GtkCheckMenuItem to the case as shown below:

case GtkToggleButton, GtkCheckButton, GtkMenuItem, GtkCheckMenuItem then  
	if match("_",args[1]) > 0 then  
                return "new_with_mnemonic" 
	else  
                return "new_with_label" 
	end if 

And you no longer need the new_with_label=>: part, that is the default. In fact, you should remove all such => commands, they are no longer used. I've updated EuGTK to add GtkCheckMenuItem, as well as a few bug fixes today:

https://sites.google.com/site/euphoriagtk/Home

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

3. Re: EuGTK: GtkCheckMenuItem

Yup. That works. Everything is in the menu bar.

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

4. Re: EuGTK: GtkCheckMenuItem

http://sites.google.com/site/euphoriagtk/Home

Updated today to add Eu function linking to CheckMenuItems, plus demos of really snazzy css gradient backgrounds for windows, buttons, etc...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu