[gtk+] file chooser dialog: Better spacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] file chooser dialog: Better spacing
- Date: Fri, 24 Jul 2015 02:16:33 +0000 (UTC)
commit dc82949fbe4cfd5948f23cbea98c751a4346d8f4
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 23 22:15:32 2015 -0400
file chooser dialog: Better spacing
When the dialog is as narrow as possible, we still want some
space between the entry and the search button, so use margins
around the entry and label instead of box spacing.
gtk/gtkfilechooserdialog.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index dc41d32..66ed071 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -567,9 +567,11 @@ setup_save_entry (GtkFileChooserDialog *dialog)
GtkWidget *label;
GtkWidget *entry;
- box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label = gtk_label_new_with_mnemonic (_("_Name"));
entry = _gtk_file_chooser_entry_new (FALSE, FALSE);
+ g_object_set (label, "margin-start", 6, "margin-end", 6, NULL);
+ g_object_set (entry, "margin-start", 6, "margin-end", 6, NULL);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
gtk_container_add (GTK_CONTAINER (box), label);
gtk_container_add (GTK_CONTAINER (box), entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]