[Libreoffice-commits] core.git: sd/uiconfig

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jul 2 16:00:30 UTC 2021


 sd/uiconfig/sdraw/ui/dlgsnap.ui |   76 ++++++++++++++++++++++------------------
 1 file changed, 43 insertions(+), 33 deletions(-)

New commits:
commit 6052731835e9ec6a4c38d3727b5c9008d9a215f4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jul 2 14:46:27 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jul 2 17:59:55 2021 +0200

    move preview images outside RadioButtons
    
    Change-Id: Ib754db3dddb6b69e8b61b085bbdd3c182c24a703
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118321
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sd/uiconfig/sdraw/ui/dlgsnap.ui b/sd/uiconfig/sdraw/ui/dlgsnap.ui
index 6eba41aa69e1..9753706a0481 100644
--- a/sd/uiconfig/sdraw/ui/dlgsnap.ui
+++ b/sd/uiconfig/sdraw/ui/dlgsnap.ui
@@ -2,21 +2,6 @@
 <!-- Generated with glade 3.38.2 -->
 <interface domain="sd">
   <requires lib="gtk+" version="3.20"/>
-  <object class="GtkImage" id="image1">
-    <property name="visible">True</property>
-    <property name="can-focus">False</property>
-    <property name="icon-name">sd/res/hlppoint.png</property>
-  </object>
-  <object class="GtkImage" id="image2">
-    <property name="visible">True</property>
-    <property name="can-focus">False</property>
-    <property name="icon-name">sd/res/hlplvert.png</property>
-  </object>
-  <object class="GtkImage" id="image3">
-    <property name="visible">True</property>
-    <property name="can-focus">False</property>
-    <property name="icon-name">sd/res/hlplhorz.png</property>
-  </object>
   <object class="GtkDialog" id="SnapObjectDialog">
     <property name="can-focus">False</property>
     <property name="border-width">6</property>
@@ -215,22 +200,54 @@
                 <property name="label-xalign">0</property>
                 <property name="shadow-type">none</property>
                 <child>
-                  <object class="GtkBox" id="box2">
+                  <!-- n-columns=2 n-rows=3 -->
+                  <object class="GtkGrid">
                     <property name="visible">True</property>
                     <property name="can-focus">False</property>
                     <property name="margin-start">12</property>
                     <property name="margin-top">6</property>
-                    <property name="orientation">vertical</property>
-                    <property name="spacing">12</property>
+                    <property name="row-spacing">6</property>
+                    <property name="column-spacing">12</property>
+                    <child>
+                      <object class="GtkImage" id="image1">
+                        <property name="visible">True</property>
+                        <property name="can-focus">False</property>
+                        <property name="icon-name">sd/res/hlppoint.png</property>
+                      </object>
+                      <packing>
+                        <property name="left-attach">0</property>
+                        <property name="top-attach">0</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkImage" id="image2">
+                        <property name="visible">True</property>
+                        <property name="can-focus">False</property>
+                        <property name="icon-name">sd/res/hlplvert.png</property>
+                      </object>
+                      <packing>
+                        <property name="left-attach">0</property>
+                        <property name="top-attach">1</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkImage" id="image3">
+                        <property name="visible">True</property>
+                        <property name="can-focus">False</property>
+                        <property name="icon-name">sd/res/hlplhorz.png</property>
+                      </object>
+                      <packing>
+                        <property name="left-attach">0</property>
+                        <property name="top-attach">2</property>
+                      </packing>
+                    </child>
                     <child>
                       <object class="GtkRadioButton" id="point">
                         <property name="label" translatable="yes" context="dlgsnap|point">_Point</property>
                         <property name="visible">True</property>
                         <property name="can-focus">True</property>
                         <property name="receives-default">False</property>
-                        <property name="image">image1</property>
                         <property name="use-underline">True</property>
-                        <property name="always-show-image">True</property>
                         <property name="active">True</property>
                         <property name="draw-indicator">True</property>
                         <child internal-child="accessible">
@@ -240,9 +257,8 @@
                         </child>
                       </object>
                       <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">0</property>
+                        <property name="left-attach">1</property>
+                        <property name="top-attach">0</property>
                       </packing>
                     </child>
                     <child>
@@ -251,9 +267,7 @@
                         <property name="visible">True</property>
                         <property name="can-focus">True</property>
                         <property name="receives-default">False</property>
-                        <property name="image">image2</property>
                         <property name="use-underline">True</property>
-                        <property name="always-show-image">True</property>
                         <property name="draw-indicator">True</property>
                         <property name="group">point</property>
                         <child internal-child="accessible">
@@ -263,9 +277,8 @@
                         </child>
                       </object>
                       <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">1</property>
+                        <property name="left-attach">1</property>
+                        <property name="top-attach">1</property>
                       </packing>
                     </child>
                     <child>
@@ -274,9 +287,7 @@
                         <property name="visible">True</property>
                         <property name="can-focus">True</property>
                         <property name="receives-default">False</property>
-                        <property name="image">image3</property>
                         <property name="use-underline">True</property>
-                        <property name="always-show-image">True</property>
                         <property name="draw-indicator">True</property>
                         <property name="group">point</property>
                         <child internal-child="accessible">
@@ -286,9 +297,8 @@
                         </child>
                       </object>
                       <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">2</property>
+                        <property name="left-attach">1</property>
+                        <property name="top-attach">2</property>
                       </packing>
                     </child>
                   </object>


More information about the Libreoffice-commits mailing list