From 4aa708e30e4b4bafcbdf427e54ed739591581d58 Mon Sep 17 00:00:00 2001 From: Richard Taylor Date: Wed, 6 Apr 2005 15:25:16 +0000 Subject: [PATCH] 2005-04-06 Richard Taylor * src/plugins/FilterEditor.py: Added source IDs into the source combobox. svn: r4311 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/FilterEditor.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ecbee79ab..b89bef072 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-04-06 Richard Taylor + * src/plugins/FilterEditor.py: Added source IDs into the source combobox. + 2005-04-06 Richard Taylor * src/GenericFilter.py: Added HasSourceOf rule * src/plugins/FilterEditor.py: Added MySource combobox for selecting source IDs. diff --git a/gramps2/src/plugins/FilterEditor.py b/gramps2/src/plugins/FilterEditor.py index ca901652b..9cca8b25e 100644 --- a/gramps2/src/plugins/FilterEditor.py +++ b/gramps2/src/plugins/FilterEditor.py @@ -153,7 +153,7 @@ class MySource(gtk.ComboBox): for src_handle in self.db.get_source_handles(sort_handles=True): src = self.db.get_source_from_handle(src_handle) self.slist.append(src.get_gramps_id()) - store.append(row=[src.get_title()]) + store.append(row=["%s [%s]" % (src.get_title(),src.get_gramps_id())]) self.set_active(0) self.show()