Revert "Add gtk_widget_prepend_controller"

This reverts commit 692cc42e10.
This commit is contained in:
Matthias Clasen 2020-08-02 11:54:29 -04:00
parent 127612d213
commit 1c16cb751f
2 changed files with 0 additions and 20 deletions

View File

@ -10768,23 +10768,6 @@ gtk_widget_add_controller (GtkWidget *widget,
gtk_list_list_model_item_added_at (priv->controller_observer, priv->controllers->len - 1);
}
void
gtk_widget_prepend_controller (GtkWidget *widget,
GtkEventController *controller)
{
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
GTK_EVENT_CONTROLLER_GET_CLASS (controller)->set_widget (controller, widget);
if (G_UNLIKELY (!priv->controllers))
priv->controllers = g_ptr_array_new ();
g_ptr_array_insert (priv->controllers, 0, controller);
if (priv->controller_observer)
gtk_list_list_model_item_added_at (priv->controller_observer, 0);
}
/**
* gtk_widget_remove_controller:
* @widget: a #GtkWidget

View File

@ -337,9 +337,6 @@ gboolean gtk_widget_run_controllers (GtkWidget
double x,
double y,
GtkPropagationPhase phase);
void gtk_widget_prepend_controller (GtkWidget *widget,
GtkEventController *controller);
void gtk_widget_handle_crossing (GtkWidget *widget,
const GtkCrossingData *crossing,
double x,