summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-28 23:02:58 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-11-28 23:02:58 -0500
commit65808418e104f9b97ba117420884bca147ca9a55 (patch)
tree6459aa75d9dc31d26d6e0734f16816a622855830 /gtk/gtkapplication.c
parent4371f370bca4ccf8379a29c71e0d4da11f66b95d (diff)
downloadgtk+-65808418e104f9b97ba117420884bca147ca9a55.tar.gz
Drop gtk_application_is_inhibited
This function returns global session state that may not be available to applications (e.g. in sandboxed environments), and is not needed by applications, so just drop it, instead of keeping a function around that can't be guaranteed to work.
Diffstat (limited to 'gtk/gtkapplication.c')
-rw-r--r--gtk/gtkapplication.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 39a49638c9..b96980fbb3 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -1150,31 +1150,6 @@ gtk_application_uninhibit (GtkApplication *application,
gtk_application_impl_uninhibit (application->priv->impl, cookie);
}
-/**
- * gtk_application_is_inhibited:
- * @application: the #GtkApplication
- * @flags: what types of actions should be queried
- *
- * Determines if any of the actions specified in @flags are
- * currently inhibited (possibly by another application).
- *
- * Note that this information may not be available (for example
- * when the application is running in a sandbox).
- *
- * Returns: %TRUE if any of the actions specified in @flags are inhibited
- *
- * Since: 3.4
- */
-gboolean
-gtk_application_is_inhibited (GtkApplication *application,
- GtkApplicationInhibitFlags flags)
-{
- g_return_val_if_fail (GTK_IS_APPLICATION (application), FALSE);
- g_return_val_if_fail (!g_application_get_is_remote (G_APPLICATION (application)), FALSE);
-
- return gtk_application_impl_is_inhibited (application->priv->impl, flags);
-}
-
GtkActionMuxer *
gtk_application_get_parent_muxer_for_window (GtkWindow *window)
{