[gnome-color-manager] Force the CIE 1931 diagram to be square



commit 74e285f9df515224650460303b76a850757ab94a
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 10 11:52:04 2011 +0100

    Force the CIE 1931 diagram to be square
    
    Put the axis' in a GtkAspectFrame and center the diagram.

 data/gcm-viewer.ui |   71 +++++++++++++++++++++++++++++----------------------
 1 files changed, 40 insertions(+), 31 deletions(-)
---
diff --git a/data/gcm-viewer.ui b/data/gcm-viewer.ui
index efa45c3..42ee3be 100644
--- a/data/gcm-viewer.ui
+++ b/data/gcm-viewer.ui
@@ -830,56 +830,65 @@
                     <property name="border_width">9</property>
                     <property name="spacing">6</property>
                     <child>
-                      <object class="GtkHBox" id="hbox4">
+                      <object class="GtkAspectFrame" id="aspectframe1">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="spacing">6</property>
-                        <child>
-                          <object class="GtkLabel" id="label2">
-                            <property name="visible">True</property>
-                            <property name="can_focus">False</property>
-                            <property name="label" translatable="yes">y</property>
-                          </object>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="fill">False</property>
-                            <property name="position">0</property>
-                          </packing>
-                        </child>
+                        <property name="label_xalign">0</property>
+                        <property name="shadow_type">none</property>
+                        <property name="obey_child">False</property>
                         <child>
-                          <object class="GtkVBox" id="vbox_cie_widget">
+                          <object class="GtkHBox" id="hbox4">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
+                            <property name="spacing">6</property>
                             <child>
-                              <object class="GtkImage" id="image1">
+                              <object class="GtkLabel" id="label2">
+                                <property name="visible">True</property>
                                 <property name="can_focus">False</property>
-                                <property name="stock">gtk-apply</property>
-                                <property name="icon-size">6</property>
+                                <property name="label" translatable="yes">y</property>
                               </object>
                               <packing>
-                                <property name="expand">True</property>
-                                <property name="fill">True</property>
-                                <property name="position">0</property>
+                                <property name="expand">False</property>
+                                <property name="fill">False</property>
+                                <property name="position">1</property>
                               </packing>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="label5">
+                              <object class="GtkVBox" id="vbox_cie_widget">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
-                                <property name="label" translatable="yes">x</property>
+                                <child>
+                                  <object class="GtkImage" id="image1">
+                                    <property name="can_focus">False</property>
+                                    <property name="stock">gtk-apply</property>
+                                    <property name="icon-size">6</property>
+                                  </object>
+                                  <packing>
+                                    <property name="expand">True</property>
+                                    <property name="fill">True</property>
+                                    <property name="position">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="label5">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">False</property>
+                                    <property name="label" translatable="yes">x</property>
+                                  </object>
+                                  <packing>
+                                    <property name="expand">False</property>
+                                    <property name="fill">False</property>
+                                    <property name="position">1</property>
+                                  </packing>
+                                </child>
                               </object>
                               <packing>
-                                <property name="expand">False</property>
-                                <property name="fill">False</property>
-                                <property name="position">1</property>
+                                <property name="expand">True</property>
+                                <property name="fill">True</property>
+                                <property name="position">2</property>
                               </packing>
                             </child>
                           </object>
-                          <packing>
-                            <property name="expand">True</property>
-                            <property name="fill">True</property>
-                            <property name="position">1</property>
-                          </packing>
                         </child>
                       </object>
                       <packing>



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