[gnome-initial-setup/various-improvements: 2/6] driver: Inhibit the idle state
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/various-improvements: 2/6] driver: Inhibit the idle state
- Date: Thu, 25 Jul 2019 21:33:36 +0000 (UTC)
commit 2dc403c3f8f31cdff1d0e59f1efdaad6d24057cc
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).
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 a377f55..244a118 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -525,6 +525,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]