Make <q> and <Escape> quit, update README
This commit is contained in:
parent
57ac392431
commit
a6982bcc3b
@ -29,6 +29,9 @@ Low priority:
|
|||||||
- display 16-bit pictures smoothly, using the 30-bit depth under X.org
|
- display 16-bit pictures smoothly, using the 30-bit depth under X.org
|
||||||
- make RAW as fast as it can possibly be
|
- make RAW as fast as it can possibly be
|
||||||
- load everything that resembles a picture, potentially even play video
|
- load everything that resembles a picture, potentially even play video
|
||||||
|
- port to something less hostile than the current GNOME stack, such as SDL,
|
||||||
|
although it may involve a lot of reimplemented code,
|
||||||
|
or result in reduced functionality
|
||||||
|
|
||||||
Non-goals:
|
Non-goals:
|
||||||
|
|
||||||
|
8
fastiv.c
8
fastiv.c
@ -84,6 +84,14 @@ main(int argc, char *argv[])
|
|||||||
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
|
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
|
||||||
gtk_container_add(GTK_CONTAINER(window), view);
|
gtk_container_add(GTK_CONTAINER(window), view);
|
||||||
|
|
||||||
|
// The references to closures are initially floating and sunk on connect.
|
||||||
|
GtkAccelGroup *accel_group = gtk_accel_group_new();
|
||||||
|
gtk_accel_group_connect(accel_group, GDK_KEY_Escape, 0, 0,
|
||||||
|
g_cclosure_new(G_CALLBACK(gtk_main_quit), NULL, NULL));
|
||||||
|
gtk_accel_group_connect(accel_group, GDK_KEY_q, 0, 0,
|
||||||
|
g_cclosure_new(G_CALLBACK(gtk_main_quit), NULL, NULL));
|
||||||
|
gtk_window_add_accel_group(GTK_WINDOW(window), accel_group);
|
||||||
|
|
||||||
// TODO(p): Load directory entries, store in `g`.
|
// TODO(p): Load directory entries, store in `g`.
|
||||||
// - Only when there's just one filename.
|
// - Only when there's just one filename.
|
||||||
// - stat() it if it's a dictionary or a filename;
|
// - stat() it if it's a dictionary or a filename;
|
||||||
|
Loading…
Reference in New Issue
Block a user