Re: [gtk-list] Re: CList in Gtk+ 1.1.1



On Wed, 19 Aug 1998, Stuart Parmenter wrote:

> you need to catch the button_press_event
> 
> something like:
> 
>   gtk_signal_connect (GTK_OBJECT (clist),
>              "button_press_event",
>              (GtkSignalFunc) button_event_press_cb,
>              (gpointer) bindex);
> 
> 
> static void

static gboolean /* or gint */
> button_event_press_cb (GtkCList * clist, GdkEventButton * event, gpointer data)
> {
>   gint row, column;
>   Message *message;
>   BalsaIndex *bindex;
> 
>   if (event->window != clist->clist_window)
>     return;
      return FALSE;
> 
>   if (!event || event->button != 3)
>     return;
      return FALSE;
> 
>  ...
> 
  return TRUE; /* TRUE indicates that we handled the event and don't want it
                  to be passed up the widget tree */
> }
> 
> or something like that :)
> 
> -pav
> 

---
ciaoTJ



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