Re: [gtk-list] Double clicks in a GtkList ??
- From: "José Miguel R. Barrientos" <jmiguel ceselsa es>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Double clicks in a GtkList ??
- Date: Tue, 18 May 1999 12:10:42 +0000
J8861077@pfc.eupvg.upc.es wrote:
>
> ..How do I detect a double-click on an item in a gtklist ??
>
> Marco, sweden.
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
{
gtk_widget_show(lista = gtk_clist_new(1));
gtk_signal_connect(GTK_OBJECT(lista), "button_press_event",
GTK_SIGNAL_FUNC(pointer_pressed), NULL);
}
/* */
void pointer_pressed(GtkWidget *wid, GdkEventButton *ev) {
if(ev->type == GDK_2BUTTON_PRESS)
fprintf(stderr, "Double-Click\n");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]