def _cb_motion_notify(self, widget, event):
     if not self._mouseover: return
     bars = chart.get_sensitive_areas(event.x, event.y)
     if bars == []: return
     for bar in self._bars:
         bar.set_property("highlighted", bar in bars)
     self.queue_draw()
 def _cb_motion_notify(self, widget, event):
     if not self._mouseover: return
     active = chart.get_sensitive_areas(event.x, event.y)
     if active == []: return
     for group in self._groups:
         for bar in group.get_bars():
             bar.set_highlighted((group, bar) in active)
     self.queue_draw()
 def _cb_button_pressed(self, widget, event):
     bars = chart.get_sensitive_areas(event.x, event.y)
     for bar in bars:
         self.emit("bar-clicked", bar)
 def _cb_button_pressed(self, widget, event):
     active = chart.get_sensitive_areas(event.x, event.y)
     for group, bar in active:
         self.emit("group-clicked", group, bar)
         self.emit("bar-clicked", bar)