On Sun, May 20, 2001 at 10:03:37PM -0400, Paul Davis wrote:
> >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.
Thanks for your answer.
In the case of my application I need to know the button the user pressed to react
on it (left button: select item, right button: popup menu).
Anyone knows how to do this?
Thanks
Rolf Schaeuble
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list