From 13ae4810ca857ae018d9cc34b5181d476cd3316a Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 13 Jan 2022 21:31:14 +0100 Subject: Apply some bits of GNOME HIG 1.0 --- fiv-sidebar.c | 4 ++-- fiv.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fiv-sidebar.c b/fiv-sidebar.c index 907793a..16de0d4 100644 --- a/fiv-sidebar.c +++ b/fiv-sidebar.c @@ -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); diff --git a/fiv.c b/fiv.c index 90ef3b8..c001ad8 100644 --- a/fiv.c +++ b/fiv.c @@ -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); -- cgit v1.2.3-70-g09d2