Fix for running quick view gramplet; disable unnecessary signals reception for some change-actives
svn: r13519
This commit is contained in:
parent
b31acf707d
commit
c6a51db8d3
@ -38,6 +38,9 @@ class AgeStatsGramplet(Gramplet):
|
|||||||
self.max_father_diff = 60
|
self.max_father_diff = 60
|
||||||
self.chart_width = 60
|
self.chart_width = 60
|
||||||
|
|
||||||
|
def post_init(self):
|
||||||
|
self.disconnect("active-changed")
|
||||||
|
|
||||||
def build_options(self):
|
def build_options(self):
|
||||||
from gen.plug.menu import NumberOption
|
from gen.plug.menu import NumberOption
|
||||||
self.add_option(NumberOption(_("Max age"),
|
self.add_option(NumberOption(_("Max age"),
|
||||||
|
@ -100,7 +100,8 @@ class QuickViewGramplet(Gramplet):
|
|||||||
type_list.add_item(item[0], item[1])
|
type_list.add_item(item[0], item[1])
|
||||||
# Add particular lists:
|
# Add particular lists:
|
||||||
qv_list = get_quick_report_list(CATEGORY_QR_PERSON)
|
qv_list = get_quick_report_list(CATEGORY_QR_PERSON)
|
||||||
list_option = EnumeratedListOption(_("Quick Views"), qv_list[0][2])
|
list_option = EnumeratedListOption(_("Quick Views"),
|
||||||
|
qv_list[0].id)
|
||||||
for pdata in qv_list:
|
for pdata in qv_list:
|
||||||
list_option.add_item(pdata.id, pdata.name)
|
list_option.add_item(pdata.id, pdata.name)
|
||||||
self.add_option(type_list)
|
self.add_option(type_list)
|
||||||
|
@ -54,6 +54,9 @@ class StatsGramplet(Gramplet):
|
|||||||
self.set_text(_("No Family Tree loaded."))
|
self.set_text(_("No Family Tree loaded."))
|
||||||
self.set_tooltip(_("Double-click item to see matches"))
|
self.set_tooltip(_("Double-click item to see matches"))
|
||||||
|
|
||||||
|
def post_init(self):
|
||||||
|
self.disconnect("active-changed")
|
||||||
|
|
||||||
def db_changed(self):
|
def db_changed(self):
|
||||||
self.dbstate.db.connect('person-add', self.update)
|
self.dbstate.db.connect('person-add', self.update)
|
||||||
self.dbstate.db.connect('person-edit', self.update)
|
self.dbstate.db.connect('person-edit', self.update)
|
||||||
|
Loading…
Reference in New Issue
Block a user