From bbb1de537f0cbd222f4792ffa397cc15377d0474 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 18 Jan 2009 21:04:22 +0000 Subject: [PATCH] Changes to formats_display tab to make smaller, so Preferences dialog isn't so long svn: r11658 --- src/GrampsCfg.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index c2f1ad492..9c701c8fe 100644 --- a/src/GrampsCfg.py +++ b/src/GrampsCfg.py @@ -704,7 +704,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): def add_formats_panel(self): row = 0 - table = gtk.Table(4, 8) + table = gtk.Table(4, 4) table.set_border_width(12) table.set_col_spacings(6) table.set_row_spacings(6) @@ -791,8 +791,9 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): row += 1 # Text in sidebar: - self.add_checkbox(table, _("Show text in sidebar buttons (takes effect on restart)"), - row, Config.SIDEBAR_TEXT) + self.add_checkbox(table, + _("Show text in sidebar buttons (requires restart)"), + row, Config.SIDEBAR_TEXT, stop=3) row += 1 return table @@ -894,7 +895,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): _('Remember last view displayed'), 5, Config.USE_LAST_VIEW) self.add_pos_int_entry(table, - _('Number of generations for relationship determination'), + _('Max generations for relationships'), 6, Config.GENERATION_DEPTH, self.update_gen_depth) self.path_entry = gtk.Entry() self.add_path_box(table, @@ -919,11 +920,11 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): return table - def add_checkbox(self, table, label, index, constant): + def add_checkbox(self, table, label, index, constant, start=1, stop=9): checkbox = gtk.CheckButton(label) checkbox.set_active(Config.get(constant)) checkbox.connect('toggled', self.update_checkbox, constant) - table.attach(checkbox, 1, 9, index, index+1, yoptions=0) + table.attach(checkbox, start, stop, index, index+1, yoptions=0) def add_radiobox(self, table, label, index, constant, group, column): radiobox = gtk.RadioButton(group,label)