[gnome-contacts] Window: fixed ui file. Improved loading box style
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Window: fixed ui file. Improved loading box style
- Date: Thu, 29 May 2014 20:27:05 +0000 (UTC)
commit dd36c97f6fce19db7a660c781162aa9263ac90a3
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Wed May 28 23:33:55 2014 -0400
Window: fixed ui file. Improved loading box style
src/contacts-window.ui | 27 ++++++++++++++++++---------
src/contacts-window.vala | 2 +-
2 files changed, 19 insertions(+), 10 deletions(-)
---
diff --git a/src/contacts-window.ui b/src/contacts-window.ui
index e381b81..5ab843e 100644
--- a/src/contacts-window.ui
+++ b/src/contacts-window.ui
@@ -46,41 +46,50 @@
</packing>
</child>
<child>
- <object class="GtkBox" id="loading_box">
+ <object class="GtkGrid" id="loading_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="valign">center</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="width_request">300</property>
+ <property name="row_homogeneous">True</property>
<child>
<object class="GtkSpinner">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="active">True</property>
+ <property name="valign">end</property>
+ <property name="halign">center</property>
<style>
<class name="contacts-watermark"/>
</style>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="valign">start</property>
<property name="vexpand">True</property>
+ <property name="valign">start</property>
+ <property name="hexpand">True</property>
+ <property name="halign">center</property>
<property name="label" translatable="yes">Loading</property>
+ <style>
+ <class name="contacts-watermark"/>
+ </style>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
</object>
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index a659b3c..191be8a 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -25,7 +25,7 @@ public class Contacts.Window : Gtk.ApplicationWindow {
[GtkChild]
private Grid content_grid;
[GtkChild]
- private Box loading_box;
+ private Grid loading_box;
[GtkChild]
private SizeGroup left_pane_size_group;
[GtkChild]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]