* 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:
@ -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()
|
||||
|
Reference in New Issue
Block a user