[gtk/wip/matthiasc/popup5: 116/150] Drop gtk_widget_get_surface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 116/150] Drop gtk_widget_get_surface
- Date: Fri, 24 May 2019 02:07:56 +0000 (UTC)
commit 08347727be9aebfc6c148c6af9ef5fb6ba4e105f
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 6738079a08..6d0f913f21 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]