summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-09-09 14:53:18 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:17:21 +0200
commit0be88cc76e756ee96839273117b464ab21a4f708 (patch)
tree60a4b6e8bb29c2ea4947e24c9e3933a44cf8e22f /modules
parent579edbbca871f317b90ffec4e69d4f4b5cac91b2 (diff)
downloadgtk+-0be88cc76e756ee96839273117b464ab21a4f708.tar.gz
API: Remove gdk_screen_get_width() and gdk_screen_get_height()
... and gdk_screen_get_width_mm() and gdk_screen_get_height_mm() and the shortcut counterparts that call these functions on the default screen. Modern display servers don't provide an ability to query the size of a screen or display so we shouldn't allow that either.
Diffstat (limited to 'modules')
-rw-r--r--modules/input/gtkimcontextxim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/input/gtkimcontextxim.c b/modules/input/gtkimcontextxim.c
index 9a152b5060..4519d13c16 100644
--- a/modules/input/gtkimcontextxim.c
+++ b/modules/input/gtkimcontextxim.c
@@ -1624,7 +1624,7 @@ on_status_toplevel_configure (GtkWidget *toplevel,
if (status_window->window)
{
- height = gdk_screen_get_height (gtk_widget_get_screen (toplevel));
+ height = gdk_window_get_height (gdk_screen_get_root_window (gtk_widget_get_screen (toplevel)));
gdk_window_get_frame_extents (gtk_widget_get_window (toplevel),
&rect);