[gnome-color-manager] Move gcm-calibrate to lower right of the screen



commit 8c25b391f1ce1cdfbfdf2084141f24d8486c7516
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Tue Dec 25 23:53:10 2012 +0100

    Move gcm-calibrate to lower right of the screen
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 src/gcm-calibrate-main.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-main.c b/src/gcm-calibrate-main.c
index b4a7915..c52c2f5 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -2132,6 +2132,14 @@ gcm_calib_startup_cb (GApplication *application, GcmCalibratePriv *calib)
 	/* get the device properties */
 	calib->device_kind = cd_device_get_kind (calib->device);
 
+	/* for display calibration move the window to lower right area to
+         * limit argyll from obscuring the window (too much) */
+	if (calib->device_kind == CD_DEVICE_KIND_DISPLAY) {
+		gtk_window_set_gravity (calib->main_window, GDK_GRAVITY_SOUTH_EAST);
+		gtk_window_move (calib->main_window, gdk_screen_width()  - window_width,
+						     gdk_screen_height() - window_height);
+	}
+
 	/* set, with fallbacks */
 	serial = cd_device_get_serial (calib->device);
 	if (serial == NULL) {



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