diff options
author | Benjamin Otte <otte@redhat.com> | 2017-10-31 07:41:15 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-10-31 08:25:37 +0100 |
commit | 07164e098a1c9d71ab580912cd7f37020a18c2e7 (patch) | |
tree | 54d09681086f8897295e5acfff60ebe32f70ddfe /modules | |
parent | b0dc8514e440a75753e91119cd90646fc08f8059 (diff) | |
download | gtk+-07164e098a1c9d71ab580912cd7f37020a18c2e7.tar.gz |
window: Turn gtk_window_set_screen() into gtk_window_set_display()
And have a priv->display instead of a priv->screen.
Includes turning gtk_menu_set_screen() into gtk_menu_set_display(),
because that function just forwards to its window.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/input/gtkimcontextxim.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/input/gtkimcontextxim.c b/modules/input/gtkimcontextxim.c index 3095fcfabd..0c2c37596b 100644 --- a/modules/input/gtkimcontextxim.c +++ b/modules/input/gtkimcontextxim.c @@ -1619,13 +1619,13 @@ on_status_toplevel_destroy (GtkWidget *toplevel, * screen for the status window to match. */ static void -on_status_toplevel_notify_screen (GtkWindow *toplevel, - GParamSpec *pspec, - StatusWindow *status_window) +on_status_toplevel_notify_display (GtkWindow *toplevel, + GParamSpec *pspec, + StatusWindow *status_window) { if (status_window->window) - gtk_window_set_screen (GTK_WINDOW (status_window->window), - gtk_widget_get_screen (GTK_WIDGET (toplevel))); + gtk_window_set_display (GTK_WINDOW (status_window->window), + gtk_widget_get_display (GTK_WIDGET (toplevel))); } /* Called when the toplevel window is moved; updates the position of @@ -1675,7 +1675,7 @@ status_window_free (StatusWindow *status_window) G_CALLBACK (on_status_toplevel_destroy), status_window); g_signal_handlers_disconnect_by_func (status_window->toplevel, - G_CALLBACK (on_status_toplevel_notify_screen), + G_CALLBACK (on_status_toplevel_notify_display), status_window); g_signal_handlers_disconnect_by_func (status_window->toplevel, G_CALLBACK (on_status_toplevel_configure), @@ -1711,8 +1711,8 @@ status_window_get (GtkWidget *toplevel) g_signal_connect (toplevel, "configure-event", G_CALLBACK (on_status_toplevel_configure), status_window); - g_signal_connect (toplevel, "notify::screen", - G_CALLBACK (on_status_toplevel_notify_screen), + g_signal_connect (toplevel, "notify::display", + G_CALLBACK (on_status_toplevel_notify_display), status_window); g_object_set_data (G_OBJECT (toplevel), "gtk-im-xim-status-window", status_window); @@ -1740,8 +1740,8 @@ status_window_make_window (StatusWindow *status_window) gtk_container_add (GTK_CONTAINER (window), status_label); - gtk_window_set_screen (GTK_WINDOW (status_window->window), - gtk_widget_get_screen (status_window->toplevel)); + gtk_window_set_display (GTK_WINDOW (status_window->window), + gtk_widget_get_display (status_window->toplevel)); on_status_toplevel_configure (status_window->toplevel, NULL, status_window); } |