~ubuntu-branches/ubuntu/saucy/shotwell/saucy-proposed

« back to all changes in this revision

Viewing changes to src/events/EventPage.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Alberto Mardegan
  • Date: 2013-03-19 19:34:19 UTC
  • mfrom: (1.2.18)
  • Revision ID: package-import@ubuntu.com-20130319193419-ed5bq7690j3c8pp1
Tags: 0.14.0-0ubuntu1
* New upstream version
* debian/control: drop leftover build-depends on libgnomevfs2-dev

[ Alberto Mardegan]
* debian/patches/06_uoa.patch: new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        Event.global.items_altered.connect(on_events_altered);
19
19
    }
20
20
    
 
21
    protected override bool on_app_key_pressed(Gdk.EventKey event) {
 
22
        // If and only if one image is selected, propagate F2 to the rest of
 
23
        // the window, otherwise, consume it here - if we don't do this, it'll
 
24
        // either let us re-title multiple images at the same time or
 
25
        // spuriously highlight the event name in the sidebar for editing...
 
26
        if (Gdk.keyval_name(event.keyval) == "F2") {
 
27
            if (get_view().get_selected_count() != 1) {
 
28
                return true; 
 
29
            }
 
30
        }
 
31
         
 
32
        return base.on_app_key_pressed(event);
 
33
    }
 
34
    
21
35
    ~EventPage() {
22
36
        Event.global.items_altered.disconnect(on_events_altered);
23
37
        get_view().halt_mirroring();