* src/ViewManager.py (preferences_activate): Use uistate to emit.

* src/DisplayState.py (DisplayState.__signals__): Add new signal.
	* src/GrampsCfg.py (cb_name_changed): Use uistate to emit signal.


svn: r7265
This commit is contained in:
Alex Roitman
2006-08-25 23:46:19 +00:00
parent 9081b54202
commit 2e34d583c8
4 changed files with 16 additions and 18 deletions

View File

@@ -46,7 +46,6 @@ from RelLib import Name
import ManagedWindow
from GrampsWidgets import *
import QuestionDialog
from GrampsDb import GrampsDBCallback
#-------------------------------------------------------------------------
#
@@ -92,18 +91,13 @@ def get_researcher():
#
#
#-------------------------------------------------------------------------
class GrampsPreferences(ManagedWindow.ManagedWindow,GrampsDBCallback):
__signals__ = {
'nameformat-changed': None,
}
class GrampsPreferences(ManagedWindow.ManagedWindow):
def __init__(self, uistate, dbstate):
GrampsDBCallback.__init__(self)
ManagedWindow.ManagedWindow.__init__(self,uistate,[],GrampsPreferences)
self.dbstate = dbstate
tlabel = gtk.Label()
self.set_window(
gtk.Dialog(_('Preferences'),
@@ -351,7 +345,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow,GrampsDBCallback):
new_idx = the_list.get_value(the_iter,COL_NUM)
Config.set(Config.NAME_FORMAT,new_idx)
_nd.set_default_format(new_idx)
self.emit('nameformat-changed')
self.uistate.emit('nameformat-changed')
def cb_format_tree_select(self, tree_selection):
"""