|
126 | 126 | #-------------------------------------------------------------------------
|
127 | 127 | import sys
|
128 | 128 | sys.path.append(os.path.abspath(os.path.dirname(__file__)))
|
129 |
| -from search_widget import SearchWidget, Popover, ListBoxRow, get_person_tooltip |
| 129 | +from search_widget import SearchWidget, Popover, ListBoxRow |
130 | 130 |
|
131 | 131 |
|
132 | 132 | #-------------------------------------------------------------------------
|
@@ -196,6 +196,14 @@ def __init__(self, pdata, dbstate, uistate, nav_group=0):
|
196 | 196 | self.define_print_actions()
|
197 | 197 | self.uistate.connect('font-changed', self.font_changed)
|
198 | 198 |
|
| 199 | + def on_delete(self): |
| 200 | + """ |
| 201 | + Method called on shutdown. |
| 202 | + See PageView class (../gramps/gui/views/pageview.py). |
| 203 | + """ |
| 204 | + # stop search to allow close app properly |
| 205 | + self.graph_widget.search_widget.stop_search() |
| 206 | + |
199 | 207 | def font_changed(self):
|
200 | 208 | self.graph_widget.font_changed(self.get_active())
|
201 | 209 | #self.goto_handle(None)
|
@@ -1135,14 +1143,10 @@ def load_bookmarks(self):
|
1135 | 1143 | person_image = self.get_person_image(person, 32, 32)
|
1136 | 1144 | if person_image:
|
1137 | 1145 | hbox.pack_start(person_image, False, True, 2)
|
1138 |
| - row = ListBoxRow(description=bkmark, label=name) |
| 1146 | + row = ListBoxRow(person_handle=bkmark, label=name, |
| 1147 | + db=self.dbstate.db) |
1139 | 1148 | row.add(hbox)
|
1140 | 1149 |
|
1141 |
| - # add tooltip |
1142 |
| - tooltip = get_person_tooltip(person, self.dbstate.db) |
1143 |
| - if tooltip: |
1144 |
| - row.set_tooltip_text(tooltip) |
1145 |
| - |
1146 | 1150 | if present is not None:
|
1147 | 1151 | found = True
|
1148 | 1152 | count += 1
|
|
0 commit comments