2006-06-20 Don Allingham <don@gramps-project.org>
* src/Editors/_EditEvent.py: focus on date on open * src/Editors/_EditEventRef.py: focus on date on open * src/UndoHistory.py: don't attempt to unregister with the window manager, since not registered to begin with svn: r6926
This commit is contained in:
parent
03474fa6e5
commit
bb9b456824
@ -1,3 +1,9 @@
|
|||||||
|
2006-06-20 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/Editors/_EditEvent.py: focus on date on open
|
||||||
|
* src/Editors/_EditEventRef.py: focus on date on open
|
||||||
|
* src/UndoHistory.py: don't attempt to unregister with the window
|
||||||
|
manager, since not registered to begin with
|
||||||
|
|
||||||
2006-06-20 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2006-06-20 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/DisplayState.py (modify_statusbar): Only calc relationship
|
* src/DisplayState.py (modify_statusbar): Only calc relationship
|
||||||
of active person if active person is set
|
of active person if active person is set
|
||||||
|
@ -144,13 +144,15 @@ class EditEvent(EditPrimary):
|
|||||||
self.obj.get_type,
|
self.obj.get_type,
|
||||||
custom_values=self.get_custom_events())
|
custom_values=self.get_custom_events())
|
||||||
|
|
||||||
|
date_entry = self.top.get_widget("eventDate")
|
||||||
self.date_field = MonitoredDate(
|
self.date_field = MonitoredDate(
|
||||||
self.top.get_widget("eventDate"),
|
date_entry,
|
||||||
self.top.get_widget("date_stat"),
|
self.top.get_widget("date_stat"),
|
||||||
self.obj.get_date_object(),
|
self.obj.get_date_object(),
|
||||||
self.uistate,
|
self.uistate,
|
||||||
self.track,
|
self.track,
|
||||||
self.db.readonly)
|
self.db.readonly)
|
||||||
|
date_entry.grab_focus()
|
||||||
|
|
||||||
def _create_tabbed_pages(self):
|
def _create_tabbed_pages(self):
|
||||||
"""
|
"""
|
||||||
|
@ -143,14 +143,17 @@ class EditEventRef(EditReference):
|
|||||||
self.source.get_type,
|
self.source.get_type,
|
||||||
custom_values=self.get_custom_events())
|
custom_values=self.get_custom_events())
|
||||||
|
|
||||||
|
date_entry = self.top.get_widget("eer_date")
|
||||||
self.date_check = MonitoredDate(
|
self.date_check = MonitoredDate(
|
||||||
self.top.get_widget("eer_date"),
|
date_entry,
|
||||||
self.top.get_widget("eer_date_stat"),
|
self.top.get_widget("eer_date_stat"),
|
||||||
self.source.get_date_object(),
|
self.source.get_date_object(),
|
||||||
self.uistate,
|
self.uistate,
|
||||||
self.track,
|
self.track,
|
||||||
self.db.readonly)
|
self.db.readonly)
|
||||||
|
|
||||||
|
date_entry.grab_focus()
|
||||||
|
|
||||||
def _create_tabbed_pages(self):
|
def _create_tabbed_pages(self):
|
||||||
"""
|
"""
|
||||||
Creates the notebook tabs and inserts them into the main
|
Creates the notebook tabs and inserts them into the main
|
||||||
|
@ -103,13 +103,13 @@ class UndoHistory(ManagedWindow.ManagedWindow):
|
|||||||
self._build_model()
|
self._build_model()
|
||||||
self._update_ui()
|
self._update_ui()
|
||||||
|
|
||||||
self.db_change_key = dbstate.connect('database-changed',self._close)
|
self.db_change_key = dbstate.connect('database-changed',self.close)
|
||||||
self.selection.connect('changed',self._selection_changed)
|
self.selection.connect('changed',self._selection_changed)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def _close(self,obj):
|
def close(self,obj=None):
|
||||||
self.dbstate.disconnect(self.db_change_key)
|
self.dbstate.disconnect(self.db_change_key)
|
||||||
self.close()
|
self.window.destroy()
|
||||||
|
|
||||||
def _selection_changed(self,obj):
|
def _selection_changed(self,obj):
|
||||||
(model,node) = self.selection.get_selected()
|
(model,node) = self.selection.get_selected()
|
||||||
@ -146,7 +146,7 @@ class UndoHistory(ManagedWindow.ManagedWindow):
|
|||||||
|
|
||||||
def _response(self,obj,response_id):
|
def _response(self,obj,response_id):
|
||||||
if response_id == gtk.RESPONSE_CLOSE:
|
if response_id == gtk.RESPONSE_CLOSE:
|
||||||
self.close()
|
self.close(obj)
|
||||||
elif response_id == gtk.RESPONSE_REJECT:
|
elif response_id == gtk.RESPONSE_REJECT:
|
||||||
(model,node) = self.selection.get_selected()
|
(model,node) = self.selection.get_selected()
|
||||||
if not node:
|
if not node:
|
||||||
@ -169,6 +169,8 @@ class UndoHistory(ManagedWindow.ManagedWindow):
|
|||||||
self._move(nsteps)
|
self._move(nsteps)
|
||||||
elif response_id == gtk.RESPONSE_APPLY:
|
elif response_id == gtk.RESPONSE_APPLY:
|
||||||
self._clear_clicked()
|
self._clear_clicked()
|
||||||
|
elif response_id == gtk.RESPONSE_DELETE_EVENT:
|
||||||
|
self.close(obj)
|
||||||
|
|
||||||
def build_menu_names(self,obj):
|
def build_menu_names(self,obj):
|
||||||
return (self.title,None)
|
return (self.title,None)
|
||||||
|
Loading…
Reference in New Issue
Block a user