diff options
author | toniz4 <cassioavila000@gmail.com> | 2020-08-02 01:08:02 -0300 |
---|---|---|
committer | Michael Homer <mwh@ecs.vuw.ac.nz> | 2020-10-02 10:45:23 +1300 |
commit | 5d04aa504ed726e686b54acd2514e39fc5485d57 (patch) | |
tree | 3464cf5fe26a817a3997889556adce448ca10e76 /dragon.c | |
parent | Center icon if not displaying filename (diff) | |
download | dragon-5d04aa504ed726e686b54acd2514e39fc5485d57.tar.gz dragon-5d04aa504ed726e686b54acd2514e39fc5485d57.tar.bz2 dragon-5d04aa504ed726e686b54acd2514e39fc5485d57.zip |
Quit with both esc and q
Diffstat (limited to 'dragon.c')
-rw-r--r-- | dragon.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -412,6 +412,8 @@ int main (int argc, char **argv) { closure = g_cclosure_new(G_CALLBACK(do_quit), NULL, NULL); accelgroup = gtk_accel_group_new(); gtk_accel_group_connect(accelgroup, GDK_KEY_Escape, 0, 0, closure); + closure = g_cclosure_new(G_CALLBACK(do_quit), NULL, NULL); + gtk_accel_group_connect(accelgroup, GDK_KEY_q, 0, 0, closure); gtk_window_add_accel_group(GTK_WINDOW(window), accelgroup); gtk_window_set_title(GTK_WINDOW(window), "Run"); |