ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/bin/cv
(Generate patch)

Comparing CV/bin/cv (file contents):
Revision 1.50 by root, Sat Aug 13 15:19:10 2005 UTC vs.
Revision 1.52 by root, Sun Aug 14 19:07:15 2005 UTC

127 127
128 $schnauzer->set_geometry_hints; 128 $schnauzer->set_geometry_hints;
129} 129}
130 130
131if (@ARGV) { 131if (@ARGV) {
132 @ARGV == 1 && -d $ARGV[0]
133 ? $schnauzer->set_dir (Glib::filename_to_unicode shift)
132 $schnauzer->set_paths ([map Glib::filename_to_unicode $_, @ARGV]); 134 : $schnauzer->set_paths ([map Glib::filename_to_unicode $_, @ARGV]);
133 $schnauzer->show_all; 135 $schnauzer->show_all;
134 $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []); 136 $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []);
135 $viewer->show_all;
136} else { 137} else {
137 $schnauzer->set_dir (File::Spec->curdir); 138 $schnauzer->set_dir (File::Spec->curdir);
138 $mainwin->show_all; 139 $mainwin->show_all;
139 $viewer->show_all;
140} 140}
141 141
142$viewer->show_all; 142$viewer->show_all;
143 143
144main Gtk2; 144main Gtk2;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines