forked from AuroraMiddleware/gtk
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:
parent
0b159f9db8
commit
9a04a27ba6
@ -1922,6 +1922,10 @@ gtk_button_button_press (GtkWidget *widget,
|
|||||||
return GDK_EVENT_STOP;
|
return GDK_EVENT_STOP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (event->type == GDK_2BUTTON_PRESS)
|
||||||
|
{
|
||||||
|
return GDK_EVENT_STOP;
|
||||||
|
}
|
||||||
|
|
||||||
return GDK_EVENT_PROPAGATE;
|
return GDK_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user