Drop gtk_widget_get_surface

It is no longer used.
This commit is contained in:
Matthias Clasen 2019-05-20 03:20:40 +00:00
parent 302d2a04ae
commit 8fc6f07327
4 changed files with 0 additions and 28 deletions

View File

@ -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

View File

@ -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 widgets surface if it is realized, %NULL otherwise
*
* Returns: (transfer none) (nullable): @widgets 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

View File

@ -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

View File

@ -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)
{