Re: problem with custom menu
- From: Murray Cumming <murrayc murrayc com>
- To: John Taber <jtaber johntaber net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: problem with custom menu
- Date: Fri, 22 Apr 2005 14:24:34 +0200
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 coordinates are a bit odd. Like the
warning says, you probably want 0, 1, 0, 1. This is hinted at in the
documentation:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Menu.html#a0
I guess this should have default values. A patch would be welcome.
But I personally prefer to use the UIManager anyway.
> fileMenuItem = new Gtk::MenuItem("File", fileMenu);
> menubar = new Gtk::MenuBar();
> menubar->append(*fileMenuItem);
> mainBox.pack_start(*menubar, Gtk::PACK_SHRINK);
>
> : Gtk-CRITICAL **: file gtkmenu.c: line 3836 (gtk_menu_attach): assertion
> `left_attach < right_attach' failed
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]