Thank you for being so quick. I'll try it as soon as possible.
2006/3/28, Bob Caryl <[EMAIL PROTECTED]>:
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
>[email protected]
> 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
_______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
