summaryrefslogtreecommitdiff
path: root/gsearchtool/libeggsmclient/eggdesktopfile.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-18 01:45:09 +0200
committerraveit65 <[email protected]>2017-07-18 17:03:51 +0200
commitce334fa530ff5b2d77c15f06a1a63d0532bbc3e2 (patch)
tree56d0b679ef1fa33a48f3ab65010b1d79cd0eeb95 /gsearchtool/libeggsmclient/eggdesktopfile.c
parent7d1f24f8dddb3519a31fd34699c629621b1c7af3 (diff)
downloadmate-utils-ce334fa530ff5b2d77c15f06a1a63d0532bbc3e2.tar.bz2
mate-utils-ce334fa530ff5b2d77c15f06a1a63d0532bbc3e2.tar.xz
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'gsearchtool/libeggsmclient/eggdesktopfile.c')
-rw-r--r--gsearchtool/libeggsmclient/eggdesktopfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gsearchtool/libeggsmclient/eggdesktopfile.c b/gsearchtool/libeggsmclient/eggdesktopfile.c
index a96e5bd7..4edc992f 100644
--- a/gsearchtool/libeggsmclient/eggdesktopfile.c
+++ b/gsearchtool/libeggsmclient/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;
@@ -1364,7 +1364,7 @@ egg_desktop_file_launch (EggDesktopFile *desktop_file,
EGG_DESKTOP_FILE_ERROR_NOT_LAUNCHABLE,
_("Can't pass document URIs to a 'Type=Link' desktop entry"));
return FALSE;
- }
+ }
if (!parse_link (desktop_file, &app_desktop_file, &documents, error))
return FALSE;
@@ -1450,10 +1450,10 @@ egg_set_desktop_file (const char *desktop_file_path)
/**
* egg_get_desktop_file:
- *
+ *
* Gets the application's #EggDesktopFile, as set by
* egg_set_desktop_file().
- *
+ *
* Return value: the #EggDesktopFile, or %NULL if it hasn't been set.
**/
EggDesktopFile *