From 3239f679a2bf034f9d38f0b4431943ee2476ff1a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 25 Feb 2016 22:10:36 +0200 Subject: [PATCH] Don't close the window with escape in manager mode --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index fe41c4a..aae10bc 100644 --- a/main.c +++ b/main.c @@ -1064,7 +1064,6 @@ int main(int argc, char **argv) context.window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width(GTK_CONTAINER(context.window), 5); g_signal_connect(context.window, "destroy", G_CALLBACK(>k_main_quit), NULL); - g_signal_connect(context.window, "key-press-event", G_CALLBACK(&key_press), NULL); box = gtk_vbox_new(FALSE, 5); gtk_container_add(GTK_CONTAINER(context.window), box); @@ -1113,6 +1112,8 @@ int main(int argc, char **argv) umount = -1; } + else + g_signal_connect(context.window, "key-press-event", G_CALLBACK(&key_press), NULL); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(context.list)); g_signal_connect(selection, "changed", G_CALLBACK(&selection_changed), &context); -- 2.45.2