[gnome-boxes] app-window: Add a 'connecting' page
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app-window: Add a 'connecting' page
- Date: Fri, 28 Feb 2014 16:57:38 +0000 (UTC)
commit 96711444f2cef85188d2001f0a3924ffc7603f64
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Feb 28 16:44:59 2014 +0000
app-window: Add a 'connecting' page
Show a spinner in the middle of the view and hide items between the time
user clicks on the item and we get to show the display.
data/ui/app-window.ui | 31 +++++++++++++++++++++++++++++++
src/machine.vala | 1 +
2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/app-window.ui b/data/ui/app-window.ui
index bfc5402..aeb5de7 100644
--- a/data/ui/app-window.ui
+++ b/data/ui/app-window.ui
@@ -150,6 +150,37 @@
<property name="name">display-page</property>
</packing>
</child>
+
+ <child>
+ <object class="GtkBox" id="spinner-box">
+ <property name="visible">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="halign">fill</property>
+ <property name="valign">fill</property>
+ <style>
+ <class name="empty-boxes"/>
+ </style>
+
+ <child>
+ <object class="GtkSpinner" id="spinner">
+ <property name="visible">True</property>
+ <property name="active">True</property>
+ <property name="width-request">32</property>
+ <property name="height-request">32</property>
+ </object>
+
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+ </object>
+
+ <packing>
+ <property name="name">connecting-page</property>
+ </packing>
+ </child>
</object>
</child>
</object>
diff --git a/src/machine.vala b/src/machine.vala
index 17d5cce..3bb4be1 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -495,6 +495,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
private void ui_state_changed () {
switch (ui_state) {
case UIState.CREDS:
+ App.window.below_bin.set_visible_child_name ("connecting-page");
try_connect_display.begin ();
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]