First, hook up your CList to the button_press_event like so:
gtk_signal_connect(GTK_OBJECT(clist), "button_press_event",
GTK_SIGNAL_FUNC(callback), NULL);
Then, your callback function should look something like this:
gint callback(GtkWidget *widget, GdkEventButton *event, gpointer data)
{
if(event->type == GDK_2BUTTON_PRESS && button_event->button == 1)
{
// Do double-click stuff...
}
return FALSE;
}
On Thu, 25 May 2000 [EMAIL PROTECTED] wrote:
> Is there any way to detect a double-click condition on a particular row inside
> a GtkCList? (like double-clicking on a folder item inside a CList to cause the
>program
> to change into the folder's directory and re-create the CList file listing from
> files/dirs in that folder)
>
> --
> To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
>
+-----------------------------------------------------+
| Jeff "Shippy" Shipman E-Mail: [EMAIL PROTECTED] |
| Computer Science Major ICQ: 1786493 |
| New Mexico Institute of Mining and Technology |
| Homepage: http://www.nmt.edu/~shippy |
+-----------------------------------------------------+
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list