[gnome-initial-setup/various-improvements: 35/35] driver: Inhibit the idle state
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/various-improvements: 35/35] driver: Inhibit the idle state
- Date: Mon, 5 Aug 2019 21:50:41 +0000 (UTC)
commit e9fd025f194ab94a2c77f62e69f65fb9f0460ba2
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 c445314..6cfdedb 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -632,6 +632,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]