<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -138,7 +138,7 @@ class View(object):
         &quot;&quot;&quot;
         Items that loose focus remain selected.
         &quot;&quot;&quot;
-        self.focused_item = None
+        self._set_focused_item(None)
         
 
     focused_item = property(lambda s: s._focused_item,
@@ -150,9 +150,8 @@ class View(object):
         &quot;&quot;&quot;
         Set the hovered item.
         &quot;&quot;&quot;
-        if not item is self._hovered_item:
-            self.queue_draw_item(self._hovered_item, item)
         if item is not self._hovered_item:
+            self.queue_draw_item(self._hovered_item, item)
             self._hovered_item = item
             self.emit('hover-changed', item)
 
@@ -559,6 +558,7 @@ class GtkView(gtk.DrawingArea, View):
         TODO: Should we also create a (sorted) list of items that need redrawal?
         &quot;&quot;&quot;
         get_bounds = self._qtree.get_bounds
+        items = filter(None, items)
         try:
             # create a copy, otherwise we'll change the original rectangle
             bounds = Rectangle(*get_bounds(items[0]))</diff>
      <filename>gaphas/view.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>50222f5329708073540ff9d25395ded79da0fb48</id>
    </parent>
  </parents>
  <author>
    <name>Arjan Molenaar</name>
    <email>gaphor@gmail.com</email>
  </author>
  <url>http://github.com/amolenaar/gaphas/commit/0d50ad9312e7ec1a2288b523dd0baecd4fd7bc43</url>
  <id>0d50ad9312e7ec1a2288b523dd0baecd4fd7bc43</id>
  <committed-date>2009-10-20T22:24:12-07:00</committed-date>
  <authored-date>2009-10-20T22:24:12-07:00</authored-date>
  <message>Fixed hover in and out.</message>
  <tree>309ad67cb3291c7eff88738095b65876a3ebedf2</tree>
  <committer>
    <name>Arjan Molenaar</name>
    <email>gaphor@gmail.com</email>
  </committer>
</commit>
