summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-19 01:17:19 +0200
committerZenWalker <[email protected]>2017-07-19 01:17:19 +0200
commit3fa7dc556be3395ae5b3273568426beb4416bd40 (patch)
treef3375b4b143737498242246822b8f0f3876745bc
parentbd43a333d431b0c2851bdd8ebc5284d5525fd140 (diff)
downloadatril-3fa7dc556be3395ae5b3273568426beb4416bd40.tar.bz2
atril-3fa7dc556be3395ae5b3273568426beb4416bd40.tar.xz
avoid deprecated gdk_screen_get_number
-rw-r--r--cut-n-paste/smclient/eggdesktopfile.c2
-rw-r--r--shell/ev-application.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cut-n-paste/smclient/eggdesktopfile.c b/cut-n-paste/smclient/eggdesktopfile.c
index d50a1bcf..3c48d86a 100644
--- a/cut-n-paste/smclient/eggdesktopfile.c
+++ b/cut-n-paste/smclient/eggdesktopfile.c
@@ -1185,7 +1185,7 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
display = gdk_display_get_default ();
screen = gdk_display_get_default_screen (display);
}
- screen_num = gdk_screen_get_number (screen);
+ screen_num = gdk_x11_screen_get_screen_number (screen);
translated_documents = translate_document_list (desktop_file, documents);
docs = translated_documents;
diff --git a/shell/ev-application.c b/shell/ev-application.c
index b27ee512..a7e3a708 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -442,7 +442,7 @@ on_register_uri_cb (GObject *source_object,
g_variant_new_string (gdk_display_get_name (gdk_screen_get_display (data->screen))));
g_variant_builder_add (&builder, "{sv}",
"screen",
- g_variant_new_int32 (gdk_screen_get_number (data->screen)));
+ g_variant_new_int32 (gdk_x11_screen_get_screen_number (data->screen)));
if (data->dest) {
switch (ev_link_dest_get_dest_type (data->dest)) {
case EV_LINK_DEST_TYPE_PAGE_LABEL: