[Gnucash-changes] r11927 - gnucash/trunk - Remove vestigial code from the very early days of the gtk2 port.

David Hampton hampton at cvs.gnucash.org
Sun Nov 13 23:41:03 EST 2005


Author: hampton
Date: 2005-11-13 23:41:02 -0500 (Sun, 13 Nov 2005)
New Revision: 11927
Trac: http://svn.gnucash.org/trac/changeset/11927

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-plugin.c
   gnucash/trunk/src/gnome-utils/gnc-plugin.h
   gnucash/trunk/src/gnome/gnc-plugin-account-tree.c
   gnucash/trunk/src/gnome/gnc-plugin-budget.c
   gnucash/trunk/src/gnome/gnc-plugin-register.c
Log:
Remove vestigial code from the very early days of the gtk2 port.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-11-14 02:42:55 UTC (rev 11926)
+++ gnucash/trunk/ChangeLog	2005-11-14 04:41:02 UTC (rev 11927)
@@ -1,5 +1,11 @@
 2005-11-13  David Hampton  <hampton at employees.org>
 
+	* src/gnome-utils/gnc-plugin.[ch]:
+	* src/gnome/gnc-plugin-budget.c:
+	* src/gnome/gnc-plugin-register.c:
+	* src/gnome/gnc-plugin-account-tree.c: Remove vestigial code from
+	the very early days of the gtk2 port.
+
 	* src/report/report-gnome/gnc-plugin-page-report.c:
 	* src/business/business-gnome/gnc-plugin-page-invoice.c:
 	* src/gnome-utils/gnc-plugin.c:

Modified: gnucash/trunk/src/gnome/gnc-plugin-account-tree.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-account-tree.c	2005-11-14 02:42:55 UTC (rev 11926)
+++ gnucash/trunk/src/gnome/gnc-plugin-account-tree.c	2005-11-14 04:41:02 UTC (rev 11927)
@@ -35,9 +35,6 @@
 static void gnc_plugin_account_tree_init (GncPluginAccountTree *plugin);
 static void gnc_plugin_account_tree_finalize (GObject *object);
 
-/* plugin window interface */
-static GncPluginPage *gnc_plugin_account_tree_create_page (GncPlugin *plugin, const gchar *uri);
-
 /* Command callbacks */
 static void gnc_plugin_account_tree_cmd_new_account_tree (GtkAction *action, GncMainWindowActionData *data);
 
@@ -117,9 +114,6 @@
 	/* plugin info */
 	plugin_class->plugin_name  = GNC_PLUGIN_ACCOUNT_TREE_NAME;
 
-	/* function overrides */
-	plugin_class->create_page  = gnc_plugin_account_tree_create_page;
-
 	/* widget addition/removal */
 	plugin_class->actions_name = PLUGIN_ACTIONS_NAME;
 	plugin_class->actions      = gnc_plugin_actions;
@@ -149,25 +143,6 @@
 }
 
 /************************************************************
- *              Plugin Function Implementation              *
- ************************************************************/
-
-static GncPluginPage *
-gnc_plugin_account_tree_create_page (GncPlugin *plugin,
-				     const gchar *uri)
-{
-	g_return_val_if_fail (GNC_IS_PLUGIN_ACCOUNT_TREE (plugin), NULL);
-	g_return_val_if_fail (uri != NULL, NULL);
-
-	/* FIXME add better URI handling */
-	if (strcmp ("default:", uri)) {
-		return NULL;
-	}
-	
-	return gnc_plugin_page_account_tree_new ();
-}
-
-/************************************************************
  *                    Command Callbacks                     *
  ************************************************************/
 

Modified: gnucash/trunk/src/gnome/gnc-plugin-budget.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-budget.c	2005-11-14 02:42:55 UTC (rev 11926)
+++ gnucash/trunk/src/gnome/gnc-plugin-budget.c	2005-11-14 04:41:02 UTC (rev 11927)
@@ -51,12 +51,6 @@
 static void gnc_plugin_budget_cmd_open_budget (GtkAction *action,
 					      GncMainWindowActionData *data);
 
-#if 0
-/* plugin window interface */
-static GncPluginPage *gnc_plugin_budget_create_page (GncPlugin *plugin,
-						     const gchar *uri);
-#endif
-
 static GtkActionEntry gnc_plugin_actions [] = {
     { "NewBudgetAction", NULL, N_("New Budget"), NULL,
       N_("Create a new Budget"),
@@ -126,11 +120,6 @@
     parent_class = g_type_class_peek_parent (klass);
     object_class->finalize = gnc_plugin_budget_finalize;
 
-    /* CAS: I'm still unsure how much needs to be overridden here. */
-
-    /* function overrides */
-    //plugin_class->create_page  = gnc_plugin_budget_create_page;
-
     plugin_class->plugin_name  = GNC_PLUGIN_BUDGET_NAME;
     plugin_class->actions_name = PLUGIN_ACTIONS_NAME;
     plugin_class->actions      = gnc_plugin_actions;
@@ -164,30 +153,6 @@
 }
 
 /************************************************************
- *              Plugin Function Implementation              *
- ************************************************************/
-
-#if 0
-static GncPluginPage *
-gnc_plugin_budget_create_page (GncPlugin *plugin,
-			       const gchar *uri)
-{
-    g_return_val_if_fail (GNC_IS_PLUGIN_BUDGET (plugin), NULL);
-    g_return_val_if_fail (uri != NULL, NULL);
-
-    ENTER("");
-    LEAVE("");
-    /* FIXME add better URI handling */
-    if (strcmp ("default:", uri)) {
-        return NULL;
-    }
-
-    return NULL;
-}
-#endif
-
-
-/************************************************************
  *                    Command Callbacks                     *
  ************************************************************/
 

Modified: gnucash/trunk/src/gnome/gnc-plugin-register.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-register.c	2005-11-14 02:42:55 UTC (rev 11926)
+++ gnucash/trunk/src/gnome/gnc-plugin-register.c	2005-11-14 04:41:02 UTC (rev 11927)
@@ -36,9 +36,6 @@
 static void gnc_plugin_register_init (GncPluginRegister *plugin);
 static void gnc_plugin_register_finalize (GObject *object);
 
-/* plugin window interface */
-static GncPluginPage *gnc_plugin_register_create_page (GncPlugin *plugin, const gchar *uri);
-
 /* Command callbacks */
 static void gnc_plugin_register_cmd_general_ledger (GtkAction *action, GncMainWindowActionData *data);
 
@@ -151,9 +148,6 @@
 	/* plugin info */
 	plugin_class->plugin_name  = GNC_PLUGIN_REGISTER_NAME;
 
-	/* function overrides */
-	plugin_class->create_page  = gnc_plugin_register_create_page;
-
 	/* widget addition/removal */
 	plugin_class->actions_name = PLUGIN_ACTIONS_NAME;
 	plugin_class->actions      = gnc_plugin_actions;
@@ -186,25 +180,6 @@
 }
 
 /************************************************************
- *              Plugin Function Implementation              *
- ************************************************************/
-
-static GncPluginPage *
-gnc_plugin_register_create_page (GncPlugin *plugin,
-				 const gchar *uri)
-{
-	g_return_val_if_fail (GNC_IS_PLUGIN_REGISTER (plugin), NULL);
-	g_return_val_if_fail (uri != NULL, NULL);
-
-	/* FIXME add better URI handling */
-	if (strcmp ("default:", uri)) {
-		return NULL;
-	}
-	
-	return NULL;
-}
-
-/************************************************************
  *                    Command Callbacks                     *
  ************************************************************/
 

Modified: gnucash/trunk/src/gnome-utils/gnc-plugin.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-plugin.c	2005-11-14 02:42:55 UTC (rev 11926)
+++ gnucash/trunk/src/gnome-utils/gnc-plugin.c	2005-11-14 04:41:02 UTC (rev 11927)
@@ -253,18 +253,6 @@
 }
 
 
-GncPluginPage *
-gnc_plugin_create_page (GncPlugin *plugin,
-			const gchar *uri)
-{
-	g_return_val_if_fail (GNC_IS_PLUGIN (plugin), NULL);
-
-	if (!GNC_PLUGIN_GET_CLASS (plugin)->create_page)
-	  return NULL;
-	return GNC_PLUGIN_GET_CLASS (plugin)->create_page (plugin, uri);
-}
-
-
 /** Retrieve the name of a plugin.
  */
 const gchar *

Modified: gnucash/trunk/src/gnome-utils/gnc-plugin.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-plugin.h	2005-11-14 02:42:55 UTC (rev 11926)
+++ gnucash/trunk/src/gnome-utils/gnc-plugin.h	2005-11-14 04:41:02 UTC (rev 11927)
@@ -104,9 +104,6 @@
          (GncPlugin *plugin, GncMainWindow *window, GQuark type);
 	void (* remove_from_window)
          (GncPlugin *plugin, GncMainWindow *window, GQuark type);
-
-	GncPluginPage *(* create_page)
-         (GncPlugin *plugin, const gchar *uri);
 } GncPluginClass;
 
 /* function prototypes */
@@ -150,10 +147,6 @@
 				    GQuark type);
 
 
-GncPluginPage *gnc_plugin_create_page (GncPlugin *plugin,
-				       const gchar *uri);
-
-
 /** Retrieve the name of a plugin.
  *
  *  @param plugin The plugin whose name should be returned.



More information about the gnucash-changes mailing list