[evince/wip/gpoo/gtk4-rebase-port: 18/65] main: remove GdkScreen since it is removed in GTK4




commit 57130623878f290be70d09a5d0128436da1c5e83
Author: Qiu Wenbo <qiuwenbo kylinos com cn>
Date:   Fri Aug 13 10:50:32 2021 +0800

    main: remove GdkScreen since it is removed in GTK4
    
    Signed-off-by: Qiu Wenbo <qiuwenbo kylinos com cn>

 shell/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/shell/main.c b/shell/main.c
index 51cbbdf3a..f0ec09c3d 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -165,14 +165,14 @@ get_label_from_filename (const gchar *filename)
 static void
 load_files (const char **files)
 {
-       GdkScreen       *screen = gdk_screen_get_default ();
+       GdkDisplay *display = gdk_display_get_default();
        EvWindowRunMode  mode = EV_WINDOW_MODE_NORMAL;
        gint             i;
        EvLinkDest      *global_dest = NULL;
 
        if (!files || new_window) {
                if (!ev_application_has_window (EV_APP) || new_window)
-                       ev_application_open_recent_view (EV_APP, screen, GDK_CURRENT_TIME);
+                       ev_application_open_recent_view (EV_APP, display, GDK_CURRENT_TIME);
                return;
        }
 
@@ -218,7 +218,7 @@ load_files (const char **files)
 
 
 
-               ev_application_open_uri_at_dest (EV_APP, uri, screen, dest,
+               ev_application_open_uri_at_dest (EV_APP, uri, display, dest,
                                                 mode, ev_find_string,
                                                 GDK_CURRENT_TIME);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]