diff options
author | ZenWalker <[email protected]> | 2017-07-21 00:29:07 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2017-07-21 00:29:07 +0200 |
commit | 3f374d57879f6217acebe4e37b0c61bc9991eb7a (patch) | |
tree | e92a99bf00a3cb790e01a2e9621c5ad7be355975 | |
parent | e78b50d982f48ff742d5738648c2637fc652e7cc (diff) | |
download | mate-terminal-3f374d57879f6217acebe4e37b0c61bc9991eb7a.tar.bz2 mate-terminal-3f374d57879f6217acebe4e37b0c61bc9991eb7a.tar.xz |
avoid deprecated gdk_display_get_screen
-rw-r--r-- | src/terminal-app.c | 4 |
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; |