Re: [gtk-list] Clist double clicks
- From: Joshua Richardson <jric bu edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Clist double clicks
- Date: Tue, 1 Jun 1999 17:32:20 -0400 (EDT)
> How do i detect double clicks on a clist widget ?
> Thanks in advance
This is how I do it:
static gint clist_button_press_cb(GtkWidget *w, GdkEventButton *ev,
gpointer data)
{
gint row, column;
Ct2 *c = data;
if (ev->type == GDK_2BUTTON_PRESS) {
if (gtk_clist_get_selection_info(GTK_CLIST(w), ev->x, ev->y, &row,
&column)) {
/* do something with it here */
}
return TRUE; /* event handled */
}
return FALSE; /* event NOT handled */
}
gtk_signal_connect(GTK_OBJECT(c->clist), "button_press_event",
GTK_SIGNAL_FUNC(clist_button_press_cb), c);
Cheers, --josh
----------------------------------------------------------------
Joshua Richardson
Dept. Cognitive and Neural Systems / Center for Adaptive Systems
Boston University
----------------------------------------------------------------
On Tue, 1 Jun 1999, Edward March wrote:
>
>
> How do i detect double clicks on a clist widget ?
> Thanks in advance
>
>
>
> Best Regards,
> Ed
>
>
> //------------------------------------------------------------------------
> // Edward March Jr. WB9RAA -- Mt. Prospect, IL
> //
> // ***> http://www.enteract.com/~emarch
> // ***> http://www.bmtmicro.com/catalog/clone.html
> //
> // Win95 or Better, I chose better!
> // I Run OS/2 Warp 3.0 & 4.0 and Linux S.u.S.E. 5.3 and 6.0
> //------------------------------------------------------------------------
>
>
> --
> 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]