From 1a9a66fbc51ad01d5729e3aefaa9e996bfafa938 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 1 Mar 2022 17:39:25 +0100 Subject: [PATCH] Use bottom margin instead of an empty label. --- gramps/gui/dbman.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/gramps/gui/dbman.py b/gramps/gui/dbman.py index a214a7def..678dd0421 100644 --- a/gramps/gui/dbman.py +++ b/gramps/gui/dbman.py @@ -1259,30 +1259,25 @@ class NoviceSelection(ManagedWindow, DbLoader): mylabel = message label = Gtk.Label(label=mylabel) label.set_halign(Gtk.Align.START) - self.window.vbox.pack_start(label, False, True, 0) - label = Gtk.Label(label="") + label.set_margin_bottom(15) self.window.vbox.pack_start(label, False, True, 0) label1 = Gtk.Label(label=_("Your databases will be stored in" - " the following databases directory.")) + " the following databases directory:")) label1.set_halign(Gtk.Align.START) self.window.vbox.pack_start(label1, False, True, 0) - label2 = Gtk.Label(label="") - self.window.vbox.pack_start(label2, False, True, 0) target = Gtk.Label(label=config.get('database.path')) target.set_tooltip_text(_("Family Tree Database path")) + target.set_margin_bottom(15) target.set_halign(Gtk.Align.START) self.window.vbox.pack_start(target, False, True, 0) - label3 = Gtk.Label(label="") - self.window.vbox.pack_start(label3, False, True, 0) label4 = Gtk.Label() label4.set_text(_("You can change the database directory above" " using:\nEdit -> Preferences -> Family Tree" "\nwith the 'Family Tree Database path' field.")) label4.set_halign(Gtk.Align.START) + label4.set_margin_bottom(15) self.window.vbox.pack_start(label4, False, True, 0) - label5 = Gtk.Label(label="") - self.window.vbox.pack_start(label5, False, True, 0) - label6 = Gtk.Label(label=_("Your database name. You can change it.")) + label6 = Gtk.Label(label=_("Your database name. You can change it:")) label6.set_halign(Gtk.Align.START) self.window.vbox.pack_start(label6, False, True, 0) self.__targetname = Gtk.Entry() @@ -1309,9 +1304,8 @@ class NoviceSelection(ManagedWindow, DbLoader): Gtk.STOCK_OK, Gtk.ResponseType.OK ) self.__targetname.set_tooltip_text(_("The name of your database")) + self.__targetname.set_margin_bottom(15) self.window.vbox.pack_start(self.__targetname, False, True, 0) - label7 = Gtk.Label(label="") - self.window.vbox.pack_start(label7, False, True, 0) load_db = Gtk.Button(label=_("Load a gedcom/gramps file?")) load_db.set_tooltip_text(_("Click here if you want to load a gedcom/" "gramps file."))