Re: Popup menu and TGtk::TreeStore
- From: "Mickael Drean" <mickael drean gmail com>
- To: bob fis-cal com
- Cc: gtkmm-list gnome org
- Subject: Re: Popup menu and TGtk::TreeStore
- Date: Tue, 28 Mar 2006 21:57:06 +0200
Thank you for being so quick. I'll try it as soon as possible.
2006/3/28, Bob Caryl <bob fis-cal com>:
Mickael Drean wrote:
> Hi there,
>
> I finish my first "TreeView" this afternoon but I would like to have
> a popup menu. In example i've seen that popup were available only with
> Gtk::TreeView and not with Gtk::TreeStore. Anyway, is there a way to
> get one? (I like to know how which row i clicked)
>
>
> Bye
>
> Mick
>
>------------------------------------------------------------------------
>
>_______________________________________________
>gtkmm-list mailing list
>gtkmm-list gnome org
>
http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
Hey Mick,
If you have not already done so, declare and associate a
Gtk::TreeSelection with your Gtk::TreeView. Then connect a callback
slot to the selection's 'changed' signal. In that callback slot you can
use Gtk::TreeSelection::get_selected() method to get an iterator to the
row that was selected, and launch your popup menu from there.
Bob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]