Re: [gtk-list] Left click on a CList



  Hi,

I think you can connect a handler on the 'button-press-event' signal of the
widget GTK_WIDGET(clist).

Your handler will have this prototype :
gboolean    user_function      (GtkWidget *widget, GdkEventButton *event,
gpointer user_data);

Then you get event->x and event->y and you know the button pressed with
event->button
(compare it to GDK_BUTTON1_MASK if I remember correctly).

Renaud

Chninkel wrote:

>     Hello,
>
>     I would like to know how I can easily get the left click event on a
> CList.
>     I want to know above what row and column it occured.
>
>     Thanks for explanation
>
>     Yann chninkel@mail.dotcom.fr
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null



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