Re: Building menu




On Sep 29, 2004, at 5:14 AM, Alexandre Jousset wrote:

------------------------------------
        my $om = Gtk2::OptionMenu->new;
        my $menu = Gtk2::Menu->new;
        $om->set_menu($menu);

        my $item = Gtk2::MenuItem->new_with_label('foo');
        $menu->append($item);
------------------------------------

        When I run this code the answer is :

variable must be a reference to an array of Gnome UI Info Entries at ./oladm2.pl line 360, <DATA> line 422.

upgrade your Gnome2 module to 1.000 or later. nobody should be using anything older.


in Gnome2 < 0.93, the binding for gnome_popup_menu_append() clashed with the binding for gtk_menu_append(), as described here:

http://mail.gnome.org/archives/gtk-perl-list/2004-February/msg00178.html

this was fixed by renaming the method, as described here:

http://gtk2-perl.sourceforge.net/doc/pod/Gnome2.html#RENAMED_METHODS

--
Walk softly, and carry a BFG-9000.
  -- unknown




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]