r15521 - gnucash/trunk/src - Fix registration of gnc-plugin-page-sx-list so plugin-page restoration works.

Josh Sled jsled at cvs.gnucash.org
Wed Feb 7 20:04:45 EST 2007


Author: jsled
Date: 2007-02-07 20:04:45 -0500 (Wed, 07 Feb 2007)
New Revision: 15521
Trac: http://svn.gnucash.org/trac/changeset/15521

Modified:
   gnucash/trunk/src/doc/sx.rst
   gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
Log:
Fix registration of gnc-plugin-page-sx-list so plugin-page restoration works.


Modified: gnucash/trunk/src/doc/sx.rst
===================================================================
--- gnucash/trunk/src/doc/sx.rst	2007-02-08 01:03:11 UTC (rev 15520)
+++ gnucash/trunk/src/doc/sx.rst	2007-02-08 01:04:45 UTC (rev 15521)
@@ -75,7 +75,7 @@
 
 - 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

Modified: gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c	2007-02-08 01:03:11 UTC (rev 15520)
+++ gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c	2007-02-08 01:04:45 UTC (rev 15521)
@@ -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 @@
 {
   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);



More information about the gnucash-changes mailing list