Re: clist signal select_row repetition
- From: "Joshua Horvath" <Josh_Horvath-AJH051 email mot com>
- To: gtk-app-devel-list gnome org
- Cc: k_wayne linuxpower org
- Subject: Re: clist signal select_row repetition
- Date: Fri, 17 Nov 2000 09:43:44 -0600
k_wayne linuxpower org wrote:
hi everyone,
A quick question about the clist select_row signal. I have a function
catching it but it appears to get called more than once...
I connect the signal as follows:
gtk_signal_connect(GTK_OBJECT(wid), "select_row",
GTK_SIGNAL_FUNC(blah), NULL);
Then in function blah:
gint blah (GtkWidget *clist, gint row, gint column, GdkEventButton *event,
gpointer data)
/* Check for double click */
if (event != NULL && event->button == 1 && event->type ==
GDK_2BUTTON_PRESS) {
g_print("double click!\n");
....
Try using this instead:
if (event->button.type == GDK_2BUTTON_PRESS)
{
...
}
-Josh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]