Re: [gtk-list] Detecting double-clicks in CList items
- From: Jeff Shipman <shippy nmt edu>
- To: gtk-list gnome org
- Cc: spirilis scitus yi org
- Subject: Re: [gtk-list] Detecting double-clicks in CList items
- Date: Thu, 25 May 2000 11:19:41 -0600 (MDT)
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 spirilis@scitus.yi.org 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 gtk-list-request@redhat.com < /dev/null
>
+-----------------------------------------------------+
| Jeff "Shippy" Shipman E-Mail: shippy@cs.nmt.edu |
| Computer Science Major ICQ: 1786493 |
| New Mexico Institute of Mining and Technology |
| Homepage: http://www.nmt.edu/~shippy |
+-----------------------------------------------------+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]