[gnome-boxes] topbar: Remove now redundant spinner
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] topbar: Remove now redundant spinner
- Date: Fri, 28 Feb 2014 16:57:43 +0000 (UTC)
commit 897a36fd6170bf8edc1a9b9fc8607b4b887f53f9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Feb 28 16:49:39 2014 +0000
topbar: Remove now redundant spinner
Now that we show spinner in the middle when connecting to a box, we
don't need the small spinner on the topbar. It was pretty easy to miss
anyway.
data/ui/topbar.ui | 23 -----------------------
src/topbar.vala | 5 -----
2 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/data/ui/topbar.ui b/data/ui/topbar.ui
index 0162af2..8555142 100644
--- a/data/ui/topbar.ui
+++ b/data/ui/topbar.ui
@@ -112,20 +112,6 @@
<property name="pack-type">end</property>
</packing>
</child>
-
- <child>
- <object class="GtkSpinner" id="spinner">
- <property name="visible">True</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
- <property name="active">True</property>
- <property name="margin">6</property>
- </object>
-
- <packing>
- <property name="pack-type">end</property>
- </packing>
- </child>
</object>
<packing>
@@ -357,15 +343,6 @@
</child>
</template>
- <!-- We need a sizegroup to ensure the spinner is the same size as the buttons so it centers correctly -->
- <object class="GtkSizeGroup" id="collection_sizegroup">
- <property name="mode">horizontal</property>
- <widgets>
- <widget name="spinner"/>
- <widget name="select_btn"/>
- </widgets>
- </object>
-
<object class="GtkSizeGroup" id="wizard_sizegroup">
<property name="mode">horizontal</property>
<widgets>
diff --git a/src/topbar.vala b/src/topbar.vala
index b2be1e7..529c0d8 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -24,8 +24,6 @@ private class Boxes.Topbar: Gtk.Notebook, Boxes.UI {
public Gtk.Button wizard_create_btn;
[GtkChild]
- private Gtk.Spinner spinner;
- [GtkChild]
private Gtk.Button search_btn;
[GtkChild]
private Gtk.Button search2_btn;
@@ -130,7 +128,6 @@ private class Boxes.Topbar: Gtk.Notebook, Boxes.UI {
case UIState.COLLECTION:
page = TopbarPage.COLLECTION;
back_btn.hide ();
- spinner.hide ();
select_btn.show ();
search_btn.show ();
new_btn.show ();
@@ -140,14 +137,12 @@ private class Boxes.Topbar: Gtk.Notebook, Boxes.UI {
page = TopbarPage.COLLECTION;
new_btn.hide ();
back_btn.show ();
- spinner.show ();
select_btn.hide ();
search_btn.hide ();
break;
case UIState.DISPLAY:
page = TopbarPage.DISPLAY;
- spinner.hide ();
break;
case UIState.PROPERTIES:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]