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

Comparing CV/bin/cv (file contents):
Revision 1.21 by root, Sat Nov 8 01:00:08 2003 UTC vs.
Revision 1.24 by root, Wed Nov 12 18:10:47 2003 UTC

81 81
82 $viewer->signal_connect (button3_press_event => sub { 82 $viewer->signal_connect (button3_press_event => sub {
83 $mainwin->visible 83 $mainwin->visible
84 ? $mainwin->hide 84 ? $mainwin->hide
85 : $mainwin->show_all; 85 : $mainwin->show_all;
86 1;
86 }); 87 });
87 88
88 $schnauzer = new_schnauzer; 89 $schnauzer = new_schnauzer;
89 90
90 $mainwin = new Gtk2::Window; 91 $mainwin = new Gtk2::Window;
91 $mainwin->set_title ("CV"); 92 $mainwin->set_title ("CV");
92 $mainwin->add (my $vbox = new Gtk2::VBox); 93 $mainwin->add (my $vbox = new Gtk2::VBox);
94 $mainwin->signal_connect (delete_event => sub { $mainwin->hide; 1; });
93 95
94 $vbox->add ($schnauzer); 96 $vbox->add ($schnauzer);
95 $vbox->add (my $frame = new Gtk2::Frame); 97 $vbox->pack_end (my $frame = new Gtk2::Frame, 0, 0, 0);
96 $frame->add (my $hbox = new Gtk2::HBox 0, 0); 98 $frame->add (my $hbox = new Gtk2::HBox 0, 0);
97 $hbox->pack_start ((new Gtk2::Label "Info"), 0, 0, 0); 99 $hbox->pack_start ((new Gtk2::Label "Info"), 0, 0, 0);
98 $hbox->pack_start (($info = new Gtk2::Label), 1, 1, 0); 100 $hbox->pack_start (($info = new Gtk2::Label), 1, 1, 0);
99} 101}
100 102
161 page-up move one page up 163 page-up move one page up
162 page-down move one page down 164 page-down move one page down
163 home move to first file 165 home move to first file
164 end move to last file 166 end move to last file
165 167
168 ctrl-d delete selected files WITHOUT ASKING AGAIN
166 ctrl-g generate icons for the selected files 169 ctrl-g generate icons for the selected files
167 ctrl-d delete selected files WITHOUT ASKING AGAIN 170 ctrl-u update selected (or all) icons if neccessary
171
172=head1 SECURITY CONSIDERATIONS
173
174CV uses Pixbuf to load images. Pixbuf is not considered safe for this
175purpose, though (from the gtk-2.2 release notes):
176
177"While efforts have been made to make gdk-pixbuf robust against invalid
178images, using gdk-pixbuf to load untrusted data is not recommended, due to
179the likelyhood that there are additional problems where an invalid image
180could cause gdk-pixbuf to crash or worse."
168 181
169=head1 BUGS/TODO 182=head1 BUGS/TODO
183
184 Pixbuf doesn't honor G_BROKEN_FILENAMES, so accessing files with names
185 incompatible with utf-8 fails.
170 186
171 rotate on disk 187 rotate on disk
172 print 188 print
173 lots of ui issues 189 lots of ui issues
174 save(?) 190 save(?)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines