[evolution-data-server/gnome-3-0] Bug #589495 - Search folder by Size (KB) counts bytes, not KB
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-0] Bug #589495 - Search folder by Size (KB) counts bytes, not KB
- Date: Thu, 26 May 2011 09:12:03 +0000 (UTC)
commit b569a3f9cd882f1e1c5b08bdff23b1bcb74572b0
Author: Milan Crha <mcrha redhat com>
Date: Thu May 26 11:11:41 2011 +0200
Bug #589495 - Search folder by Size (KB) counts bytes, not KB
camel/camel-search-sql-sexp.c | 3 ++-
camel/camel-search-sql.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-search-sql-sexp.c b/camel/camel-search-sql-sexp.c
index 48335e7..53bbf11 100644
--- a/camel/camel-search-sql-sexp.c
+++ b/camel/camel-search-sql-sexp.c
@@ -543,7 +543,7 @@ get_size (struct _ESExp *f, gint argc, struct _ESExpResult **argv, gpointer data
d(printf("executing get-size\n"));
r = e_sexp_result_new (f, ESEXP_RES_STRING);
- r->value.string = g_strdup("size");
+ r->value.string = g_strdup("size/1024");
return r;
}
@@ -638,6 +638,7 @@ camel_sexp_to_sql_sexp (const gchar *sql)
e_sexp_result_free (sexp, r);
e_sexp_unref (sexp);
+
return res;
}
diff --git a/camel/camel-search-sql.c b/camel/camel-search-sql.c
index 482b610..96d20ba 100644
--- a/camel/camel-search-sql.c
+++ b/camel/camel-search-sql.c
@@ -144,7 +144,7 @@ static Node elements[] = { { (gchar *) "header-contains", (gchar *) "LIKE", 3,
{ (gchar *) "header-starts-with", (gchar *) "LIKE", 3, ' ', '%', 0, 0, 0, 1, 0, 0, 0, 0, 0},
{ (gchar *) "get-sent-date", (gchar *) "dsent", 2, ' ', ' ', 0, 0, 1, 1, 0, 0, 0, 0, 1, 0 },
{ (gchar *) "get-received-date", (gchar *) "dreceived", 2, ' ', ' ', 0, 0, 1, 1, 0, 0, 0, 0, 1, 0 },
- { (gchar *) "get-size", (gchar *) "size", 2, ' ', ' ', ' ', 0, 1, 1, 0, 0, 0, 0, 1},
+ { (gchar *) "get-size", (gchar *) "size/1024", 2, ' ', ' ', ' ', 0, 1, 1, 0, 0, 0, 0, 1},
{ (gchar *) "match-threads", (gchar *) "", 0, ' ', ' ', 0, 0, 0, 1, 0, 0, 0, 0, 0},
};
#if 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]