~ubuntu-branches/ubuntu/raring/gnome-clocks/raring

« back to all changes in this revision

Viewing changes to gnomeclocks/widgets.py

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-10-15 21:32:52 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20121015213252-g95nrckthsqpydb7
Tags: 0.1.4-0ubuntu1
New upstream bugfix and translation update release (LP: #1067141)

Show diffs side-by-side

added added

removed removed

Lines of Context:
354
354
        GtkClutter.Embed.__init__(self)
355
355
        self.set_use_layout_size(True)
356
356
 
 
357
        # Set can-focus to false and override key-press and
 
358
        # key-release so that we skip all Clutter key event
 
359
        # handling and we let the contained gtk widget do
 
360
        # their thing
 
361
        # See https://bugzilla.gnome.org/show_bug.cgi?id=684988
 
362
        self.set_can_focus(False)
 
363
 
357
364
        self.stage = self.get_stage()
358
365
 
359
366
        self._overlayLayout = Clutter.BinLayout()
400
407
                             Clutter.BinAlignment.FILL)
401
408
        self._background.lower_bottom()
402
409
 
 
410
    def do_key_press_event(self, event):
 
411
        return False
 
412
 
 
413
    def do_key_release_event(self, event):
 
414
        return False
 
415
 
403
416
    def _spotlight_finished(self, actor, name, is_finished):
404
417
        self._viewActor.set_child_below_sibling(self._background, None)
405
418
        self._background.disconnect_by_func(self._spotlight_finished)