summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-21 21:18:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-22 20:37:59 +0100
commit13aed54fda6d84e1a0f6c080a7b2d83f793725c5 (patch)
tree5ec1add7a2bbf79a3cbb3fb7ccf1cb53e1e01c57 /cui
parentf13913d510672cd4f28726ef18c4f3d014b6f06c (diff)
tdf#131465 image is stretched to fit allocation
center it inside a parent box instead Change-Id: I8ad407119924e0a6d9992e99d2d9e6e88453477b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90863 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/uiconfig/ui/gallerygeneralpage.ui33
1 files changed, 24 insertions, 9 deletions
diff --git a/cui/uiconfig/ui/gallerygeneralpage.ui b/cui/uiconfig/ui/gallerygeneralpage.ui
index 6749c4d3fd8c..d057760635ad 100644
--- a/cui/uiconfig/ui/gallerygeneralpage.ui
+++ b/cui/uiconfig/ui/gallerygeneralpage.ui
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.22.1 -->
+<!-- Generated with glade 3.22.2 -->
<interface domain="cui">
<requires lib="gtk+" version="3.18"/>
<object class="GtkGrid" id="GalleryGeneralPage">
@@ -131,16 +131,30 @@
<property name="hexpand">True</property>
<property name="column_spacing">12</property>
<child>
- <object class="GtkImage" id="image">
+ <object class="GtkBox" id="imagecontainer">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <accessibility>
- <relation type="label-for" target="name"/>
- </accessibility>
- <child internal-child="accessible">
- <object class="AtkObject" id="image-atkobject">
- <property name="AtkObject::accessible-name" translatable="yes" context="gallerygeneralpage|image-atkobject">Theme Name</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkImage" id="image">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <accessibility>
+ <relation type="label-for" target="name"/>
+ </accessibility>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="image-atkobject">
+ <property name="AtkObject::accessible-name" translatable="yes" context="gallerygeneralpage|image-atkobject">Theme Name</property>
+ </object>
+ </child>
</object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
</child>
</object>
<packing>
@@ -152,6 +166,7 @@
<object class="GtkEntry" id="name">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="valign">center</property>
<property name="hexpand">True</property>
<property name="activates_default">True</property>
<accessibility>
@@ -176,7 +191,7 @@
<widget name="label2"/>
<widget name="label3"/>
<widget name="label4"/>
- <widget name="image"/>
+ <widget name="imagecontainer"/>
</widgets>
</object>
</interface>