From 4bb3acb10e50e79e802f666250b797ef7e5ae302 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Thu, 8 Feb 2007 01:04:45 +0000 Subject: [PATCH] Fix registration of gnc-plugin-page-sx-list so plugin-page restoration works. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15521 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/doc/sx.rst | 2 +- src/gnome/gnc-plugin-basic-commands.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/doc/sx.rst b/src/doc/sx.rst index 5079a096ab..66170c25a0 100644 --- a/src/doc/sx.rst +++ b/src/doc/sx.rst @@ -75,7 +75,7 @@ TODO - sx list page ! - [ ] use gnc-tree-view -! - [ ] save/restore state +! - [x] save/restore state - [/] make into split panel - [ ] fix slider position - [ ] {0, 1, 2, 4, 8, 12} month selection for dense calendar diff --git a/src/gnome/gnc-plugin-basic-commands.c b/src/gnome/gnc-plugin-basic-commands.c index 9d3b230bc7..3b72c138c4 100644 --- a/src/gnome/gnc-plugin-basic-commands.c +++ b/src/gnome/gnc-plugin-basic-commands.c @@ -53,7 +53,6 @@ #include "gnc-ui.h" #include "gnc-window.h" #include "gnc-session.h" - #include "gnc-plugin-page-sx-list.h" /* This static indicates the debugging module that this .o belongs to. */ @@ -222,6 +221,10 @@ gnc_plugin_basic_commands_new (void) { GncPluginBasicCommands *plugin; + /* We just need to mention it, so the GType is registered and will be + * reflected during plugin-page restore. */ + GNC_TYPE_PLUGIN_PAGE_SX_LIST; + plugin = g_object_new (GNC_TYPE_PLUGIN_BASIC_COMMANDS, NULL); return GNC_PLUGIN (plugin);