Re: Context menus for GtkTreeView



Hi,

On Thu, 2002-08-08 at 13:07, Dave Malcolm wrote:
> I'm porting a GTK1 app that used the GtkTree widget over to GTK2, and the 
> shiny new GtkTreeView widget.
> 
> I've got everything working apart from a right-click context/popup menu.
> 
> The existing code attaches a callback to the "event" signal of the tree item, 
> and manually checks for button 3.
> 
> Is there an "approved" way to implement this in GTK 2?  Or, indeed, a way 
> that works :-)  I was hoping for a special-purpose signal on the view that 
> gives me a row back, but I can't see one.

gtk_tree_view_get_path_at_pos() maybe?  Given the path you can easily
access the row data.  Check the reference manuals.

HTH,
Gustavo





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