* src/Simple/_SimpleTable.py:
added callback for click/doubleclick manual override for rows added numeric sorting * src/QuickReports.py: added run_quick_report_by_name_direct that allows one quick report to run another * src/plugins/DefaultGramplets.py: made stats gramplet show details when drilling down with double-click * src/plugins/SameSurnames.py: allow running by string rather than person object * src/DataViews/GrampletView.py: added Filter type of link; fixed bug in drag and drop from earlier option infrastructure * src/plugins/FilterByName.py: quick report that runs a filter by name 2008-03-04 Douglas S. Blank <dblank@cs.brynmawr.edu> svn: r10188
This commit is contained in:
@ -428,6 +428,14 @@ class Gramplet(object):
|
||||
'samesurnames',
|
||||
handle)
|
||||
return True
|
||||
elif link_type == 'Filter':
|
||||
if event.button == 1: # left mouse
|
||||
if event.type == gtk.gdk._2BUTTON_PRESS: # double
|
||||
run_quick_report_by_name(self.gui.dbstate,
|
||||
self.gui.uistate,
|
||||
'filterbyname',
|
||||
handle)
|
||||
return True
|
||||
return False # did not handle event
|
||||
|
||||
def set_options(self, option_dict):
|
||||
@ -902,7 +910,8 @@ class GrampletView(PageView.PageView):
|
||||
"""
|
||||
button = context.get_source_widget()
|
||||
hbox = button.get_parent()
|
||||
mainframe = hbox.get_parent()
|
||||
mframe = hbox.get_parent()
|
||||
mainframe = mframe.get_parent() # actually a vbox
|
||||
rect = source.get_allocation()
|
||||
sx, sy = rect.width, rect.height
|
||||
# first, find column:
|
||||
|
Reference in New Issue
Block a user