aboutsummaryrefslogtreecommitdiff
path: root/dragon.c
diff options
context:
space:
mode:
authortoniz4 <cassioavila000@gmail.com>2020-08-02 01:08:02 -0300
committerMichael Homer <mwh@ecs.vuw.ac.nz>2020-10-02 10:45:23 +1300
commit5d04aa504ed726e686b54acd2514e39fc5485d57 (patch)
tree3464cf5fe26a817a3997889556adce448ca10e76 /dragon.c
parentCenter icon if not displaying filename (diff)
downloaddragon-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dragon.c b/dragon.c
index 4ca2f81..c388930 100644
--- a/dragon.c
+++ b/dragon.c
@@ -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");
bgstack15