Re: Dropdown menu on treeview
- From: Dieter Schicker <dieter schicker uni-graz at>
- To: gtk-perl-list gnome org
- Subject: Re: Dropdown menu on treeview
- Date: Sun, 10 Sep 2006 23:48:43 +0200
Thanks a lot, Emmanuele. It's really great two do GUIs with Glade and
Perl!! I appreciate GTK+ more and more. I'm an old java junky and I
therefore really know what it means to have a good GUI builder!! ;-)
Now I'm struggling with a progressbar which I want to popup now and
then. Is it recommended to do that in a separate thread?
Thanks again & good night
Dieter
On Sun, 2006-09-10 at 10:52 +0100, Emmanuele Bassi wrote:
On Sun, 2006-09-10 at 11:09 +0200, Dieter Schicker wrote:
Hi,
I want to popup a dropdown menu when the user right clicks on a row in
the treeview but I can't find information about that in the docs.
There should be a FAQ on this, as it has been discussed on this very
mailing list some times already:
http://mail.gnome.org/archives/gtk-perl-list/2004-July/msg00140.html
http://mail.gnome.org/archives/gtk-perl-list/2003-December/msg00018.html
http://mail.gnome.org/archives/gtk-perl-list/2004-July/msg00162.html
Use the "button-press-event" to catch the button, get the row/column
pair using Gtk2::TreeView::get_row_at_pos() using the event coordinates,
build a Gtk2::Menu and then use Gtk2::Menu::popup() on it.
Ciao,
Emmanuele.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]