2007-12-29 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DataViews/MyGrampsView.py: show matching surnames * src/plugins/OnThisDay.py: refinement * src/plugins/SameSurnames.py: changed name * src/plugins/DefaultGadgets.py: calendar calls quickreport * src/QuickReports.py: new function to call qr directly * src/Simple/_SimpleAccess.py: new func to format dates svn: r9633
This commit is contained in:
@@ -42,6 +42,7 @@ import PageView
|
||||
import ManagedWindow
|
||||
import ConfigParser
|
||||
import Utils
|
||||
from QuickReports import run_quick_report_by_name
|
||||
|
||||
AVAILABLE_GADGETS = {}
|
||||
GADGET_FILENAME = os.path.join(const.HOME_DIR,"gadgets.ini")
|
||||
@@ -340,6 +341,12 @@ class Gadget(object):
|
||||
self.gui.dbstate.change_active_person(person)
|
||||
return True # handled event
|
||||
elif link_type == 'Surname':
|
||||
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,
|
||||
'samesurnames',
|
||||
handle)
|
||||
return True
|
||||
return False # did not handle event
|
||||
|
||||
|
||||
Reference in New Issue
Block a user