forked from AuroraMiddleware/gtk
API: Remove -gtk_widget_get_root_window()
This commit is contained in:
parent
9be9e00a0e
commit
d09e48cec1
@ -5577,7 +5577,6 @@ gtk_widget_get_parent
|
||||
gtk_widget_get_settings
|
||||
gtk_widget_get_clipboard
|
||||
gtk_widget_get_display
|
||||
gtk_widget_get_root_window
|
||||
gtk_widget_get_screen
|
||||
gtk_widget_has_screen
|
||||
gtk_widget_get_size_request
|
||||
|
@ -10911,33 +10911,6 @@ gtk_widget_get_display (GtkWidget *widget)
|
||||
return gdk_screen_get_display (gtk_widget_get_screen (widget));
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_widget_get_root_window:
|
||||
* @widget: a #GtkWidget
|
||||
*
|
||||
* Get the root window where this widget is located. This function can
|
||||
* only be called after the widget has been added to a widget
|
||||
* hierarchy with #GtkWindow at the top.
|
||||
*
|
||||
* The root window is useful for such purposes as creating a popup
|
||||
* #GdkWindow associated with the window. In general, you should only
|
||||
* create display specific resources when a widget has been realized,
|
||||
* and you should free those resources when the widget is unrealized.
|
||||
*
|
||||
* Returns: (transfer none): the #GdkWindow root window for the toplevel for this widget.
|
||||
*
|
||||
* Since: 2.2
|
||||
*
|
||||
* Deprecated: 3.12: Use gdk_screen_get_root_window() instead
|
||||
*/
|
||||
GdkWindow*
|
||||
gtk_widget_get_root_window (GtkWidget *widget)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
||||
|
||||
return gdk_screen_get_root_window (gtk_widget_get_screen (widget));
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_widget_child_focus:
|
||||
* @widget: a #GtkWidget
|
||||
|
@ -1012,8 +1012,6 @@ GDK_AVAILABLE_IN_3_10
|
||||
gint gtk_widget_get_scale_factor (GtkWidget *widget);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkDisplay * gtk_widget_get_display (GtkWidget *widget);
|
||||
GDK_DEPRECATED_IN_3_12
|
||||
GdkWindow * gtk_widget_get_root_window (GtkWidget *widget);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkSettings* gtk_widget_get_settings (GtkWidget *widget);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
Loading…
Reference in New Issue
Block a user