2006-11-04 Don Allingham <don@gramps-project.org>

* src/GrampsCfg.py: warn that chaning date format will not take
	effect until next start
	* src/DisplayState.py: remove redundant code



svn: r7552
This commit is contained in:
Don Allingham 2006-11-05 05:20:35 +00:00
parent c75b1315a7
commit 118025105e
3 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2006-11-04 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: warn that chaning date format will not take
effect until next start
* src/DisplayState.py: remove redundant code
2006-11-04 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/plugins/ImportGeneWeb.py: Bugfixes (convert to new api);
Add support for some more geneweb features

View File

@ -159,9 +159,6 @@ class RecentDocsMenu:
self.fileopen = fileopen
self.state = state
menu_item = self.uimanager.get_widget('/MenuBar/FileMenu/OpenRecent')
self.uistate.set_open_recent_menu(menu_item.get_submenu())
def load(self,item):
name = item.get_path()
dbtype = item.get_mime()

View File

@ -433,8 +433,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
if active >= len(formats):
active = 0
obox.set_active(active)
obox.connect('changed',
lambda obj: Config.set(Config.DATE_FORMAT, obj.get_active()))
obox.connect('changed', self.date_format_changed)
lwidget = BasicLabel("%s: " % _('Date format'))
table.attach(lwidget, 0, 1, 0, 1, yoptions=0)
@ -446,7 +445,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
obox.append_text(item)
obox.set_active(Config.get(Config.SURNAME_GUESSING))
obox.connect('changed',
lambda obj: Config.set(Config.SURNAME_GUESSING, obj.get_active()))
lambda obj: Config.set(Config.SURNAME_GUESSING,
obj.get_active()))
lwidget = BasicLabel("%s: " % _('Surname Guessing'))
table.attach(lwidget, 0, 1, 1, 2, yoptions=0)
@ -478,6 +478,14 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
# status bar
def date_format_changed(self, obj):
from QuestionDialog import OkDialog
Config.set(Config.DATE_FORMAT, obj.get_active())
OkDialog(_('Change is not immediate'),
_('Changing the data format will not take '
'effect until the next time GRAMPS is started.'))
def add_behavior_panel(self):
table = gtk.Table(3,8)
table.set_border_width(12)