[gnome-maps] sidebar: Fix sidebar-route-info alignment
- From: Damián Nohales <dnohales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] sidebar: Fix sidebar-route-info alignment
- Date: Thu, 11 Sep 2014 15:50:41 +0000 (UTC)
commit 217ab58cad94ee3404d132ce00f1a7e06cc97bc9
Author: Damián Nohales <damiannohales gmail com>
Date: Fri Sep 5 19:38:25 2014 -0300
sidebar: Fix sidebar-route-info alignment
time-info was pushing distance-info with margin, that can break the
alignment when time-info's length change.
The reason to use the sidebar-route-info-wrapper GtkGrid was to avoid
a visual glitch in the map view caused when we attempt to expand
horizontally a direct child of a sidebar's container.
https://bugzilla.gnome.org/show_bug.cgi?id=736166
src/sidebar.ui | 36 +++++++++++++++++++++++-------------
1 files changed, 23 insertions(+), 13 deletions(-)
---
diff --git a/src/sidebar.ui b/src/sidebar.ui
index dc2533a..0a220cb 100644
--- a/src/sidebar.ui
+++ b/src/sidebar.ui
@@ -174,23 +174,33 @@
</object>
</child>
<child>
- <object class="GtkGrid" id="sidebar-route-info">
- <property name="name">sidebar-route-info</property>
+ <object class="GtkGrid" id="sidebar-route-info-wrapper">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_start">17</property>
- <property name="margin_top">12</property>
- <child>
- <object class="GtkLabel" id="time-info">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </object>
- </child>
+ <property name="hexpand">False</property>
<child>
- <object class="GtkLabel" id="distance-info">
+ <object class="GtkGrid" id="sidebar-route-info">
+ <property name="name">sidebar-route-info</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_start">100</property>
+ <property name="margin_start">17</property>
+ <property name="margin_end">17</property>
+ <property name="margin_top">12</property>
+ <property name="hexpand">true</property>
+ <child>
+ <object class="GtkLabel" id="time-info">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="hexpand">true</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="distance-info">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_start">10</property>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]