… | |
… | |
166 | $schnauzer->show_all; |
166 | $schnauzer->show_all; |
167 | $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []); |
167 | $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []); |
168 | $viewer->show_all; |
168 | $viewer->show_all; |
169 | }; |
169 | }; |
170 | |
170 | |
|
|
171 | if (@ARGV == 1 && $ARGV[0] eq "-0r") { |
|
|
172 | local $/; |
|
|
173 | $schnauzer->set_paths ([map Glib::filename_to_unicode $_, split /\x00/, <STDIN>], 1, $show_first); |
171 | @ARGV == 1 && -d $ARGV[0] |
174 | } elsif (@ARGV == 1 && -d $ARGV[0]) { |
172 | ? $schnauzer->set_dir (Glib::filename_to_unicode shift, $show_first) |
175 | $schnauzer->set_dir (Glib::filename_to_unicode shift, $show_first); |
|
|
176 | } else { |
173 | : $schnauzer->set_paths ([map Glib::filename_to_unicode $_, @ARGV], 1, $show_first); |
177 | $schnauzer->set_paths ([map Glib::filename_to_unicode $_, @ARGV], 1, $show_first); |
|
|
178 | } |
174 | } else { |
179 | } else { |
175 | $schnauzer->set_dir (File::Spec->curdir, sub { |
180 | $schnauzer->set_dir (File::Spec->curdir, sub { |
176 | $mainwin->show_all; |
181 | $mainwin->show_all; |
177 | $viewer->show_all; |
182 | $viewer->show_all; |
178 | }); |
183 | }); |
179 | } |
184 | } |
180 | |
185 | |
181 | main Gtk2; |
186 | main Gtk2; |
|
|
187 | |
|
|
188 | Gtk2::CV::flush_aio; |
182 | |
189 | |
183 | __DATA__ |
190 | __DATA__ |
184 | |
191 | |
185 | =encoding utf-8 |
192 | =encoding utf-8 |
186 | |
193 | |
… | |
… | |
426 | =item CV_EDITOR |
433 | =item CV_EDITOR |
427 | |
434 | |
428 | The program that gets executed when the user presses C<CTRL-e> in the |
435 | The program that gets executed when the user presses C<CTRL-e> in the |
429 | Schnauzer or image window. The default is C<gimp>. |
436 | Schnauzer or image window. The default is C<gimp>. |
430 | |
437 | |
|
|
438 | =item CV_AUDIO_PLAYER |
|
|
439 | |
|
|
440 | Program used to play all sorts of audio (wav, aif, mp3, ogg...), default "play". |
|
|
441 | Will be called like C<< $CV_AUDIO_PLAYER -- <path> >>. |
|
|
442 | |
431 | =item CV_PRINT_DESTINATION |
443 | =item CV_PRINT_DESTINATION |
432 | |
444 | |
433 | The default (perl-style) destination to use in the print dialog. |
445 | The default (perl-style) destination to use in the print dialog. |
434 | |
446 | |
435 | =item CV_TRASHCAN |
447 | =item CV_TRASHCAN |