Re: [gtk-list] Double clicks in a GtkList ??



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]