aboutsummaryrefslogtreecommitdiff
path: root/fiv-context-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv-context-menu.c')
-rw-r--r--fiv-context-menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fiv-context-menu.c b/fiv-context-menu.c
index 70d9ab2..05f9f5f 100644
--- a/fiv-context-menu.c
+++ b/fiv-context-menu.c
@@ -103,6 +103,7 @@ info_make_bar(const char *message)
GtkWidget *info = gtk_info_bar_new();
gtk_info_bar_set_message_type(GTK_INFO_BAR(info), GTK_MESSAGE_WARNING);
GtkWidget *info_area = gtk_info_bar_get_content_area(GTK_INFO_BAR(info));
+ // When the label is made selectable, Escape doesn't work when it has focus.
gtk_container_add(GTK_CONTAINER(info_area), gtk_label_new(message));
return info;
}
@@ -173,6 +174,7 @@ on_info_finished(GObject *source_object, GAsyncResult *res, gpointer user_data)
g_free(out);
g_free(err);
gtk_widget_show_all(dialog);
+ gtk_widget_grab_focus(scroller);
}
static void