[gnome-color-manager] Move the calibrate dialog out of the way, otherwise the grey square covers it
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Move the calibrate dialog out of the way, otherwise the grey square covers it
- Date: Thu, 5 Nov 2009 11:58:56 +0000 (UTC)
commit c18d8c0a4ecde6f81eff4121a4be54fbc1d03062
Author: Richard Hughes <richard hughsie com>
Date: Thu Nov 5 11:58:04 2009 +0000
Move the calibrate dialog out of the way, otherwise the grey square covers it
data/gcm-calibrate.ui | 6 +++---
src/gcm-calibrate.c | 8 ++++++++
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/data/gcm-calibrate.ui b/data/gcm-calibrate.ui
index 0233ec1..3f316f0 100644
--- a/data/gcm-calibrate.ui
+++ b/data/gcm-calibrate.ui
@@ -4,11 +4,11 @@
<!-- interface-naming-policy project-wide -->
<object class="GtkDialog" id="dialog_calibrate">
<property name="border_width">5</property>
- <property name="title" translatable="yes">Calibration</property>
+ <property name="title"> </property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="window_position">center-on-parent</property>
- <property name="type_hint">normal</property>
+ <property name="type_hint">dialog</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
@@ -55,7 +55,7 @@
<property name="label" translatable="yes">Title</property>
<attributes>
<attribute name="weight" value="bold"/>
- <attribute name="scale" value="1.2"/>
+ <attribute name="scale" value="1.200000"/>
</attributes>
</object>
<packing>
diff --git a/src/gcm-calibrate.c b/src/gcm-calibrate.c
index 5366e7e..3b804a1 100644
--- a/src/gcm-calibrate.c
+++ b/src/gcm-calibrate.c
@@ -306,6 +306,7 @@ gcm_calibrate_task_neutralise (GcmCalibrate *calibrate, GError **error)
const guint8 *data;
guint i;
GPtrArray *array = NULL;
+ gint x, y;
/* match up the output name with the device number defined by dispcal */
priv->display = gcm_calibrate_get_display (priv->output_name, error);
@@ -360,6 +361,7 @@ gcm_calibrate_task_neutralise (GcmCalibrate *calibrate, GError **error)
g_ptr_array_add (array, g_strdup ("-m"));
g_ptr_array_add (array, g_strdup_printf ("-d%i", priv->display));
g_ptr_array_add (array, g_strdup_printf ("-y%c", type));
+// g_ptr_array_add (array, g_strdup ("-p 0.8,0.5,1.0"));
g_ptr_array_add (array, g_strdup (priv->basename));
argv = gcm_utils_ptr_array_to_strv (array);
gcm_calibrate_debug_argv ("dispcal", argv);
@@ -368,6 +370,12 @@ gcm_calibrate_task_neutralise (GcmCalibrate *calibrate, GError **error)
vte_terminal_reset (VTE_TERMINAL(priv->terminal), TRUE, FALSE);
priv->child_pid = vte_terminal_fork_command (VTE_TERMINAL(priv->terminal), "dispcal", argv, NULL, GCM_CALIBRATE_TEMP_DIR, FALSE, FALSE, FALSE);
+ /* move the dialog out of the way, so the grey square doesn't cover it */
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_calibrate"));
+ gtk_window_get_position (GTK_WINDOW(widget), &x, &y);
+ egg_debug ("currently at %i,%i, moving left", x, y);
+ gtk_window_move (GTK_WINDOW(widget), 10, y);
+
/* TRANSLATORS: title, device is a hardware color calibration sensor */
gcm_calibrate_set_title (calibrate, _("Please attach device"));
/* TRANSLATORS: dialog message, ask user to attach device */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]