[gnome-boxes] app: Don't make searchbar invisible
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app: Don't make searchbar invisible
- Date: Thu, 20 Feb 2014 16:39:21 +0000 (UTC)
commit 7b235b90a4e25a42651ee10369d9731df578a328
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Feb 20 16:34:09 2014 +0000
app: Don't make searchbar invisible
GtkSearchBar is supposed to handle its own visibility, we only need to
update the 'search-mode-enabled' property on UI state changes.
src/app.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 8c7f1a9..d4ddcb0 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -325,7 +325,7 @@ private class Boxes.App: GLib.Object, Boxes.UI {
call_when_ready (() => {
searchbar.text = string.joinv (" ", opt_search);
if (ui_state == UIState.COLLECTION)
- searchbar.visible = true;
+ searchbar.search_mode_enabled = true;
});
}
@@ -619,7 +619,7 @@ private class Boxes.App: GLib.Object, Boxes.UI {
set_main_ui_state ();
if (ui_state != UIState.COLLECTION)
- searchbar.visible = false;
+ searchbar.search_mode_enabled = false;
switch (ui_state) {
case UIState.COLLECTION:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]