[gnome-games] ui: Hide search bar out of collection view
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Hide search bar out of collection view
- Date: Thu, 21 Jul 2016 15:18:11 +0000 (UTC)
commit 26e48ce3e6e7cc5d0865de79c116631e6240a1ad
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jul 21 15:20:24 2016 +0200
ui: Hide search bar out of collection view
Make the search bar visible only in collection view, preventing it from
disappearing weirdly when starting to run a game.
Fixes #308
src/ui/content-box.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/content-box.vala b/src/ui/content-box.vala
index fa72787..9d13c95 100644
--- a/src/ui/content-box.vala
+++ b/src/ui/content-box.vala
@@ -17,6 +17,8 @@ private class Games.ContentBox : Gtk.Box {
switch (ui_state) {
case UiState.COLLECTION:
content_stack.set_visible_child (collection_icon_view);
+ search_bar.visible = true;
+
if (runner != null) {
runner.pause ();
runner = null;
@@ -25,6 +27,7 @@ private class Games.ContentBox : Gtk.Box {
break;
case UiState.DISPLAY:
content_stack.set_visible_child (display_box);
+ search_bar.visible = false;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]