summaryrefslogtreecommitdiff
path: root/src/terminal-app.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-21 00:29:07 +0200
committerZenWalker <[email protected]>2017-07-21 00:29:07 +0200
commit3f374d57879f6217acebe4e37b0c61bc9991eb7a (patch)
treee92a99bf00a3cb790e01a2e9621c5ad7be355975 /src/terminal-app.c
parente78b50d982f48ff742d5738648c2637fc652e7cc (diff)
downloadmate-terminal-3f374d57879f6217acebe4e37b0c61bc9991eb7a.tar.bz2
mate-terminal-3f374d57879f6217acebe4e37b0c61bc9991eb7a.tar.xz
avoid deprecated gdk_display_get_screen
Diffstat (limited to 'src/terminal-app.c')
-rw-r--r--src/terminal-app.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/terminal-app.c b/src/terminal-app.c
index d9cc0f0..5b16f48 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -270,9 +270,7 @@ terminal_app_get_screen_by_display_name (const char *display_name,
if (display == NULL)
return NULL;
- if (screen_number >= 0)
- screen = gdk_display_get_screen (display, screen_number);
- if (screen == NULL)
+ else
screen = gdk_display_get_default_screen (display);
return screen;