Apply some bits of GNOME HIG 1.0

This commit is contained in:
Přemysl Eric Janouch 2022-01-13 21:31:14 +01:00
parent 222ba6a060
commit 13ae4810ca
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 3 additions and 3 deletions

View File

@ -417,8 +417,8 @@ on_show_enter_location(
g_free(label);
GtkWidget *content = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
g_object_set(content, "margin", 5, NULL);
gtk_box_set_spacing(GTK_BOX(content), 5);
g_object_set(content, "margin", 12, NULL);
gtk_box_set_spacing(GTK_BOX(content), 6);
gtk_container_add(GTK_CONTAINER(content), entry);
gtk_container_add(GTK_CONTAINER(content), protocols);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);

2
fiv.c
View File

@ -437,7 +437,7 @@ show_about_dialog(GtkWidget *parent)
gtk_text_buffer_insert_markup(buffer, &iter, formatted, -1);
g_free(formatted);
enum { SUBBOX_MARGIN = 12 /* Roughly matches. */ };
enum { SUBBOX_MARGIN = 12 /* GNOME HIG 1.0 */ };
GtkWidget *subbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 12);
gtk_widget_set_margin_start(subbox, SUBBOX_MARGIN);
gtk_widget_set_margin_end(subbox, SUBBOX_MARGIN);