[Xfce4-commits] <postler:master> Perform search case insensitively
Christian Dywan
noreply at xfce.org
Mon May 31 20:00:04 CEST 2010
Updating branch refs/heads/master
to 1a08558f8c3ec071b7746c539be20c08d9ca18f1 (commit)
from 1e5bd453b8ed7d35f6fa6dc9db8462cdc696b27f (commit)
commit 1a08558f8c3ec071b7746c539be20c08d9ca18f1
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon May 31 19:43:47 2010 +0200
Perform search case insensitively
postler/postler-messages.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 70734b4..46a3f87 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -20,7 +20,7 @@ public class Postler.Messages : Gtk.TreeView {
public string? selected_location { get; set; }
string last_location;
- string last_filter;
+ string last_filter = "";
enum Columns {
FLAGGED,
@@ -190,15 +190,15 @@ public class Postler.Messages : Gtk.TreeView {
public void search (string filter) {
last_filter = filter;
- populate (last_location, last_filter);
+ populate (last_location, filter.down ());
}
- public bool populate (string? location, string? filter=null) {
+ public bool populate (string? location, string filter="") {
clear ();
sort.reset_default_sort_func ();
if (location == null)
return true;
- if (filter != null)
+ if (filter != "")
last_filter = filter;
try {
string[] folders = { "cur", "new" };
@@ -282,7 +282,7 @@ public class Postler.Messages : Gtk.TreeView {
string charset = null;
string real_subject = parse_encoded (subject, out charset);
- if (last_filter != null && !(last_filter in real_subject))
+ if (last_filter != "" && !(last_filter in real_subject.down ()))
continue;
store.insert_with_values (out account_iter, null, -1,
Columns.FLAGGED, flagged,
More information about the Xfce4-commits
mailing list