GNOME Bugzilla – Bug 735093
Use gtk_application_inhibit()
Last modified: 2014-09-01 14:23:55 UTC
Now that we require Gtk 3.4 it makes sense use the inhibit functionality provided by GtkApplication rather than doing the DBus calls ourselves.
Created attachment 283959 [details] [review] Use gtk_application_inhibit()
Review of attachment 283959 [details] [review]: ::: src/sj-extracting.c @@ +826,3 @@ + cookie = gtk_application_inhibit (GTK_APPLICATION (g_application_get_default ()), + GTK_WINDOW (main_window), + GTK_APPLICATION_INHIBIT_SUSPEND | GTK_APPLICATION_INHIBIT_IDLE, Suspend and switch user look like more valid flags, but the switch should be done in a separate commit.
Thank for the review Attachment 283959 [details] pushed as 325abe3 - Use gtk_application_inhibit() >Suspend and switch user look like more valid flags, but the switch >should be done in a separate commit. Yes that makes more sense, pushed as 827e9b2 - Change GtkApplicationInhibit flags