avoid deprecated gdk_display_get_screen

master-1.22
ZenWalker 2017-07-21 00:29:07 +02:00
parent e78b50d982
commit 3f374d5787
1 changed files with 1 additions and 3 deletions

View File

@ -270,9 +270,7 @@ terminal_app_get_screen_by_display_name (const char *display_name,
if (display == NULL) if (display == NULL)
return NULL; return NULL;
if (screen_number >= 0) else
screen = gdk_display_get_screen (display, screen_number);
if (screen == NULL)
screen = gdk_display_get_default_screen (display); screen = gdk_display_get_default_screen (display);
return screen; return screen;