zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #03855
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 201: added some brackets and made matches private (i think it was before) :P
------------------------------------------------------------
revno: 201
committer: Seif Lotfy <seif@xxxxxxxxx>
branch nick: bluebird
timestamp: Tue 2011-08-30 19:28:58 +0200
message:
added some brackets and made matches private (i think it was before) :P
modified:
src/notify.vala
--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/notify.vala'
--- src/notify.vala 2011-08-30 15:31:14 +0000
+++ src/notify.vala 2011-08-30 17:28:58 +0000
@@ -103,8 +103,12 @@
if (event_templates.length == 0)
return true;
for (var i = 0; i < event_templates.length; i++)
+ {
if (event.matches_template (event_templates[i]))
+ {
return true;
+ }
+ }
return false;
}
@@ -117,10 +121,14 @@
{
var matching_events = new GenericArray<Event>();
for (int i=0; i<events.length; i++)
+ {
if (matches(events[i])
+ {
&& events[i].timestamp >= intersection_timerange.start
&& events[i].timestamp <= intersection_timerange.end)
matching_events.add(events[i]);
+ }
+ }
if (matching_events.length > 0)
{
DBusProxy p = (DBusProxy) proxy_object;
@@ -138,8 +146,10 @@
{
var intersection_timerange = time_range.intersect(this.time_range);
if (intersection_timerange != null)
+ {
proxy_object.notify_delete (intersection_timerange.to_variant (),
event_ids);
+ }
}
}