[gtk/controllers-list: 2/3] Revert "Add gtk_widget_prepend_controller"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/controllers-list: 2/3] Revert "Add gtk_widget_prepend_controller"
- Date: Sun, 2 Aug 2020 16:01:46 +0000 (UTC)
commit 1c16cb751fc3542a48f7df10719bf00b3f0d1157
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 2 11:54:29 2020 -0400
Revert "Add gtk_widget_prepend_controller"
This reverts commit 692cc42e1023ec439d2fa1a0b9456e8cbfe1cec8.
gtk/gtkwidget.c | 17 -----------------
gtk/gtkwidgetprivate.h | 3 ---
2 files changed, 20 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index c7b0117538..8afac750a7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index b5af950cf4..3e48575f91 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]