From 4fa4ce11565eaa0eb74726258f621101bbca284d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 24 Aug 2007 22:12:06 +0000 Subject: [PATCH] * src/Editors/_EditNote.py (EditNote._setup_fields): privacy button for notes (bug #1148) * src/glade/gramps.glade: privacy button for notes 2007-08-24 Don Allingham svn: r8861 --- ChangeLog | 5 ++++ src/Editors/_EditNote.py | 4 +++ src/glade/gramps.glade | 65 +++++++++++++++++++++++++++++----------- 3 files changed, 57 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index ecf8384d4..a7c94009d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-24 Don Allingham + * src/Editors/_EditNote.py (EditNote._setup_fields): privacy button + for notes (bug #1148) + * src/glade/gramps.glade: privacy button for notes + 2007-08-24 Don Allingham * src/GrampsDbUtils/_WriteGedcom.py: Generate LONG and LATI * src/docgen/Makefile.am: replace LPRDoc with GtkPrint diff --git a/src/Editors/_EditNote.py b/src/Editors/_EditNote.py index 04f7e4a53..1e027675f 100644 --- a/src/Editors/_EditNote.py +++ b/src/Editors/_EditNote.py @@ -171,6 +171,10 @@ class EditNote(EditPrimary): self.obj.get_marker, self.db.readonly, self.db.get_marker_types()) + + self.priv = PrivacyButton( + self.top.get_widget("private"), + self.obj, self.db.readonly) def _connect_signals(self): """Connects any signals that need to be connected. diff --git a/src/glade/gramps.glade b/src/glade/gramps.glade index 2b4ce5185..091b816c7 100644 --- a/src/glade/gramps.glade +++ b/src/glade/gramps.glade @@ -15356,7 +15356,7 @@ Very High 6 True 2 - 4 + 5 False 6 6 @@ -15482,22 +15482,6 @@ Very High - - - True - False - True - True - - - 3 - 4 - 0 - 1 - fill - - - True @@ -15519,6 +15503,53 @@ Very High + + + + True + False + True + True + + + 3 + 5 + 0 + 1 + fill + + + + + + True + True + GTK_RELIEF_NONE + True + False + False + + + + True + 1 + gtk-dialog-authentication + 0.5 + 0.5 + 0 + 0 + + + + + 4 + 5 + 1 + 2 + fill + + + 0