Clean up of unused functions
svn: r1153
This commit is contained in:
parent
fd46a95c5b
commit
647f0df128
@ -67,7 +67,10 @@ class DisplayTrace:
|
|||||||
self.top.set_title(_('Internal Error - GRAMPS'))
|
self.top.set_title(_('Internal Error - GRAMPS'))
|
||||||
|
|
||||||
window.get_buffer().set_text(msg.getvalue())
|
window.get_buffer().set_text(msg.getvalue())
|
||||||
# self.top.run_and_close()
|
self.glade.signal_autoconnect('on_close_clicked',self.close)
|
||||||
|
|
||||||
|
def close(self,obj):
|
||||||
|
self.top.destroy()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -269,7 +269,6 @@ class Gramps:
|
|||||||
"on_canvas1_event" : self.pedigree_view.on_canvas1_event,
|
"on_canvas1_event" : self.pedigree_view.on_canvas1_event,
|
||||||
"on_contents_activate" : self.on_contents_activate,
|
"on_contents_activate" : self.on_contents_activate,
|
||||||
"on_default_person_activate" : self.on_default_person_activate,
|
"on_default_person_activate" : self.on_default_person_activate,
|
||||||
"on_delete_parents_clicked" : self.on_delete_parents_clicked,
|
|
||||||
"on_delete_person_clicked" : self.delete_person_clicked,
|
"on_delete_person_clicked" : self.delete_person_clicked,
|
||||||
"on_delete_place_clicked" : self.place_view.on_delete_clicked,
|
"on_delete_place_clicked" : self.place_view.on_delete_clicked,
|
||||||
"on_delete_source_clicked" : self.source_view.on_delete_clicked,
|
"on_delete_source_clicked" : self.source_view.on_delete_clicked,
|
||||||
@ -292,7 +291,6 @@ class Gramps:
|
|||||||
"on_pedigree1_activate" : self.on_pedigree1_activate,
|
"on_pedigree1_activate" : self.on_pedigree1_activate,
|
||||||
"on_person_list1_activate" : self.on_person_list1_activate,
|
"on_person_list1_activate" : self.on_person_list1_activate,
|
||||||
"on_person_list_button_press" : self.on_person_list_button_press,
|
"on_person_list_button_press" : self.on_person_list_button_press,
|
||||||
"on_person_list_select_row" : self.on_person_list_select_row,
|
|
||||||
"on_main_key_release_event" : self.on_main_key_release_event,
|
"on_main_key_release_event" : self.on_main_key_release_event,
|
||||||
"on_add_media_clicked" : self.media_view.create_add_dialog,
|
"on_add_media_clicked" : self.media_view.create_add_dialog,
|
||||||
"on_media_activate" : self.on_media_activate,
|
"on_media_activate" : self.on_media_activate,
|
||||||
@ -922,23 +920,6 @@ class Gramps:
|
|||||||
self.redisplay_person_list(p1)
|
self.redisplay_person_list(p1)
|
||||||
self.update_display(0)
|
self.update_display(0)
|
||||||
|
|
||||||
def on_delete_parents_clicked(self,obj):
|
|
||||||
if not self.active_parents:
|
|
||||||
return
|
|
||||||
|
|
||||||
self.active_parents.removeChild(self.active_person)
|
|
||||||
self.active_person.removeAltFamily(self.active_parents)
|
|
||||||
self.family_view.load_family()
|
|
||||||
|
|
||||||
def on_person_list_select_row(self,obj,row,b,c):
|
|
||||||
if row == obj.selection[0]:
|
|
||||||
person = self.db.getPerson(obj.get_row_data(row))
|
|
||||||
self.change_active_person(person)
|
|
||||||
|
|
||||||
def on_child_list_button_press(self,obj,event):
|
|
||||||
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
|
||||||
self.load_person(self.active_child)
|
|
||||||
|
|
||||||
def on_person_list_button_press(self,obj,event):
|
def on_person_list_button_press(self,obj,event):
|
||||||
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
||||||
self.load_person(self.active_person)
|
self.load_person(self.active_person)
|
||||||
|
Loading…
Reference in New Issue
Block a user