Re: selection signal on ctree



>Is there any way to get an GdkEventButton on a tree_select_row event?
>I need one to popup a context menu when user presses the rigth mouse button
>on a GtkCTree item. I cannot connect to a GtkCList-select_row event, because
>then I cannot use gtk_ctree_select. Is there anything I can do to get an
>GdkEventButton when using only CTree-signals?

you don't actually need the button event for the menu.
gtk_menu_popup(menu, ..., 0, 0) will generally work. however, be careful
with the button argument. if the user used button 2 to select the row,
and you pass button 0 as the button to the menu, things get a little
wierd.

--p



   




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