forked from AuroraMiddleware/gtk
window: Remove gtk_window_get_screen()
It's identical to gtk_widget_get_screen(), just use that one.
This commit is contained in:
parent
1c36c6ed4d
commit
c8986e66ce
@ -4728,7 +4728,6 @@ gtk_window_set_transient_for
|
|||||||
gtk_window_set_attached_to
|
gtk_window_set_attached_to
|
||||||
gtk_window_set_destroy_with_parent
|
gtk_window_set_destroy_with_parent
|
||||||
gtk_window_set_screen
|
gtk_window_set_screen
|
||||||
gtk_window_get_screen
|
|
||||||
gtk_window_is_active
|
gtk_window_is_active
|
||||||
gtk_window_is_maximized
|
gtk_window_is_maximized
|
||||||
gtk_window_list_toplevels
|
gtk_window_list_toplevels
|
||||||
|
@ -1796,9 +1796,9 @@ gtk_mount_operation_get_screen (GtkMountOperation *op)
|
|||||||
priv = op->priv;
|
priv = op->priv;
|
||||||
|
|
||||||
if (priv->dialog)
|
if (priv->dialog)
|
||||||
return gtk_window_get_screen (GTK_WINDOW (priv->dialog));
|
return gtk_widget_get_screen (GTK_WIDGET (priv->dialog));
|
||||||
else if (priv->parent_window)
|
else if (priv->parent_window)
|
||||||
return gtk_window_get_screen (GTK_WINDOW (priv->parent_window));
|
return gtk_widget_get_screen (GTK_WIDGET (priv->parent_window));
|
||||||
else if (priv->screen)
|
else if (priv->screen)
|
||||||
return priv->screen;
|
return priv->screen;
|
||||||
else
|
else
|
||||||
|
@ -10052,24 +10052,6 @@ gtk_window_check_screen (GtkWindow *window)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* gtk_window_get_screen:
|
|
||||||
* @window: a #GtkWindow.
|
|
||||||
*
|
|
||||||
* Returns the #GdkScreen associated with @window.
|
|
||||||
*
|
|
||||||
* Returns: (transfer none): a #GdkScreen.
|
|
||||||
*
|
|
||||||
* Since: 2.2
|
|
||||||
*/
|
|
||||||
GdkScreen*
|
|
||||||
gtk_window_get_screen (GtkWindow *window)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
|
|
||||||
|
|
||||||
return window->priv->screen;
|
|
||||||
}
|
|
||||||
|
|
||||||
GdkScreen *
|
GdkScreen *
|
||||||
_gtk_window_get_screen (GtkWindow *window)
|
_gtk_window_get_screen (GtkWindow *window)
|
||||||
{
|
{
|
||||||
|
@ -253,8 +253,6 @@ GdkGravity gtk_window_get_gravity (GtkWindow *window);
|
|||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
void gtk_window_set_screen (GtkWindow *window,
|
void gtk_window_set_screen (GtkWindow *window,
|
||||||
GdkScreen *screen);
|
GdkScreen *screen);
|
||||||
GDK_AVAILABLE_IN_ALL
|
|
||||||
GdkScreen* gtk_window_get_screen (GtkWindow *window);
|
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
gboolean gtk_window_is_active (GtkWindow *window);
|
gboolean gtk_window_is_active (GtkWindow *window);
|
||||||
|
Loading…
Reference in New Issue
Block a user