[gnome-games/wip/exalm/actions: 2/10] collection-box: Disable search-as-you-type on empty collection
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/actions: 2/10] collection-box: Disable search-as-you-type on empty collection
- Date: Sun, 26 Jan 2020 17:10:35 +0000 (UTC)
commit 358acf06a761173e685dac62029a451c220bbf1f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Jan 26 04:44:59 2020 +0500
collection-box: Disable search-as-you-type on empty collection
src/ui/collection-box.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/ui/collection-box.vala b/src/ui/collection-box.vala
index 8367b978..515bb24d 100644
--- a/src/ui/collection-box.vala
+++ b/src/ui/collection-box.vala
@@ -159,6 +159,9 @@ private class Games.CollectionBox : Gtk.Box {
}
public bool search_bar_handle_event (Gdk.Event event) {
+ if (is_collection_empty)
+ return false;
+
return search_bar.handle_event (event);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]