Re: CList Question




On Thu, 9 Sep 1999, Aaron Faby wrote:
> Anyone know of a way to get a function to be executed 
> when someone double-clicks a row in a CList widget? The
> tutorial at the website never addressed this. Thanks
> in advance!
> 

static gint
button_press (GtkCTree *ctree, GdkEventButton *event, gpointer data)
{
  if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
    {

    }
  return TRUE;
}

  gtk_signal_connect (GTK_OBJECT (clist), "button_press_event",
                      GTK_SIGNAL_FUNC (button_press), ew);
  

Havoc




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