summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-19 20:45:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-20 10:04:04 +0200
commit569a389f977faa347ae472167769cdc1718a0118 (patch)
tree170d8308f8f3af75e5fd8ccb06e3c787dbd6fde3 /starmath
parent43b399cfa30949ec884d3bddb32f89a524e8f227 (diff)
gtk4: make starmath edit and math widgets visible
[GtkBox's expand child property] can be replaced by setting GtkWidget:hexpand or GtkWidget:vexpand on the child widgets. To match the old behavior of the GtkBox‘s expand child property, you need to set hexpand on the child widgets of a horizontal GtkBox and vexpand on the child widgets of a vertical GtkBox. Change-Id: I72ebb77cbd92001842abee77a23dcdf6aa1b7a2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123842 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/uiconfig/smath/ui/editwindow.ui3
-rw-r--r--starmath/uiconfig/smath/ui/mathwindow.ui3
2 files changed, 4 insertions, 2 deletions
diff --git a/starmath/uiconfig/smath/ui/editwindow.ui b/starmath/uiconfig/smath/ui/editwindow.ui
index fc1300887fcf..be25ca2740be 100644
--- a/starmath/uiconfig/smath/ui/editwindow.ui
+++ b/starmath/uiconfig/smath/ui/editwindow.ui
@@ -12,6 +12,7 @@
<object class="GtkScrolledWindow" id="scrolledwindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
+ <property name="hexpand">True</property>
<property name="border-width">0</property>
<property name="hscrollbar-policy">never</property>
<property name="vscrollbar-policy">always</property>
@@ -31,7 +32,7 @@
</child>
</object>
<packing>
- <property name="expand">True</property>
+ <property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
diff --git a/starmath/uiconfig/smath/ui/mathwindow.ui b/starmath/uiconfig/smath/ui/mathwindow.ui
index 3737c0d63791..527e436fd6e1 100644
--- a/starmath/uiconfig/smath/ui/mathwindow.ui
+++ b/starmath/uiconfig/smath/ui/mathwindow.ui
@@ -12,6 +12,7 @@
<object class="GtkScrolledWindow" id="scrolledwindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
+ <property name="hexpand">True</property>
<property name="border-width">0</property>
<property name="shadow-type">etched-out</property>
<child>
@@ -29,7 +30,7 @@
</child>
</object>
<packing>
- <property name="expand">True</property>
+ <property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>