Re: Check the button pressed in a gtktreeview




On Wed, 20 Nov 2002, julius99 wrote:

I want to known which mouse button (left or right) is pressed
on a gtktreeview selection

Someone can help me ??
Thx


I do it (in old fashion way):


gboolean
on_treeview1_button_release_event      (GtkWidget       *widget,
                                        GdkEventButton  *event,
                                        gpointer         user_data)
{
  if (event->type==GDK_BUTTON_RELEASE &&
      event->button==3)
  {
...

gtk_signal_connect (GTK_OBJECT (treeview), "button_release_event",
                      GTK_SIGNAL_FUNC (on_treeview1_button_release_event),
                      NULL);




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