31 #include <glib/gi18n.h> 33 #include "dialog-utils.h" 42 static void gnc_plugin_customer_import_finalize (GObject *
object);
45 static void gnc_plugin_customer_import_cmd_test (GSimpleAction *simple, GVariant *parameter, gpointer user_data);
47 #define PLUGIN_ACTIONS_NAME "gnc-plugin-customer-import-actions" 48 #define PLUGIN_UI_FILENAME "gnc-plugin-customer-import.ui" 50 static GActionEntry gnc_plugin_actions [] =
54 {
"customer_importAction", gnc_plugin_customer_import_cmd_test, NULL, NULL, NULL },
57 static guint gnc_plugin_n_actions = G_N_ELEMENTS(gnc_plugin_actions);
60 static const gchar *gnc_plugin_load_ui_items [] =
75 G_DEFINE_TYPE(GncPluginCustomerImport, gnc_plugin_customer_import, GNC_TYPE_PLUGIN)
80 return GNC_PLUGIN (g_object_new (GNC_TYPE_PLUGIN_CUSTOMER_IMPORT, (gchar*) NULL));
84 gnc_plugin_customer_import_class_init (GncPluginCustomerImportClass *klass)
86 GObjectClass *object_class = G_OBJECT_CLASS (klass);
87 GncPluginClass *plugin_class = GNC_PLUGIN_CLASS(klass);
89 object_class->finalize = gnc_plugin_customer_import_finalize;
92 plugin_class->plugin_name = GNC_PLUGIN_CUSTOMER_IMPORT_NAME;
96 plugin_class->actions = gnc_plugin_actions;
97 plugin_class->n_actions = gnc_plugin_n_actions;
99 plugin_class->ui_updates = gnc_plugin_load_ui_items;
103 gnc_plugin_customer_import_init (GncPluginCustomerImport *plugin)
108 gnc_plugin_customer_import_finalize (GObject *
object)
129 gnc_plugin_customer_import_cmd_test (GSimpleAction *simple,
135 ENTER (
"action %p, main window data %p", simple, data);
136 PINFO (
"customer_import");
#define G_LOG_DOMAIN
Functions providing the SX List as a plugin page.
#define PINFO(format, args...)
Print an informational note.
Plugin management functions for the GnuCash UI.
void gnc_plugin_manager_add_plugin(GncPluginManager *manager, GncPlugin *plugin)
Add a plugin to the list maintained by the plugin manager.
#define ENTER(format, args...)
Print a function entry debugging message.
GUI handling for customer import plugin.
GncPluginManager * gnc_plugin_manager_get(void)
Retrieve a pointer to the plugin manager.
#define PLUGIN_ACTIONS_NAME
The label given to the main window for this plugin.
#define LEAVE(format, args...)
Print a function exit debugging message.
Plugin registration of the customer_import module.
#define PLUGIN_UI_FILENAME
The name of the UI description file for this plugin.