From e7b9686861f7a6310049b1b45ef17b2f01ed6fe7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 6 Mar 2003 01:12:21 +0000 Subject: [PATCH] title fixes in dialog boxes svn: r1326 --- src/AddSpouse.py | 4 +--- src/Marriage.py | 7 ++----- src/dialog.glade | 8 ++++---- src/edit_person.glade | 10 +++++----- 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/src/AddSpouse.py b/src/AddSpouse.py index b24e97d2d..ae709dfd5 100644 --- a/src/AddSpouse.py +++ b/src/AddSpouse.py @@ -95,9 +95,7 @@ class AddSpouse: self.rel_combo.set_popdown_strings(const.familyRelations) title = _("Choose Spouse/Partner of %s") % GrampsCfg.nameof(person) - spouse_title = self.glade.get_widget("spouseTitle") - spouse_title.set_text('%s' % title) - spouse_title.set_use_markup(gtk.TRUE) + Utils.set_title_label(self.glade,title) self.glade.signal_autoconnect({ "on_select_spouse_clicked" : self.select_spouse_clicked, diff --git a/src/Marriage.py b/src/Marriage.py index b5948d7ec..5413c9ff7 100644 --- a/src/Marriage.py +++ b/src/Marriage.py @@ -77,7 +77,6 @@ class Marriage: self.pmap[p[0]] = key self.top = gtk.glade.XML(const.marriageFile,"marriageEditor") - Utils.set_title_label(self.top,_('Marriage/Relationship Editor')) top_window = self.get_widget("marriageEditor") @@ -103,12 +102,10 @@ class Marriage: "on_marriageDeleteBtn_clicked" : self.on_delete_clicked, }) - text_win = self.get_widget("marriageTitle") title = _("%s and %s") % (GrampsCfg.nameof(family.getFather()), GrampsCfg.nameof(family.getMother())) - - text_win.set_text('%s' % title) - text_win.set_use_markup(gtk.TRUE) + + Utils.set_title_label(self.top,title) self.event_list = self.get_widget("marriageEventList") diff --git a/src/dialog.glade b/src/dialog.glade index 380f5b613..edb618d96 100644 --- a/src/dialog.glade +++ b/src/dialog.glade @@ -2847,7 +2847,7 @@ True - _Given: + _Given name: True False GTK_JUSTIFY_CENTER @@ -2875,7 +2875,7 @@ True - _Last: + _Family Name: True False GTK_JUSTIFY_CENTER @@ -2903,7 +2903,7 @@ True - _Suffix: + Suffi_x: True False GTK_JUSTIFY_CENTER @@ -3008,7 +3008,7 @@ True - _Prefix: + Family _Prefix: True False GTK_JUSTIFY_CENTER diff --git a/src/edit_person.glade b/src/edit_person.glade index 705518cf9..d56a3919b 100644 --- a/src/edit_person.glade +++ b/src/edit_person.glade @@ -127,7 +127,7 @@ True - _Given: + _Given name: True False GTK_JUSTIFY_CENTER @@ -152,7 +152,7 @@ True - _Last: + _Family name: True False GTK_JUSTIFY_CENTER @@ -177,7 +177,7 @@ True - _Prefix: + Family _prefix: True False GTK_JUSTIFY_CENTER @@ -277,7 +277,7 @@ True - T_ype: + T_ype True False GTK_JUSTIFY_CENTER @@ -737,7 +737,7 @@ True True - _female + fema_le True GTK_RELIEF_NORMAL False