[glib] appinfo: Don't hardcode strings for the OpenURI portal's D-Bus method
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] appinfo: Don't hardcode strings for the OpenURI portal's D-Bus method
- Date: Thu, 23 Mar 2017 14:47:25 +0000 (UTC)
commit 92cb02392c531e70a1d190f3ebad33101c02fea4
Author: Mario Sanchez Prada <mario endlessm com>
Date: Thu Mar 23 14:46:02 2017 +0000
appinfo: Don't hardcode strings for the OpenURI portal's D-Bus method
We added several #define in the previous commit, so use those instead.
gio/gappinfo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/gappinfo.c b/gio/gappinfo.c
index 0cccc14..1dde48d 100644
--- a/gio/gappinfo.c
+++ b/gio/gappinfo.c
@@ -829,10 +829,10 @@ launch_default_with_portal_async (const char *uri,
}
g_dbus_connection_call (session_bus,
- "org.freedesktop.portal.Desktop",
- "/org/freedesktop/portal/desktop",
- "org.freedesktop.portal.OpenURI",
- "OpenURI",
+ FLATPAK_OPENURI_PORTAL_BUS_NAME,
+ FLATPAK_OPENURI_PORTAL_PATH,
+ FLATPAK_OPENURI_PORTAL_IFACE,
+ FLATPAK_OPENURI_PORTAL_METHOD,
g_variant_new ("(ss@a{sv})",
parent_window ? parent_window : "",
real_uri,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]