forked from AuroraMiddleware/gtk
Drop gtk_widget_get_surface
It is no longer used.
This commit is contained in:
parent
302d2a04ae
commit
8fc6f07327
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user