diff --git a/src/glade/editeventref.glade b/src/glade/editeventref.glade index 605baf55c..7e984e57d 100644 --- a/src/glade/editeventref.glade +++ b/src/glade/editeventref.glade @@ -10,489 +10,458 @@ True - + + True + 0 + 6 + 3 + <b>Reference information</b> + True + True + center + + + False + False + 1 + + + + True True + 6 - + True - True - True - 6 + 12 + 4 + 12 + 6 - + + True + 0 + 3 + _Role: + True + center + eer_role_combo + + + GTK_FILL + + + + + True True - 6 + True + none - + True - 12 - 4 - 12 - 6 - - - True - 0 - 3 - _Role: - True - center - eer_role_combo - - - GTK_FILL - - - - - - True - True - True - none - - - True - gramps-unlock - 1 - - - - - 3 - 4 - GTK_FILL - - - - - - True - - - 1 - 3 - - - + gramps-unlock + 1 - - - True - 6 - - - True - gtk-file - 1 - - - 0 - - - - - True - <b>General</b> - True - center - - - False - False - 1 - - - - - False - - + + 3 + 4 + GTK_FILL + + - - + + True - <b>Reference information</b> - True + + 1 + 3 + + - - True - True - - - + + True - True - 6 - True - 6 - - - True - True - False - - - True - 12 - 7 - 3 - 12 - 6 - - - True - 0 - _Event type: - True - center - eer_type_combo - - - GTK_FILL - - - - - - True - 0 - _Date: - True - center - eer_date_entry - - - 1 - 2 - GTK_FILL - - - - - - True - 0 - De_scription: - True - center - eer_description - - - 4 - 5 - GTK_FILL - - - - - - True - 0 - 3 - _Place: - True - center - share_place - - - 3 - 4 - GTK_FILL - - - - - - True - 0 - _ID: - True - gid - - - 2 - 3 - GTK_FILL - - - - - - True - - - True - 0 - - - 0 - - - - - True - True - True - none - - - True - - - - - False - False - 1 - - - - - 1 - 2 - 3 - 4 - GTK_FILL - - - - - - True - True - True - none - - - True - - - - - 2 - 3 - 3 - 4 - GTK_FILL - - - - - - True - True - True - none - - - True - gramps-date - - - - - 2 - 3 - 1 - 2 - GTK_FILL - - - - - - True - True - True - none - - - True - gramps-unlock - 1 - - - - - 2 - 3 - 1 - 4 - GTK_FILL - - - - - - True - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - - - 1 - 2 - 2 - 3 - - - - - - True - True - - - - 1 - 2 - 4 - 5 - - - - - - 6 - 12 - - - True - 0 - gtk-dialog-warning - 6 - - - False - False - 0 - - - - - 500 - True - 0 - 4 - <b>Note:</b> Any changes in the shared event information will be reflected in the event itself, for all participants in the event. - True - fill - True - - - 1 - - - - - 3 - 5 - 6 - GTK_SHRINK - - - - - True - True - - - - 1 - 2 - 1 - 2 - - - - - - - - - - - - - - - - - - - - - False - - - - - True - 6 - - - True - gtk-file - 1 - - - 0 - - - - - True - <b>General</b> - True - center - - - False - False - 1 - - - - - False - - - - - - - True - <b>Shared information</b> - True - - + <b>General</b> + True - True - True + False - 1 + 2 + + + + + True + True + 6 + True + 6 + + + True + True + False + + + True + 12 + 7 + 3 + 12 + 6 + + + True + 0 + _Event type: + True + center + eer_type_combo + + + GTK_FILL + + + + + + True + 0 + _Date: + True + center + eer_date_entry + + + 1 + 2 + GTK_FILL + + + + + + True + 0 + De_scription: + True + center + eer_description + + + 4 + 5 + GTK_FILL + + + + + + True + 0 + 3 + _Place: + True + center + share_place + + + 3 + 4 + GTK_FILL + + + + + + True + 0 + _ID: + True + gid + + + 2 + 3 + GTK_FILL + + + + + + True + + + True + 0 + + + 0 + + + + + True + True + True + none + + + True + + + + + False + False + 1 + + + + + 1 + 2 + 3 + 4 + GTK_FILL + + + + + + True + True + True + none + + + True + + + + + 2 + 3 + 3 + 4 + GTK_FILL + + + + + + True + True + True + none + + + True + gramps-date + + + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + True + none + + + True + gramps-unlock + 1 + + + + + 2 + 3 + 1 + 4 + GTK_FILL + + + + + + True + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + + + 1 + 2 + 2 + 3 + + + + + + True + True + + + + 1 + 2 + 4 + 5 + + + + + + 6 + 12 + + + True + 0 + gtk-dialog-warning + 6 + + + False + False + 0 + + + + + 500 + True + 0 + 4 + <b>Note:</b> Any changes in the shared event information will be reflected in the event itself, for all participants in the event. + True + fill + True + + + 1 + + + + + 3 + 5 + 6 + GTK_SHRINK + + + + + True + True + + + + 1 + 2 + 1 + 2 + + + + + + + + + + + + + + + + + + + + + False + + + + + True + 6 + + + True + gtk-file + 1 + + + 0 + + + + + True + <b>General</b> + True + center + + + False + False + 1 + + + + + False + + + + + + + True + <b>Shared information</b> + True + + + + + 3 @@ -554,9 +523,9 @@ - help - cancel - ok + help + cancel + ok diff --git a/src/gui/editors/editeventref.py b/src/gui/editors/editeventref.py index c7faca611..9c07a76ef 100644 --- a/src/gui/editors/editeventref.py +++ b/src/gui/editors/editeventref.py @@ -3,6 +3,7 @@ # # Copyright (C) 2000-2006 Donald N. Allingham # 2009 Gary Burton +# 2011 Michiel D. Nauta # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -82,6 +83,11 @@ class EditEventRef(EditReference): self.primtab = RefTab(self.dbstate, self.uistate, self.track, _('_General'), tblref) + def _post_init(self): + date = self.top.get_object('eer_date_entry') + if not date.get_text_length(): + date.grab_focus(); + def _init_event(self): if not self.db.readonly: self.commit_event = self.db.commit_personal_event diff --git a/src/gui/editors/editsourceref.py b/src/gui/editors/editsourceref.py index 6615adb72..855ffa6f5 100644 --- a/src/gui/editors/editsourceref.py +++ b/src/gui/editors/editsourceref.py @@ -3,6 +3,7 @@ # # Copyright (C) 2000-2006 Donald N. Allingham # 2009 Gary Burton +# 2011 Michiel D. Nauta / MathieuMD # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -80,6 +81,14 @@ class EditSourceRef(EditReference): self.primtab = RefTab(self.dbstate, self.uistate, self.track, _('General'), tblref) + def _post_init(self): + title = self.top.get_object('title') + volume = self.top.get_object('volume') + if not title.get_text_length(): + title.grab_focus(); + elif not volume.get_text_length(): + volume.grab_focus(); + def _connect_signals(self): self.define_ok_button(self.top.get_object('ok'),self.ok_clicked) self.define_cancel_button(self.top.get_object('cancel'))