summaryrefslogtreecommitdiff
path: root/gtk/gtkprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-07-04 20:29:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-07-08 00:06:14 -0400
commit96d8afbccb08709db70995be6f273309a6e484e5 (patch)
tree040de8fc3bc66f87a34e363d2788de995e50527a /gtk/gtkprivate.h
parentb840a59766af16e1be365aa23cd69ff12351d400 (diff)
downloadgtk+-96d8afbccb08709db70995be6f273309a6e484e5.tar.gz
Add a portal helper
Instead of open-coding checks for sandboxing in multiple places, add a helper function that caches the information. https://bugzilla.gnome.org/show_bug.cgi?id=768499
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r--gtk/gtkprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index 7602394675..af130cd3f0 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -95,6 +95,8 @@ gboolean _gtk_propagate_captured_event (GtkWidget *widget,
gdouble _gtk_get_slowdown ();
void _gtk_set_slowdown (gdouble slowdown_factor);
+gboolean gtk_should_use_portal (void);
+
#ifdef G_OS_WIN32
void _gtk_load_dll_with_libgtk3_manifest (const char *dllname);
#endif