From 2fd67ea5816dfb8eb3cba41cb031a0196ad85030 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 22 Dec 2008 20:47:23 +0000 Subject: [PATCH] Fixed some spacing issues on Data Entry gramplet svn: r11507 --- src/plugins/DefaultGramplets.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py index 895b787a7..57c29e6d0 100644 --- a/src/plugins/DefaultGramplets.py +++ b/src/plugins/DefaultGramplets.py @@ -1203,6 +1203,7 @@ class QuickViewGramplet(Gramplet): class DataEntryGramplet(Gramplet): def init(self): + self.de_column_width = 20 import gtk rows = gtk.VBox() self.dirty = False @@ -1260,7 +1261,7 @@ class DataEntryGramplet(Gramplet): if active_person: # Fill in current person edits: name = name_displayer.display(active_person) - self.de_widgets[0].set_text("%s " % name) + self.de_widgets[0].set_text("%s " % name) self.de_widgets[0].set_use_markup(True) # Name: name_obj = active_person.get_primary_name() @@ -1324,7 +1325,7 @@ class DataEntryGramplet(Gramplet): label = gtk.Label() if readonly: label.set_text("%s" % text) - label.set_width_chars(15) + label.set_width_chars(self.de_column_width) label.set_use_markup(True) self.de_widgets[text] = gtk.Label() self.de_widgets[text].set_alignment(0.0, 0.5) @@ -1334,7 +1335,7 @@ class DataEntryGramplet(Gramplet): row.pack_start(self.de_widgets[text], False) else: label.set_text("%s: " % text) - label.set_width_chars(15) + label.set_width_chars(self.de_column_width) label.set_alignment(1.0, 0.5) if choices == None: self.de_widgets[text] = gtk.Entry() @@ -1559,7 +1560,7 @@ register(type="gramplet", expand=False, content = DataEntryGramplet, title=_("Data Entry"), - detached_width = 600, - detached_height = 450, + detached_width = 370, + detached_height = 425, )