------------------------------------------------------------
revno: 201
committer: Seif Lotfy <s...@lotfy.com>
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);
+                }
             }
         }
 

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to