[gnome-color-manager/gnome-3-6] Move gcm-calibrate to lower right of the screen
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/gnome-3-6] Move gcm-calibrate to lower right of the screen
- Date: Sat, 29 Dec 2012 13:46:35 +0000 (UTC)
commit f340c338ba799796231e071023fb862da455e3d8
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 b0a4e18..ab28a58 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]