[gnome-boxes] App.ui_state_changed: move searchbar hiding out of switch
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] App.ui_state_changed: move searchbar hiding out of switch
- Date: Mon, 19 Nov 2012 10:01:19 +0000 (UTC)
commit f5c802fe24466f396ae4a1c743c2ccba51e43bb8
Author: Alexander Larsson <alexl redhat com>
Date: Fri Nov 16 15:38:13 2012 +0100
App.ui_state_changed: move searchbar hiding out of switch
This also sets searchbar state for the DISPLAY case, which should
not cause any change in behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=688473
src/app.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index fe16d14..1e358d2 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -559,6 +559,9 @@ private class Boxes.App: Boxes.UI {
if (ui_state != UIState.DISPLAY)
set_main_ui_state ();
+ if (ui_state != UIState.COLLECTION)
+ searchbar_revealer.revealed = false;
+
switch (ui_state) {
case UIState.COLLECTION:
topbar.status = null;
@@ -579,7 +582,6 @@ private class Boxes.App: Boxes.UI {
case UIState.CREDS:
case UIState.PROPERTIES:
case UIState.WIZARD:
- searchbar_revealer.revealed = false;
break;
case UIState.DISPLAY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]