~ubuntu-branches/ubuntu/natty/shutter/natty

« back to all changes in this revision

Viewing changes to share/shutter/resources/modules/Shutter/Screenshot/SelectorSimple.pm

  • Committer: Krzysztof Klimonda
  • Date: 2011-03-15 22:29:28 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: kklimonda@syntaxhighlighted.com-20110315222928-ta3dvkre3dlftfim
* New bugfix only upstream release.
* Fixes bug when Shutter ignored typed-in save location. (LP: #657585)

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
                                if ( $event->type eq 'key-press' ) {
196
196
                                                                                
197
197
                                        #toggle zoom window
198
 
                                        if ( $event->keyval == $Gtk2::Gdk::Keysyms{space} ) {
 
198
                                        if ( $event->keyval == Gtk2::Gdk->keyval_from_name('space') ) {
199
199
                                                if ($self->{_zoom_active}){
200
200
                                                        $zoom_window->hide_all;
201
201
                                                        $self->{_zoom_active} = FALSE;
206
206
                                        }
207
207
                                                
208
208
                                        #quit on escape
209
 
                                        if ( $event->keyval == $Gtk2::Gdk::Keysyms{Escape} ) {
 
209
                                        if ( $event->keyval == Gtk2::Gdk->keyval_from_name('Escape') ) {
210
210
                                                if ( $rect_w > 1 ) {
211
211
                                                        #clear the last rectangle
212
212
                                                        $self->{_root}->draw_rectangle( $gc, 0, $rect_x, $rect_y, $rect_w, $rect_h );