[gtk/wip/matthiasc/popup5: 112/145] Drop gtk_widget_get_surface



commit deff335760a84f97021840f7d1cb68d1c844e8d6
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 20 03:20:40 2019 +0000

    Drop gtk_widget_get_surface
    
    It is no longer used.

 docs/reference/gtk/gtk4-sections.txt |  1 -
 gtk/gtkwidget.c                      | 18 ------------------
 gtk/gtkwidget.h                      |  3 ---
 gtk/gtkwidgetprivate.h               |  6 ------
 4 files changed, 28 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 7c0f38a198..9ebb6fb53a 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4495,7 +4495,6 @@ gtk_widget_set_tooltip_window
 gtk_widget_get_has_tooltip
 gtk_widget_set_has_tooltip
 gtk_widget_trigger_tooltip_query
-gtk_widget_get_surface
 gtk_widget_get_allocated_width
 gtk_widget_get_allocated_height
 gtk_widget_get_allocation
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index bfa4a0635b..d1ceb04ddc 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11199,24 +11199,6 @@ gtk_widget_get_allocated_baseline (GtkWidget *widget)
   return priv->baseline - margin.top - border.top - padding.top;
 }
 
-/**
- * gtk_widget_get_surface:
- * @widget: a #GtkWidget
- *
- * Returns the widget’s surface if it is realized, %NULL otherwise
- *
- * Returns: (transfer none) (nullable): @widget’s surface.
- */
-GdkSurface *
-gtk_widget_get_surface (GtkWidget *widget)
-{
-  GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
-
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-
-  return priv->surface;
-}
-
 /**
  * gtk_widget_get_support_multidevice:
  * @widget: a #GtkWidget
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 854ada26ff..7ef819b8a1 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -552,9 +552,6 @@ void                  gtk_widget_set_child_visible      (GtkWidget    *widget,
 GDK_AVAILABLE_IN_ALL
 gboolean              gtk_widget_get_child_visible      (GtkWidget    *widget);
 
-GDK_AVAILABLE_IN_ALL
-GdkSurface           * gtk_widget_get_surface           (GtkWidget    *widget);
-
 GDK_AVAILABLE_IN_ALL
 int                   gtk_widget_get_allocated_width    (GtkWidget     *widget);
 GDK_AVAILABLE_IN_ALL
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 3bd7277357..0f111ca805 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -470,12 +470,6 @@ _gtk_widget_peek_request_cache (GtkWidget *widget)
   return &widget->priv->requests;
 }
 
-static inline GdkSurface *
-_gtk_widget_get_surface (GtkWidget *widget)
-{
-  return widget->priv->surface;
-}
-
 static inline GtkWidget *
 _gtk_widget_get_prev_sibling (GtkWidget *widget)
 {


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