mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-29 23:58:03 -05:00
Fix cases where something that should be a GType isn't defined
properly. Problem pointed out by Steve Langasek and is listed as Debian bug 406378. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15381 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -68,10 +68,10 @@ enum {
|
||||
static guint signals[LAST_SIGNAL] = { 0 };
|
||||
#endif
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_owner_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -46,7 +46,7 @@ struct _GNCSearchOwnerClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_owner_get_type (void);
|
||||
GType gnc_search_owner_get_type (void);
|
||||
GNCSearchOwner *gnc_search_owner_new (void);
|
||||
|
||||
/* methods */
|
||||
|
||||
@@ -80,10 +80,10 @@ static guint general_search_signals[LAST_SIGNAL];
|
||||
*
|
||||
* Returns the GtkType for the GNCGeneralSearch widget
|
||||
*/
|
||||
guint
|
||||
GType
|
||||
gnc_general_search_get_type (void)
|
||||
{
|
||||
static guint general_search_type = 0;
|
||||
static GType general_search_type = 0;
|
||||
|
||||
if (!general_search_type){
|
||||
static const GTypeInfo our_info = {
|
||||
|
||||
@@ -83,7 +83,7 @@ void gnc_general_search_set_selected (GNCGeneralSearch *gsl,
|
||||
gpointer searched);
|
||||
gpointer gnc_general_search_get_selected (GNCGeneralSearch *gsl);
|
||||
|
||||
guint gnc_general_search_get_type (void);
|
||||
GType gnc_general_search_get_type (void);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -59,10 +59,10 @@ struct _GNCSearchAccountPrivate {
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_account_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -46,7 +46,7 @@ struct _GNCSearchAccountClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_account_get_type (void);
|
||||
GType gnc_search_account_get_type (void);
|
||||
GNCSearchAccount *gnc_search_account_new (void);
|
||||
GNCSearchAccount *gnc_search_account_matchall_new (void);
|
||||
|
||||
|
||||
@@ -54,10 +54,10 @@ struct _GNCSearchBooleanPrivate {
|
||||
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_boolean_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -47,7 +47,7 @@ struct _GNCSearchBooleanClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_boolean_get_type (void);
|
||||
GType gnc_search_boolean_get_type (void);
|
||||
GNCSearchBoolean *gnc_search_boolean_new (void);
|
||||
|
||||
/* methods */
|
||||
|
||||
@@ -58,10 +58,10 @@ struct _GNCSearchDatePrivate {
|
||||
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_date_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -48,7 +48,7 @@ struct _GNCSearchDateClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_date_get_type (void);
|
||||
GType gnc_search_date_get_type (void);
|
||||
GNCSearchDate *gnc_search_date_new (void);
|
||||
|
||||
/* methods */
|
||||
|
||||
@@ -58,10 +58,10 @@ struct _GNCSearchDoublePrivate {
|
||||
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_double_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -47,7 +47,7 @@ struct _GNCSearchDoubleClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_double_get_type (void);
|
||||
GType gnc_search_double_get_type (void);
|
||||
GNCSearchDouble *gnc_search_double_new (void);
|
||||
|
||||
/* methods */
|
||||
|
||||
@@ -59,10 +59,10 @@ struct _GNCSearchInt64Private {
|
||||
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_int64_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -47,7 +47,7 @@ struct _GNCSearchInt64Class {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_int64_get_type (void);
|
||||
GType gnc_search_int64_get_type (void);
|
||||
GNCSearchInt64 *gnc_search_int64_new (void);
|
||||
|
||||
/* methods */
|
||||
|
||||
@@ -59,10 +59,10 @@ struct _GNCSearchNumericPrivate {
|
||||
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_numeric_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -50,7 +50,7 @@ struct _GNCSearchNumericClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_numeric_get_type (void);
|
||||
GType gnc_search_numeric_get_type (void);
|
||||
GNCSearchNumeric *gnc_search_numeric_new (void);
|
||||
GNCSearchNumeric *gnc_search_numeric_debcred_new (void);
|
||||
|
||||
|
||||
@@ -55,10 +55,10 @@ struct _GNCSearchReconciledPrivate {
|
||||
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_reconciled_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -47,7 +47,7 @@ struct _GNCSearchReconciledClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_reconciled_get_type (void);
|
||||
GType gnc_search_reconciled_get_type (void);
|
||||
GNCSearchReconciled *gnc_search_reconciled_new (void);
|
||||
|
||||
/* methods */
|
||||
|
||||
@@ -58,10 +58,10 @@ struct _GNCSearchStringPrivate {
|
||||
|
||||
static GNCSearchCoreTypeClass *parent_class;
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_search_string_get_type (void)
|
||||
{
|
||||
static guint type = 0;
|
||||
static GType type = 0;
|
||||
|
||||
if (!type) {
|
||||
GTypeInfo type_info = {
|
||||
|
||||
@@ -54,7 +54,7 @@ struct _GNCSearchStringClass {
|
||||
/* signals */
|
||||
};
|
||||
|
||||
guint gnc_search_string_get_type (void);
|
||||
GType gnc_search_string_get_type (void);
|
||||
GNCSearchString *gnc_search_string_new (void);
|
||||
|
||||
/* methods */
|
||||
|
||||
@@ -81,10 +81,10 @@ static void gnc_query_list_size_allocate_cb(GtkWidget *w,
|
||||
|
||||
static void gnc_query_list_set_query_sort (GNCQueryList *list, gboolean new_column);
|
||||
|
||||
GtkType
|
||||
GType
|
||||
gnc_query_list_get_type (void)
|
||||
{
|
||||
static GtkType gnc_query_list_type = 0;
|
||||
static GType gnc_query_list_type = 0;
|
||||
|
||||
if (!gnc_query_list_type)
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ struct _GNCQueryListClass
|
||||
* public functions *
|
||||
***********************************************************/
|
||||
|
||||
GtkType gnc_query_list_get_type (void);
|
||||
GType gnc_query_list_get_type (void);
|
||||
|
||||
/* The param_list remains owned by the caller but is used by the
|
||||
* query-list; do not destroy it until you destroy this query-list.
|
||||
|
||||
@@ -170,10 +170,10 @@ void gnc_split_register_size_allocate (GtkWidget *widget,
|
||||
FROM_STRING_FUNC(SortType, ENUM_LIST_SORTTYPE)
|
||||
AS_STRING_FUNC(SortType, ENUM_LIST_SORTTYPE)
|
||||
|
||||
guint
|
||||
GType
|
||||
gnc_split_reg_get_type( void )
|
||||
{
|
||||
static guint gnc_split_reg_type = 0;
|
||||
static GType gnc_split_reg_type = 0;
|
||||
|
||||
if (!gnc_split_reg_type)
|
||||
{
|
||||
|
||||
@@ -159,7 +159,7 @@ FROM_STRING_DEC(SortType, ENUM_LIST_SORTTYPE)
|
||||
/**
|
||||
* GTK-related; gets an identifier for the class of GNCSplitRegs.
|
||||
**/
|
||||
guint gnc_split_reg_get_type(void);
|
||||
GType gnc_split_reg_get_type(void);
|
||||
|
||||
/**
|
||||
* Creates and returns a GNCSplitReg.
|
||||
|
||||
@@ -160,10 +160,10 @@ gnc_date_picker_class_init (GNCDatePickerClass *date_picker_class)
|
||||
date_picker_class->key_press_event = NULL;
|
||||
}
|
||||
|
||||
GtkType
|
||||
GType
|
||||
gnc_date_picker_get_type (void)
|
||||
{
|
||||
static GtkType gnc_date_picker_type = 0;
|
||||
static GType gnc_date_picker_type = 0;
|
||||
|
||||
if (gnc_date_picker_type == 0)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ typedef struct
|
||||
} GNCDatePicker;
|
||||
|
||||
|
||||
GtkType gnc_date_picker_get_type (void);
|
||||
GType gnc_date_picker_get_type (void);
|
||||
|
||||
GnomeCanvasItem *gnc_date_picker_new (GnomeCanvasGroup *parent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user