Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3437

See merge request GNOME/gtk!3087
This commit is contained in:
Matthias Clasen 2021-01-17 17:51:15 +00:00
commit 6aa893e091
2 changed files with 16 additions and 0 deletions

View File

@ -315,6 +315,17 @@ stack_visible_child_notify (GtkStack *stack,
return FALSE;
}
static void
gtk_about_dialog_map (GtkWidget *widget)
{
GtkAboutDialog *about = GTK_ABOUT_DIALOG (widget);
if (gtk_widget_get_visible (about->stack_switcher))
gtk_widget_grab_focus (gtk_widget_get_first_child (about->stack_switcher));
GTK_WIDGET_CLASS (gtk_about_dialog_parent_class)->map (widget);
}
static void
gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
{
@ -329,6 +340,8 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
object_class->finalize = gtk_about_dialog_finalize;
widget_class->map = gtk_about_dialog_map;
klass->activate_link = gtk_about_dialog_activate_link;
/**

View File

@ -404,6 +404,9 @@ recordings_list_row_selected (GtkListBox *box,
{
GtkInspectorRecording *recording;
if (recorder->recordings == NULL)
return;
if (row)
recording = g_list_model_get_item (recorder->recordings, gtk_list_box_row_get_index (row));
else