[gtk/wip/matthiasc/popup5: 53/109] Drop gtk_widget_register_surface



commit 829165e2a821b4b25ad29d2cc908710198c717e7
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Apr 19 16:18:57 2019 -0400

    Drop gtk_widget_register_surface
    
    This is no longer used.

 docs/reference/gtk/gtk4-sections.txt  | 2 --
 docs/reference/gtk/input-handling.xml | 3 +--
 gtk/gtkwidget.c                       | 2 +-
 gtk/gtkwidget.h                       | 6 ------
 4 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 0c99a33be1..aaa79a49aa 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4492,8 +4492,6 @@ gtk_widget_get_has_tooltip
 gtk_widget_set_has_tooltip
 gtk_widget_trigger_tooltip_query
 gtk_widget_get_surface
-gtk_widget_register_surface
-gtk_widget_unregister_surface
 gtk_widget_get_allocated_width
 gtk_widget_get_allocated_height
 gtk_widget_get_allocation
diff --git a/docs/reference/gtk/input-handling.xml b/docs/reference/gtk/input-handling.xml
index 3895e4a269..f81252dfbb 100644
--- a/docs/reference/gtk/input-handling.xml
+++ b/docs/reference/gtk/input-handling.xml
@@ -104,8 +104,7 @@
       a #GdkSurface, which in turn represents a windowing system surface in the
       backend. If a widget has grabbed the current input device, or all input
       devices, the event is propagated to that #GtkWidget. Otherwise, it is
-      propagated to the the #GtkWidget which called gtk_widget_register_surface()
-      on the #GdkSurface receiving the event.
+      propagated to the the #GtkRoot which owns the #GdkSurface receiving the event.
     </para>
 
     <para>
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 1e7d57be93..d4721f21e9 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8341,7 +8341,6 @@ gtk_widget_real_unrealize (GtkWidget *widget)
 
   if (_gtk_widget_get_has_surface (widget))
     {
-      gtk_widget_unregister_surface (widget, priv->surface);
       gdk_surface_destroy (priv->surface);
       priv->surface = NULL;
     }
@@ -11344,6 +11343,7 @@ gtk_widget_set_surface (GtkWidget *widget,
 }
 
 static void gtk_widget_render (GtkWidget *, GdkSurface *, const cairo_region_t *);
+
 static gboolean
 surface_expose (GdkSurface     *surface,
                 cairo_region_t *region,
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index c34d962c1a..d2dd9fb036 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -563,12 +563,6 @@ void                  gtk_widget_set_surface            (GtkWidget    *widget,
                                                          GdkSurface    *surface);
 GDK_AVAILABLE_IN_ALL
 GdkSurface           * gtk_widget_get_surface           (GtkWidget    *widget);
-GDK_AVAILABLE_IN_ALL
-void                  gtk_widget_register_surface       (GtkWidget    *widget,
-                                                         GdkSurface    *surface);
-GDK_AVAILABLE_IN_ALL
-void                  gtk_widget_unregister_surface     (GtkWidget    *widget,
-                                                         GdkSurface    *surface);
 
 GDK_AVAILABLE_IN_ALL
 int                   gtk_widget_get_allocated_width    (GtkWidget     *widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]