Re: problem with custom menu

2005-05-04 Thread Murray Cumming
On Sun, 2005-04-24 at 23:33 -0600, John Taber wrote: I finally figured this out - the former menu append methods have been deprecated in the gtk api, replaced by using the attach and the submenu methods. I'm willing to do a brief how-to writeup on this but where or what format should this

Re: problem with custom menu

2005-04-24 Thread John Taber
I finally figured this out - the former menu append methods have been deprecated in the gtk api, replaced by using the attach and the submenu methods. I'm willing to do a brief how-to writeup on this but where or what format should this be posted? This would be a good candidate for a wiki

problem with custom menu

2005-04-22 Thread John Taber
I'm having a problem with the newer way to use a custom menu - can someone help out - thanks. fileMenu = new Gtk::Menu(); openMenuItem = new Gtk::MenuItem(Open); fileMenu-attach(*openMenuItem,0,0,0,0); fileMenuItem = new Gtk::MenuItem(File, fileMenu); menubar = new Gtk::MenuBar();

Re: problem with custom menu

2005-04-22 Thread Murray Cumming
On Fri, 2005-04-22 at 05:41 -0600, John Taber wrote: I'm having a problem with the newer way to use a custom menu - can someone help out - thanks. fileMenu = new Gtk::Menu(); openMenuItem = new Gtk::MenuItem(Open); fileMenu-attach(*openMenuItem,0,0,0,0); Table (and Menu, I guess) attach

Re: problem with custom menu

2005-04-22 Thread Murray Cumming
On Fri, 2005-04-22 at 09:38 -0600, John Taber wrote: Thanks for suggestion - it eliminated the error but my menuitems are still not showing Are you calling show()? (to test I added a second one at 0,1,0,2). I have read the documentation but I cannot understand what the table is

Re: problem with custom menu

2005-04-22 Thread John Taber
Huh? I'm simply trying to build a simple menu and ::attach with the table coordinates is exactly what is in the gtkmm API documentation (under widgets/menu) and what compiles (menu-append will not compile for me). I don't want to use actions for several reasons related to what other widgets I

Re: problem with custom menu

2005-04-22 Thread John Taber
Thanks for suggestion - it eliminated the error but my menuitems are still not showing (to test I added a second one at 0,1,0,2). I have read the documentation but I cannot understand what the table is supposed to do and maybe that is where my problem is. btw other gtk documentation I have

Re: problem with custom menu

2005-04-22 Thread Murray Cumming
On Fri, 2005-04-22 at 11:03 -0600, John Taber wrote: Huh? I'm simply trying to build a simple menu and ::attach with the table coordinates is exactly what is in the gtkmm API documentation (under widgets/menu) and what compiles (menu-append will not compile for me). What compilation error

RE: problem with custom menu

2005-04-22 Thread Murray Cumming
On Fri, 2005-04-22 at 17:23 +0100, Foster, Gareth wrote: to the top or bottom ? ). Btw - what is the best way to check versions on my installed gtk, gtkmm, glib (one machine is Fedora, one is ubuntu debian). thks. rpm -q gtkmm-devel Or maybe rpm -q gtkmm2-devel ?

Re: problem with custom menu

2005-04-22 Thread Murray Cumming
On Fri, 2005-04-22 at 10:19 -0600, John Taber wrote: You are right, the table coordinates are different - previously you could just append the menuitem. What is this previously API? I didn't even know that this Menu::attach() method existed. What are you actually trying to do? I'm sure