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 th
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 page
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
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
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 er
You are right, the table coordinates are different - previously you could just
append the menuitem. This is what I have now tried:
fileMenu = new Gtk::Menu();
newMenuItem = new Gtk::MenuItem("New");
fileMenu->attach(*newMenuItem,0,1,0,1);
openMenuItem = new Gtk::MenuItem("Open");
fileMenu->attach
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 sho
> 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 ?
Will be something close to that.
Gaz
__
Okay, best that I can determine is that MenuItem is missing a constructor:
MenuItem(Glib::ustring label, Gtk::Menu menu)
this constructor would allow a menuitem (in my case "fileMenuItem") to be
constructed with a menu ("fileMenu") and then added to the menubar. That's
how it is shown in the XFC
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
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 sup
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)
12 matches
Mail list logo