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:
parent
c75b1315a7
commit
118025105e
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user