[gnome-initial-setup/wip/pwithnall/misc-fixes: 36/70] driver: Inhibit the idle state




commit cc0470c11af18baf1a4c91d98c0c678edb1eb1ee
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Jul 11 17:56:55 2017 +0200

    driver: Inhibit the idle state
    
    gnome-initial-setup is a top priority application and one that should be
    left idle, so it makes sense to keep the user focused on it and not
    let the system be idle either (it's not a great UX if the user sees the
    lock screen's shield on first boot).
    
    This should be replaced in a future rebase with a more upstreamable
    solution for the upstream ticket:
    https://gitlab.gnome.org/GNOME/gnome-initial-setup/issues/11

 gnome-initial-setup/gis-driver.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index 56b2de80..f0afe549 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -1045,6 +1045,10 @@ gis_driver_startup (GApplication *app)
                                     "deletable", FALSE,
                                     NULL);
 
+  gtk_application_inhibit (GTK_APPLICATION (app), priv->main_window,
+                           GTK_APPLICATION_INHIBIT_IDLE,
+                           "Should not be idle on first boot.");
+
   g_signal_connect (priv->main_window,
                     "realize",
                     G_CALLBACK (window_realize_cb),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]