aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-06 07:48:21 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-06 07:49:01 +0200
commite6341e59bbc248b84a33aef263c90d6eb97e9302 (patch)
tree4668f333f1510ec89df4f99ee351499d2d5842ae
parent33fb047a73dfced5cc566d15d9a40dd5515cb54d (diff)
downloadfiv-e6341e59bbc248b84a33aef263c90d6eb97e9302.tar.gz
fiv-e6341e59bbc248b84a33aef263c90d6eb97e9302.tar.xz
fiv-e6341e59bbc248b84a33aef263c90d6eb97e9302.zip
Make Information easier to control from keyboard
-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