diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-28 23:02:58 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-28 23:02:58 -0500 |
commit | 65808418e104f9b97ba117420884bca147ca9a55 (patch) | |
tree | 6459aa75d9dc31d26d6e0734f16816a622855830 /gtk/gtkapplication-quartz.c | |
parent | 4371f370bca4ccf8379a29c71e0d4da11f66b95d (diff) | |
download | gtk+-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-quartz.c')
-rw-r--r-- | gtk/gtkapplication-quartz.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gtk/gtkapplication-quartz.c b/gtk/gtkapplication-quartz.c index 9794d7b862..55f51e6a89 100644 --- a/gtk/gtkapplication-quartz.c +++ b/gtk/gtkapplication-quartz.c @@ -292,18 +292,6 @@ gtk_application_impl_quartz_uninhibit (GtkApplicationImpl *impl, g_warning ("Invalid inhibitor cookie"); } -static gboolean -gtk_application_impl_quartz_is_inhibited (GtkApplicationImpl *impl, - GtkApplicationInhibitFlags flags) -{ - GtkApplicationImplQuartz *quartz = (GtkApplicationImplQuartz *) impl; - - if (flags & GTK_APPLICATION_INHIBIT_LOGOUT) - return quartz->quit_inhibit > 0; - - return FALSE; -} - static void gtk_application_impl_quartz_init (GtkApplicationImplQuartz *quartz) { @@ -332,7 +320,6 @@ gtk_application_impl_quartz_class_init (GtkApplicationImplClass *class) class->set_menubar = gtk_application_impl_quartz_set_menubar; class->inhibit = gtk_application_impl_quartz_inhibit; class->uninhibit = gtk_application_impl_quartz_uninhibit; - class->is_inhibited = gtk_application_impl_quartz_is_inhibited; gobject_class->finalize = gtk_application_impl_quartz_finalize; } |