Re: problem with custom menu
- From: John Taber <jtaber johntaber net>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: problem with custom menu
- Date: Fri, 22 Apr 2005 12:52:02 -0600
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 documentation. I don't know how else to attach a
menu to the Menubar.
John
On Friday 22 April 2005 11:15, Murray Cumming wrote:
> 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 do you get?
>
> > I
> > don't want to use actions for several reasons related to what other
> > widgets I want on a toolbar
>
> I'd like some discussion/bugzilla for anything that the UIManager can't
> do, so we can make it do it, if necessary.
>
> However, here's an earlier version of one of the Menu examples, using
> the old API. Maybe it's helpful:
> http://cvs.gnome.org/viewcvs/gtkmm/examples/book/menus/main_menu/examplewin
>dow.cc?rev=1.3&view=markup
--
John Taber, Ph.D.
P.O. Box 71949
Salt Lake City, UT 84171
(801)440-2831
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]