[polari] Fix titlebar spacing in RTL locales
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] Fix titlebar spacing in RTL locales
- Date: Mon, 28 Oct 2013 21:46:51 +0000 (UTC)
commit 6ee0eecb70c83312db4392504e46734593c89bd5
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Oct 6 01:49:12 2013 +0200
Fix titlebar spacing in RTL locales
margin-left/margin-right are not mirrored automatically, so use
another trick to get some spacing on title/subtitle which works
for both RTL and LTR locales.
data/resources/main-window.ui | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index ef3e5a5..4068172 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -179,20 +179,28 @@
<!-- we want some margin around title/subtitle - setting
it on the first and last button has the same effect,
and spares us from using a custom title widget -->
- <property name="margin-right">24</property>
+ <property name="width-request">24</property>
</object>
</child>
<child>
+ <object class="GtkLabel" id="label2">
+ <property name="visible">True</property>
+ <!-- we want some margin around title/subtitle - setting
+ it on the first and last button has the same effect,
+ and spares us from using a custom title widget -->
+ <property name="width-request">24</property>
+ </object>
+ <packing>
+ <property name="pack_type">end</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkToggleButton" id="show_user_list_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="focus_on_click">False</property>
<property name="halign">end</property>
<property name="valign">center</property>
- <!-- we want some margin around title/subtitle - setting
- it on the first and last button has the same effect,
- and spares us from using a custom title widget -->
- <property name="margin-left">24</property>
<property name="action_name">app.user-list</property>
<style>
<class name="image-button"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]