6312: Rename Gramplets category to Dashboard

svn: r21048
This commit is contained in:
Nick Hall 2013-01-10 10:50:25 +00:00
parent f8f152c1f0
commit dd296535de
3 changed files with 10 additions and 10 deletions

View File

@ -188,7 +188,7 @@ register('interface.clipboard-height', 300)
register('interface.clipboard-width', 300) register('interface.clipboard-width', 300)
register('interface.dont-ask', False) register('interface.dont-ask', False)
register('interface.view-categories', register('interface.view-categories',
["Gramplets", "People", "Relationships", "Families", ["Dashboard", "People", "Relationships", "Families",
"Ancestry", "Events", "Places", "Geography", "Sources", "Ancestry", "Events", "Places", "Geography", "Sources",
"Citations", "Repositories", "Media", "Notes"]) "Citations", "Repositories", "Media", "Notes"])
register('interface.edit-filter-width', 500) register('interface.edit-filter-width', 500)

View File

@ -40,16 +40,16 @@ from gramps.gui.views.pageview import PageView
from gramps.gen.ggettext import gettext as _ from gramps.gen.ggettext import gettext as _
from gramps.gui.widgets.grampletpane import GrampletPane from gramps.gui.widgets.grampletpane import GrampletPane
class GrampletView(PageView): class DashboardView(PageView):
""" """
GrampletView interface DashboardView interface
""" """
def __init__(self, pdata, dbstate, uistate): def __init__(self, pdata, dbstate, uistate):
""" """
Create a GrampletView, with the current dbstate and uistate Create a GrampletView, with the current dbstate and uistate
""" """
PageView.__init__(self, _('Gramplets'), pdata, dbstate, uistate) PageView.__init__(self, _('Dashboard'), pdata, dbstate, uistate)
self.ui_def = '''<ui> self.ui_def = '''<ui>
<popup name="GrampletPopup"> <popup name="GrampletPopup">
<menuitem action="AddGramplet"/> <menuitem action="AddGramplet"/>
@ -72,7 +72,7 @@ class GrampletView(PageView):
the base class. Returns a gtk container widget. the base class. Returns a gtk container widget.
""" """
# load the user's gramplets and set columns, etc # load the user's gramplets and set columns, etc
self.widget = GrampletPane("Gramplets_grampletview_gramplets", self, self.widget = GrampletPane("Gramplets_dashboardview_gramplets", self,
self.dbstate, self.uistate) self.dbstate, self.uistate)
return self.widget return self.widget

View File

@ -61,17 +61,17 @@ order = START,
) )
register(VIEW, register(VIEW,
id = 'grampletview', id = 'dashboardview',
name = _("Gramplets"), name = _("Dashboard"),
description = _("The view showing Gramplets"), description = _("The view showing Gramplets"),
version = '1.0', version = '1.0',
gramps_target_version = '4.1', gramps_target_version = '4.1',
status = STABLE, status = STABLE,
fname = 'grampletview.py', fname = 'dashboardview.py',
authors = ["The Gramps project"], authors = ["The Gramps project"],
authors_email = ["http://gramps-project.org"], authors_email = ["http://gramps-project.org"],
category = ("Gramplets", _("Gramplets")), category = ("Dashboard", _("Dashboard")),
viewclass = 'GrampletView', viewclass = 'DashboardView',
order = START, order = START,
) )