Fix configuration problem in Gramplet View

svn: r16287
This commit is contained in:
Nick Hall 2010-12-15 19:40:27 +00:00
parent 205b1f107b
commit 5bb08835d7
2 changed files with 4 additions and 3 deletions

View File

@ -152,7 +152,7 @@ class Workspace(object):
eb = gtk.EventBox() eb = gtk.EventBox()
eb.connect('button-press-event', self._gramplet_button_press) eb.connect('button-press-event', self._gramplet_button_press)
gramplet_pane = GrampletPane(self.view.ident + "_gramplets", gramplet_pane = GrampletPane(self.view.ident + "_sidebar",
self, self.dbstate, self.uistate, self, self.dbstate, self.uistate,
column_count=1) column_count=1)
gramplet_pane.show_all() gramplet_pane.show_all()

View File

@ -57,7 +57,8 @@ 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
return GrampletPane("Gramplets_grampletview", self, self.dbstate, self.uistate) return GrampletPane("Gramplets_grampletview_gramplets", self,
self.dbstate, self.uistate)
def define_actions(self): def define_actions(self):
""" """
@ -103,13 +104,13 @@ class GrampletView(PageView):
def on_delete(self): def on_delete(self):
self.widget.on_delete() self.widget.on_delete()
self._config.save()
def can_configure(self): def can_configure(self):
""" """
See :class:`~gui.views.pageview.PageView See :class:`~gui.views.pageview.PageView
:return: bool :return: bool
""" """
self._config = self.widget._config
return self.widget.can_configure() return self.widget.can_configure()
def _get_configure_page_funcs(self): def _get_configure_page_funcs(self):