Re: Dropdown menu on treeview

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

On Sun, 2006-09-10 at 10:52 +0100, Emmanuele Bassi wrote:
On Sun, 2006-09-10 at 11:09 +0200, Dieter Schicker wrote:

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:

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.


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