mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Register date & combo cells in register-gnome to untable dependencies.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5290 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
14bbe9938f
commit
cfd88b28ee
@ -49,10 +49,6 @@ gnc_register_init (void)
|
||||
|
||||
gnc_register_add_cell_type (BASIC_CELL_TYPE_NAME, gnc_basic_cell_new);
|
||||
|
||||
gnc_register_add_cell_type (COMBO_CELL_TYPE_NAME, gnc_combo_cell_new);
|
||||
|
||||
gnc_register_add_cell_type (DATE_CELL_TYPE_NAME, gnc_date_cell_new);
|
||||
|
||||
gnc_register_add_cell_type (NUM_CELL_TYPE_NAME, gnc_num_cell_new);
|
||||
|
||||
gnc_register_add_cell_type (PRICE_CELL_TYPE_NAME, gnc_price_cell_new);
|
||||
|
@ -9,6 +9,9 @@
|
||||
|
||||
#include "gnc-module.h"
|
||||
#include "gnc-module-api.h"
|
||||
#include "register-common.h"
|
||||
#include "combocell.h"
|
||||
#include "datecell.h"
|
||||
|
||||
/* version of the gnc module system interface we require */
|
||||
int gnc_module_system_interface = 0;
|
||||
@ -30,11 +33,16 @@ gnc_module_description(void) {
|
||||
|
||||
int
|
||||
gnc_module_init(int refcount) {
|
||||
if(refcount == 0)
|
||||
if (refcount == 0)
|
||||
{
|
||||
if(!gnc_module_load("gnucash/register/register-core", 0)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gnc_register_add_cell_type (COMBO_CELL_TYPE_NAME, gnc_combo_cell_new);
|
||||
|
||||
gnc_register_add_cell_type (DATE_CELL_TYPE_NAME, gnc_date_cell_new);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user