Re: [gtk-list] Re: Left click on a CList
- From: Renaud <renaud chaillat isr thomson-csf com>
- To: gtk-list redhat com
- CC: Chninkel <chninkel mail dotcom fr>
- Subject: Re: [gtk-list] Re: Left click on a CList
- Date: Fri, 21 Apr 2000 10:09:39 +0200
I forgot the most important part !
Use the following to get row and col from mouse coordinates :
gint gtk_clist_get_selection_info (GtkCList *clist,
gint x,
gint y,
gint *row,
gint *column);
Regards,
Renaud
Renaud wrote:
>
> 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
>
> --
> 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]