[gtk/iconbrowser-fix] Make iconbrowser search ignore categories
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/iconbrowser-fix] Make iconbrowser search ignore categories
- Date: Thu, 4 Mar 2021 21:14:39 +0000 (UTC)
commit 3ee3bd93444e42b904d733519790c21a4928e0fe
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 4 16:13:46 2021 -0500
Make iconbrowser search ignore categories
This is how it worked in gtk3, and how it should be.
demos/icon-browser/window.ui | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/demos/icon-browser/window.ui b/demos/icon-browser/window.ui
index 59685dbb57..17dc80b58d 100644
--- a/demos/icon-browser/window.ui
+++ b/demos/icon-browser/window.ui
@@ -151,19 +151,32 @@
</object>
</child>
<child>
- <object class="GtkStringFilter">
- <property name="ignore-case">0</property>
- <property name="match-mode">exact</property>
- <property name="expression">
- <lookup name="context" type="IbIcon"/>
- </property>
- <binding name="search">
- <lookup name="id" type="IbContext">
- <lookup name="selected-item" type="GtkSingleSelection">
- context_model
- </lookup>
- </lookup>
- </binding>
+ <object class="GtkAnyFilter">
+ <child>
+ <object class="GtkBoolFilter">
+ <property name="expression">
+ <lookup name="search-mode-enabled">
+ searchbar
+ </lookup>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStringFilter">
+ <property name="ignore-case">0</property>
+ <property name="match-mode">exact</property>
+ <property name="expression">
+ <lookup name="context" type="IbIcon"/>
+ </property>
+ <binding name="search">
+ <lookup name="id" type="IbContext">
+ <lookup name="selected-item" type="GtkSingleSelection">
+ context_model
+ </lookup>
+ </lookup>
+ </binding>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]