From ca3dfd219817326d33dfece3074005da4fa094b9 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 8 Mar 2002 02:14:31 +0000 Subject: [PATCH] Autocompletion and transation bug fixes svn: r823 --- src/EditPerson.py | 5 +++-- src/EventEdit.py | 3 ++- src/Makefile.in | 2 +- src/Plugins.py | 6 +++--- src/plugins.glade | 8 ++++---- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/EditPerson.py b/src/EditPerson.py index 780f16dc3..b27c66aed 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -270,7 +270,8 @@ class EditPerson: self.ntype_field.set_popdown_strings(types) self.autotype = AutoComp.AutoEntry(self.ntype_field.entry,types) self.ntype_field.entry.set_text(_(self.pname.getType())) - + t = self.pname.getType() + if person.getGender() == Person.male: self.is_male.set_active(1) elif person.getGender() == Person.female: @@ -1372,7 +1373,7 @@ def update_ord(func,ord,date,temple,stat,place): # #------------------------------------------------------------------------- def disp_name(name): - return [name.getName(),name.getType(),Utils.get_detail_flags(name)] + return [name.getName(),_(name.getType()),Utils.get_detail_flags(name)] #------------------------------------------------------------------------- # diff --git a/src/EventEdit.py b/src/EventEdit.py index 6ccaef3ce..914406519 100644 --- a/src/EventEdit.py +++ b/src/EventEdit.py @@ -99,7 +99,8 @@ class EventEditor: self.window.editable_enters(self.cause_field); self.window.editable_enters(self.descr_field); - AutoComp.AutoCombo(self.event_menu,list) + AutoComp.AutoEntry(self.event_menu.entry,list) + self.event_menu.set_popdown_strings(list) AutoComp.AutoEntry(self.place_field,self.pmap.keys()) if event != None: diff --git a/src/Makefile.in b/src/Makefile.in index 47b1e6a6b..c974028b7 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -12,7 +12,7 @@ p22_inc = @P22_INCLUDES@ pycomp = ${srcdir}/py-compile CFLAGS = -fPIC -shared -O @CFLAGS@ @CPPFLAGS@ -I@includedir@ LDFLAGS = @LDFLAGS@ -L@libdir@ @LIBS@ -LANG = sv de fr es it +LANG = sv de fr es it pt_BR @SET_MAKE@ diff --git a/src/Plugins.py b/src/Plugins.py index a872a5d83..4d429bdaa 100644 --- a/src/Plugins.py +++ b/src/Plugins.py @@ -108,7 +108,7 @@ class ReportPlugins: "destroy_passed_object" : Utils.destroy_passed_object }) - tree = self.dialog.get_widget("tree1") + tree = self.dialog.get_widget("tree") self.run_tool = None build_tree(tree,_reports,self.on_node_selected) @@ -136,7 +136,7 @@ class ReportPlugins: i,m = gtk.create_pixmap_from_xpm_d(gtk.GtkWindow(),None,xpm) img.set(i,m) - self.dialog.get_widget("report_title").set_text(title) + self.dialog.get_widget("title").set_text(title) self.run_tool = obj.get_data(TASK) #------------------------------------------------------------------------- @@ -183,7 +183,7 @@ class ToolPlugins: title = obj.get_data(TITLE) self.dialog.get_widget("description").set_text(doc) - self.dialog.get_widget("pluginTitle").set_text(title) + self.dialog.get_widget("title").set_text(title) self.run_tool = obj.get_data(TASK) diff --git a/src/plugins.glade b/src/plugins.glade index bfb43fc94..c5bc1e4c2 100644 --- a/src/plugins.glade +++ b/src/plugins.glade @@ -147,7 +147,7 @@ GtkPixmap - pixmap1 + image gramps.xpm 0 0.5 @@ -163,7 +163,7 @@ GtkLabel - label60 + title GTK_JUSTIFY_CENTER False @@ -327,7 +327,7 @@ GtkTree - tree1 + tree 5 250 300 @@ -379,7 +379,7 @@ GtkLabel - report_title + title GTK_JUSTIFY_CENTER False