GtkButton: don't propagate double-clicks

It is basically always unexpected to have a container handle
double-clicks on a widget that handles single-clicks itself.
This commit is contained in:
Matthias Clasen 2013-11-15 23:41:09 -05:00
parent 0b159f9db8
commit 9a04a27ba6

View File

@ -1922,6 +1922,10 @@ gtk_button_button_press (GtkWidget *widget,
return GDK_EVENT_STOP;
}
}
else if (event->type == GDK_2BUTTON_PRESS)
{
return GDK_EVENT_STOP;
}
return GDK_EVENT_PROPAGATE;
}