[gnome-control-center] datetime: Fix the width of hour and minute spinbuttons
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Fix the width of hour and minute spinbuttons
- Date: Sat, 15 Mar 2014 21:14:29 +0000 (UTC)
commit c3ab9b28b591876c88d0ba1f731d1043c4e86c57
Author: Kalev Lember <kalevlember gmail com>
Date: Sat Mar 15 21:55:09 2014 +0100
datetime: Fix the width of hour and minute spinbuttons
Since gtk+ commit cf4a41a856b56bcab6edaaf0e0a4f17ed5853525, the hour and
minute spin buttons in the datetime dialog grew too wide. gtk+ now
computes separate natural and minumum width; unfortunately the natural
width is too wide for us.
Force the spin buttons to have max width of 2 characters to fix this.
panels/datetime/datetime.ui | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/datetime/datetime.ui b/panels/datetime/datetime.ui
index c8d7971..c7cdcf2 100644
--- a/panels/datetime/datetime.ui
+++ b/panels/datetime/datetime.ui
@@ -123,8 +123,8 @@
<object class="GtkSpinButton" id="h_spinbutton">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="max_length">2</property>
<property name="invisible_char">●</property>
- <property name="width_chars">2</property>
<property name="xalign">0.5</property>
<property name="input_purpose">digits</property>
<property name="orientation">vertical</property>
@@ -160,8 +160,8 @@
<object class="GtkSpinButton" id="m_spinbutton">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="max_length">2</property>
<property name="invisible_char">●</property>
- <property name="width_chars">2</property>
<property name="xalign">0.5</property>
<property name="input_purpose">digits</property>
<property name="orientation">vertical</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]