diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-01 18:06:24 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-01 19:44:28 -0400 |
commit | e3daf986caff31c2a1a4e8780206b759518690c2 (patch) | |
tree | c8fd57914308d41ac9db4aa1606267ba9a1b943a /gdk/x11/gdkapplaunchcontext-x11.c | |
parent | 473c642131e5dfcbfdf2c26e1d6464b5fbccc9a2 (diff) | |
download | gtk+-e3daf986caff31c2a1a4e8780206b759518690c2.tar.gz |
x11: Stop using gdk_display_get_default_screen
There's no point in using this api here, we can directly
get the screen member from the GdkX11Display struct.
Diffstat (limited to 'gdk/x11/gdkapplaunchcontext-x11.c')
-rw-r--r-- | gdk/x11/gdkapplaunchcontext-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c index 7abb0a1da0..a4e9800d6f 100644 --- a/gdk/x11/gdkapplaunchcontext-x11.c +++ b/gdk/x11/gdkapplaunchcontext-x11.c @@ -282,7 +282,7 @@ gdk_x11_app_launch_context_get_startup_notify_id (GAppLaunchContext *context, ctx = GDK_APP_LAUNCH_CONTEXT (context); display = ctx->display; - screen = gdk_display_get_default_screen (ctx->display); + screen = GDK_X11_DISPLAY (display)->screen; fileinfo = NULL; @@ -399,7 +399,7 @@ gdk_x11_app_launch_context_launch_failed (GAppLaunchContext *context, ctx = GDK_APP_LAUNCH_CONTEXT (context); - screen = gdk_display_get_default_screen (ctx->display); + screen = GDK_X11_DISPLAY (ctx->display)->screen; data = g_object_get_data (G_OBJECT (screen), "appinfo-startup-data"); |