* src/Sources.py: (SourceSelector.on_help_clicked,

SourceEditor.on_help_clicked): Add functions.
* src/srcsel.glade: Add Help buttons to dialogs.
* src/places.glade: Add Help buttons to dialogs.
* src/EditSource.py (on_help_clicked): Add function.
* src/EditPlace.py (on_help_clicked): Add function;
(__init__): Make the dialog modal and a transient for its parent;
* src/PlaceView.py: Pass the window to the EditPlace class.


svn: r2352
This commit is contained in:
Alex Roitman
2003-11-19 18:00:58 +00:00
parent 02cded3948
commit 9ec87fc160
9 changed files with 96 additions and 19 deletions

View File

@ -26,6 +26,7 @@
#
#-------------------------------------------------------------------------
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -86,6 +87,7 @@ class EditSource:
"on_addphoto_clicked" : self.gallery.on_add_photo_clicked,
"on_deletephoto_clicked" : self.gallery.on_delete_photo_clicked,
"on_edit_properties_clicked": self.gallery.popup_change_description,
"on_sourceEditor_help_clicked" : self.on_help_clicked,
})
if self.source.getId() == "":
@ -97,11 +99,16 @@ class EditSource:
self.display_references()
self.top.show()
val = self.top.run()
if val == gtk.RESPONSE_OK:
self.val = self.top.run()
if self.val == gtk.RESPONSE_OK:
self.on_source_apply_clicked()
self.top.destroy()
def on_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','adv-src')
self.val = self.top.run()
def close(self,obj):
self.gallery.close()
self.top.destroy()