summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-23 22:15:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-23 22:15:32 -0400
commitdc82949fbe4cfd5948f23cbea98c751a4346d8f4 (patch)
treed07f5272b2d5442ff494bbfd7a10321dc4bf54d3
parente2b9caf26affe5fbc3422b1cb1f9f3df4d1d7b90 (diff)
downloadgtk+-dc82949fbe4cfd5948f23cbea98c751a4346d8f4.tar.gz
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.
-rw-r--r--gtk/gtkfilechooserdialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index dc41d3232f..66ed07123c 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);