mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 11:20:09 +00:00
widget: remove check on whether the controller was already added
Multiple calls are supposedly allowed to change the phase (although unlikely to happen), so remove the g_return_if_fail() checking whether the controller was already added.
This commit is contained in:
parent
bd68db4b25
commit
57eca4f445
@ -16833,7 +16833,6 @@ _gtk_widget_add_controller (GtkWidget *widget,
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
g_return_if_fail (GTK_IS_EVENT_CONTROLLER (controller));
|
||||
g_return_if_fail (widget == gtk_event_controller_get_widget (controller));
|
||||
g_return_if_fail (!_gtk_widget_has_controller (widget, controller));
|
||||
g_return_if_fail (phase >= GTK_PHASE_NONE && phase <= GTK_PHASE_TARGET);
|
||||
|
||||
priv = widget->priv;
|
||||
|
Loading…
Reference in New Issue
Block a user