Remove vestigial code from the very early days of the gtk2 port.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11927 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-14 04:41:02 +00:00
parent f240baaee3
commit 18c5787ac8
6 changed files with 6 additions and 104 deletions

View File

@ -1,5 +1,11 @@
2005-11-13 David Hampton <hampton@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:

View File

@ -253,18 +253,6 @@ gnc_plugin_remove_from_window (GncPlugin *plugin,
}
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 *

View File

@ -104,9 +104,6 @@ typedef struct {
(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 @@ void gnc_plugin_remove_from_window (GncPlugin *plugin,
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.

View File

@ -35,9 +35,6 @@ static void gnc_plugin_account_tree_class_init (GncPluginAccountTreeClass *klass
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 @@ gnc_plugin_account_tree_class_init (GncPluginAccountTreeClass *klass)
/* 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;
@ -148,25 +142,6 @@ gnc_plugin_account_tree_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
}
/************************************************************
* 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 *
************************************************************/

View File

@ -51,12 +51,6 @@ static void gnc_plugin_budget_cmd_new_budget (GtkAction *action,
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 @@ gnc_plugin_budget_class_init (GncPluginBudgetClass *klass)
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;
@ -163,30 +152,6 @@ gnc_plugin_budget_finalize(GObject *object)
}
/************************************************************
* 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 *
************************************************************/

View File

@ -36,9 +36,6 @@ static void gnc_plugin_register_class_init (GncPluginRegisterClass *klass);
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 @@ gnc_plugin_register_class_init (GncPluginRegisterClass *klass)
/* 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;
@ -185,25 +179,6 @@ gnc_plugin_register_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
}
/************************************************************
* 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 *
************************************************************/