avoid deprecated gdk_display_get_screen
parent
e78b50d982
commit
3f374d5787
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue