summaryrefslogtreecommitdiff
path: root/src/SearchFilter.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-06-28 21:35:52 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-06-28 21:35:52 +0200
commitb86540b743f1a87a163ffb811c8fe22a01fefa38 (patch)
treeb47cb3bb83c2377234226fb3987ab3320a987dd9 /src/SearchFilter.vala
parentac6e0b731b9f0b2efd392e3309a5c07e2a66adad (diff)
parente905d8e16eec152d19797937f13ba3cf4b8f8aca (diff)
Merge branch 'release/debian/0.32.1-1'debian/0.32.1-1
Diffstat (limited to 'src/SearchFilter.vala')
-rw-r--r--src/SearchFilter.vala14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index ad8b7ec..969591f 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -148,7 +148,7 @@ public abstract class SearchViewFilter : ViewFilter {
}
public void set_search_filter(string? text) {
- search_filter = !is_string_empty(text) ? text.down() : null;
+ search_filter = !is_string_empty(text) ? String.remove_diacritics(text.down()) : null;
search_filter_words = search_filter != null ? search_filter.split(" ") : null;
}
@@ -775,12 +775,13 @@ public class SearchFilterToolbar : Gtk.Revealer {
switch (filter) {
case RatingFilter.REJECTED_OR_HIGHER:
- icon = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
+ var box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
var image = new Gtk.Image.from_icon_name ("emblem-photos-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
image.margin_end = 2;
- (icon as Gtk.Box).pack_start(image);
+ box.pack_start(image);
image = new Gtk.Image.from_icon_name ("window-close-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
- (icon as Gtk.Box).pack_start(image);
+ box.pack_start(image);
+ icon = box;
icon.show_all();
break;
@@ -1015,7 +1016,8 @@ public class SearchFilterToolbar : Gtk.Revealer {
}
private SavedSearch get_search(Gtk.ListBoxRow row) {
- DataButton button = (row.get_children().first().data as Gtk.Box).get_children().last().data as DataButton;
+ var box = (Gtk.Box) row.get_children().first().data;
+ DataButton button = box.get_children().last().data as DataButton;
return button.search;
}
@@ -1191,7 +1193,7 @@ public class SearchFilterToolbar : Gtk.Revealer {
bool has_flagged) {
if (has_photos || has_raw)
// As a user, I would expect, that a raw photo is still a photo.
- // Let's enable the photo button even if there ar only raw photos.
+ // Let's enable the photo button even if there are only raw photos.
toolbtn_photos.set_icon_name("filter-photos-symbolic");
else
toolbtn_photos.set_icon_name("filter-photos-disabled-symbolic");