banshee r4346 - in trunk/banshee: . src/Libraries/Hyena/Hyena.Query
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4346 - in trunk/banshee: . src/Libraries/Hyena/Hyena.Query
- Date: Mon, 11 Aug 2008 14:25:24 +0000 (UTC)
Author: gburt
Date: Mon Aug 11 14:25:24 2008
New Revision: 4346
URL: http://svn.gnome.org/viewvc/banshee?rev=4346&view=rev
Log:
2008-08-11 Gabriel Burt <gabriel burt gmail com>
* src/Libraries/Hyena/Hyena.Query/RelativeTimeSpanQueryValue.cs:
* src/Libraries/Hyena/Hyena.Query/DateQueryValue.cs: Patch from FÃlix
Velasco that makes never played tracks match 'last played > X' type
queries (BGO #542930).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Libraries/Hyena/Hyena.Query/DateQueryValue.cs
trunk/banshee/src/Libraries/Hyena/Hyena.Query/RelativeTimeSpanQueryValue.cs
Modified: trunk/banshee/src/Libraries/Hyena/Hyena.Query/DateQueryValue.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena/Hyena.Query/DateQueryValue.cs (original)
+++ trunk/banshee/src/Libraries/Hyena/Hyena.Query/DateQueryValue.cs Mon Aug 11 14:25:24 2008
@@ -44,7 +44,7 @@
//public static readonly Operator NotEqual = new Operator ("notEqual", "!= {0}", true, "!=", "!:");
//public static readonly Operator LessThanEqual = new Operator ("lessThanEquals", "<= {0}", "<=");
//public static readonly Operator GreaterThanEqual = new Operator ("greaterThanEquals", ">= {0}", ">=");
- public static readonly Operator LessThan = new Operator ("lessThan", Catalog.GetString ("before"), "< {0}", "<");
+ public static readonly Operator LessThan = new Operator ("lessThan", Catalog.GetString ("before"), "< {0}", true, "<");
public static readonly Operator GreaterThan = new Operator ("greaterThan", Catalog.GetString ("after"), "> {0}", ">");
protected DateTime value = DateTime.Now;
Modified: trunk/banshee/src/Libraries/Hyena/Hyena.Query/RelativeTimeSpanQueryValue.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena/Hyena.Query/RelativeTimeSpanQueryValue.cs (original)
+++ trunk/banshee/src/Libraries/Hyena/Hyena.Query/RelativeTimeSpanQueryValue.cs Mon Aug 11 14:25:24 2008
@@ -41,9 +41,9 @@
public class RelativeTimeSpanQueryValue : TimeSpanQueryValue
{
// The SQL operators in these Operators are reversed from normal on purpose
- public static new readonly Operator GreaterThan = new Operator ("greaterThan", Catalog.GetString ("more than"), "< {0}", ">");
+ public static new readonly Operator GreaterThan = new Operator ("greaterThan", Catalog.GetString ("more than"), "< {0}", true, ">");
public static new readonly Operator LessThan = new Operator ("lessThan", Catalog.GetString ("less than"), "> {0}", "<");
- public static new readonly Operator GreaterThanEqual = new Operator ("greaterThanEquals", Catalog.GetString ("at least"), "<= {0}", ">=");
+ public static new readonly Operator GreaterThanEqual = new Operator ("greaterThanEquals", Catalog.GetString ("at least"), "<= {0}", true, ">=");
public static new readonly Operator LessThanEqual = new Operator ("lessThanEquals", Catalog.GetString ("at most"), ">= {0}", "<=");
protected static new AliasedObjectSet<Operator> operators = new AliasedObjectSet<Operator> (GreaterThan, LessThan, GreaterThanEqual, LessThanEqual);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]