Re: context menu
- From: Dermot Musgrove <dermot glade perl connectfree co uk>
- To: "Alexandre Jousset work" <Alexandre Jousset sun com>, "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Re: context menu
- Date: Sat, 23 Dec 2000 13:29:25 +0000
"Alexandre Jousset work" wrote:
[...]
My question was also about the right way to create a popup menu. I'm using Gnome and I wanted to have
some small icons in the popup menu, using of course the same stock icons that for the standard menus
created with $gnome_app->create_menus(...). How could I do that ?
Hi, I gather that you are using Glade so you can just create a menu with
Glade and add all the mini-icons/stock items that you need and then
generate the perl source code with Glade-Perl.
I usually make separate menus for each widget and then show whichever is
relevant.
Glade-Perl generates the menu as Glade stores it (GtkPixmapMenuItems)
which are accessible from your perl code if you want to alter/add
labels/tooltips before you show the menu.
HTH, Dermot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]