summaryrefslogtreecommitdiff
path: root/gtk/gtkprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-08-15 22:53:05 +0000
committerMatthias Clasen <mclasen@redhat.com>2018-08-15 15:54:34 -0700
commita01feae15b0c8079478418406936307746d24b48 (patch)
tree9edaf41dddb9d244e6b62f95238c90e0091b5721 /gtk/gtkprivate.h
parentb4d4f73d9f6ff98f3cc8f564f95e8a2e1e463577 (diff)
downloadgtk+-a01feae15b0c8079478418406936307746d24b48.tar.gz
Use defines for bus names
This helps eradicate typos (we had some here). Closes https://gitlab.gnome.org/GNOME/gtk/issues/1267
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r--gtk/gtkprivate.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index 3ecb4c36b7..2675889953 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -111,6 +111,14 @@ void _gtk_set_slowdown (gdouble slowdown_factor);
gboolean gtk_should_use_portal (void);
+#define PORTAL_BUS_NAME "org.freedesktop.portal.Desktop"
+#define PORTAL_OBJECT_PATH "/org/freedesktop/portal/desktop"
+#define PORTAL_REQUEST_INTERFACE "org.freedesktop.portal.Request"
+#define PORTAL_FILECHOOSER_INTERFACE "org.freedesktop.portal.FileChooser"
+#define PORTAL_PRINT_INTERFACE "org.freedesktop.portal.Print"
+#define PORTAL_SCREENSHOT_INTERFACE "org.freedesktop.portal.Screenshot"
+#define PORTAL_INHIBIT_INTERFACE "org.freedesktop.portal.Inhibit"
+
#ifdef G_OS_WIN32
void _gtk_load_dll_with_libgtk3_manifest (const char *dllname);
#endif