/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2008-06-29 19:18:34 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: jelmer@samba.org-20080629191834-ha2ecpv5szt96nge
Make sure signed testament matches repository data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
446
446
    @show_bzr_error
447
447
    def on_entry_history_revno_key_press_event(self, widget, event):
448
448
        """ Key pressed handler for the history entry. """
449
 
        if event.keyval == 65293:
 
449
        if event.keyval == gtk.gdk.keyval_from_name('Return') or event.keyval == gtk.gdk.keyval_from_name('KP_Enter'):
450
450
            # Return was hit, so we have to load that specific revision
451
451
            # Emulate being remote, so inventory should be used
452
452
            path = self.get_path()
461
461
    
462
462
    def on_entry_location_key_press_event(self, widget, event):
463
463
        """ Key pressed handler for the location entry. """
464
 
        if event.keyval == 65293:
 
464
        if event.keyval == gtk.gdk.keyval_from_name('Return') or event.keyval == gtk.gdk.keyval_from_name('KP_Enter'):
465
465
            # Return was hit, so we have to jump
466
466
            self.on_button_location_jump_clicked(widget)
467
467