[gnome-calendar/wip/flb/weather-forecast] month-cell: Fix layout
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/flb/weather-forecast] month-cell: Fix layout
- Date: Sat, 4 Nov 2017 01:29:44 +0000 (UTC)
commit 93f2c856ee021e07b09d91121c0182f37cf0f6ed
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Nov 3 23:26:50 2017 -0200
month-cell: Fix layout
Use the 'center' child property to force the overflow
label to be at the center, and use the packing properties
of GtkBox to correctly position.
data/ui/month-cell.ui | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
---
diff --git a/data/ui/month-cell.ui b/data/ui/month-cell.ui
index 7152089..393ed36 100644
--- a/data/ui/month-cell.ui
+++ b/data/ui/month-cell.ui
@@ -39,47 +39,40 @@
<property name="spacing">6</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
+
+ <!-- Weather icon -->
<child>
<object class="GtkImage" id="weather_icon">
<property name="can-focus">False</property>
<property name="visible">True</property>
<property name="pixel_size">16</property>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
</child>
- <child>
+
+ <!-- "Other X Events" label -->
+ <child type="center">
<object class="GtkLabel" id="overflow_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="ellipsize">end</property>
<property name="hexpand">true</property>
</object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
</child>
+
+ <!-- Day label -->
<child>
<object class="GtkLabel" id="day_label">
<property name="visible">True</property>
<property name="can-focus">True</property>
- <property name="hexpand">True</property>
- <property name="xalign">1.0</property>
<style>
<class name="day-label" />
</style>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
+ <property name="pack-type">end</property>
</packing>
</child>
+
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]