mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Revert "revert 630f5ba2a693d0a6a9b3ebced645dfd4c5046c98"
This reverts commit f61652fc24
.
This commit is contained in:
parent
29ee4a2e55
commit
86240d5542
@ -107,36 +107,6 @@ typedef struct _GncPluginPagePrivate
|
||||
#define GNC_PLUGIN_PAGE_GET_PRIVATE(o) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_PLUGIN_PAGE, GncPluginPagePrivate))
|
||||
|
||||
GType
|
||||
gnc_plugin_page_get_type (void)
|
||||
{
|
||||
static GType gnc_plugin_page_type = 0;
|
||||
|
||||
if (gnc_plugin_page_type == 0)
|
||||
{
|
||||
static const GTypeInfo our_info =
|
||||
{
|
||||
|
||||
sizeof (GncPluginPageClass),
|
||||
NULL, /* base_init */
|
||||
NULL, /* base_finalize */
|
||||
(GClassInitFunc) gnc_plugin_page_class_init,
|
||||
NULL, /* class_finalize */
|
||||
NULL, /* class_data */
|
||||
sizeof (GncPluginPage),
|
||||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gnc_plugin_page_init,
|
||||
};
|
||||
|
||||
gnc_plugin_page_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GncPluginPage",
|
||||
&our_info, 0);
|
||||
}
|
||||
|
||||
return gnc_plugin_page_type;
|
||||
}
|
||||
|
||||
|
||||
/* Create the display widget that corresponds to this plugin. This
|
||||
* function will be called by the main/embedded window manipulation
|
||||
* code to create a widget that they can display. The returned
|
||||
@ -379,6 +349,7 @@ gnc_plugin_page_unselected (GncPluginPage *plugin_page)
|
||||
g_signal_emit (G_OBJECT (plugin_page), signals[UNSELECTED], 0);
|
||||
}
|
||||
|
||||
G_DEFINE_TYPE_WITH_PRIVATE(GncPluginPage, gnc_plugin_page, G_TYPE_OBJECT)
|
||||
|
||||
/** Initialize the class for a new generic plugin page. This will set
|
||||
* up any function pointers that override functions in the parent
|
||||
@ -400,8 +371,6 @@ gnc_plugin_page_class_init (GncPluginPageClass *klass)
|
||||
klass->tab_icon = NULL;
|
||||
klass->plugin_name = NULL;
|
||||
|
||||
g_type_class_add_private(klass, sizeof(GncPluginPagePrivate));
|
||||
|
||||
g_object_class_install_property
|
||||
(gobject_class,
|
||||
PROP_PAGE_NAME,
|
||||
|
Loading…
Reference in New Issue
Block a user