[gnome-color-manager] trivial: Only inhibit the screen when actually calibrating, not at the intro screen
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: Only inhibit the screen when actually calibrating, not at the intro screen
- Date: Thu, 2 Jun 2011 09:01:40 +0000 (UTC)
commit c2b19f213eb750756f571023873de1e0128e526f
Author: Richard Hughes <richard hughsie com>
Date: Thu Jun 2 10:01:29 2011 +0100
trivial: Only inhibit the screen when actually calibrating, not at the intro screen
src/gcm-calibrate-main.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gcm-calibrate-main.c b/src/gcm-calibrate-main.c
index 64425b0..2ce4d30 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -446,7 +446,6 @@ gcm_calib_assistant_prepare_cb (GtkAssistant *assistant, GtkWidget *page_widget,
switch (calib->current_page) {
case GCM_CALIBRATE_PAGE_INTRO:
g_debug ("now intro page");
- gcm_calib_device_inihibit (calib);
break;
case GCM_CALIBRATE_PAGE_LAST:
g_debug ("now last page");
@@ -455,8 +454,10 @@ gcm_calib_assistant_prepare_cb (GtkAssistant *assistant, GtkWidget *page_widget,
break;
case GCM_CALIBRATE_PAGE_ACTION:
g_debug ("lights! camera! action!");
- if (!calib->started_calibration)
+ if (!calib->started_calibration) {
+ gcm_calib_device_inihibit (calib);
g_idle_add (gcm_calib_start_idle_cb, calib);
+ }
break;
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]