From 5bb08835d7d340d220b65d346e4a4deae4364aa3 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 15 Dec 2010 19:40:27 +0000 Subject: [PATCH] Fix configuration problem in Gramplet View svn: r16287 --- src/gui/workspace.py | 2 +- src/plugins/view/grampletview.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/workspace.py b/src/gui/workspace.py index ee0b7e8a6..5fa01b3c5 100644 --- a/src/gui/workspace.py +++ b/src/gui/workspace.py @@ -152,7 +152,7 @@ class Workspace(object): eb = gtk.EventBox() 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, column_count=1) gramplet_pane.show_all() diff --git a/src/plugins/view/grampletview.py b/src/plugins/view/grampletview.py index 90dcdc017..5f8ffd27e 100644 --- a/src/plugins/view/grampletview.py +++ b/src/plugins/view/grampletview.py @@ -57,7 +57,8 @@ class GrampletView(PageView): the base class. Returns a gtk container widget. """ # 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): """ @@ -103,13 +104,13 @@ class GrampletView(PageView): def on_delete(self): self.widget.on_delete() + self._config.save() def can_configure(self): """ See :class:`~gui.views.pageview.PageView :return: bool """ - self._config = self.widget._config return self.widget.can_configure() def _get_configure_page_funcs(self):