/** Initialize a new instance of a gnucash embedded window. This * function initializes the object private storage space. It also * adds the new object to a list (for memory tracking purposes). * * @param view The new object instance created by the object system. * * @param klass A pointer to the class data structure for this * object. */ static void gnc_embedded_window_init (GncEmbeddedWindow *window, GncEmbeddedWindowClass *klass) { ENTER("window %p", window); gnc_embedded_window_setup_window (window); gnc_gobject_tracking_remember(G_OBJECT(window), G_OBJECT_CLASS(klass)); LEAVE(" "); }
/** Initialize a new instance of a gnucash menu-only plugin. This * function adds the object to the tracking system. * * @param plugin_page The new object instance created by the object * system. * * @param klass A pointer to the class data structure for this * object. */ static void gnc_plugin_init (GncPlugin *plugin_page, GncPluginClass *klass) { gnc_gobject_tracking_remember(G_OBJECT(plugin_page), \ G_OBJECT_CLASS(klass)); }