r15387 - gnucash/branches/2.0/src - Fix cases where something that should be a GType isn't defined
David Hampton
hampton at cvs.gnucash.org
Sun Jan 14 22:21:22 EST 2007
Author: hampton
Date: 2007-01-14 22:21:21 -0500 (Sun, 14 Jan 2007)
New Revision: 15387
Trac: http://svn.gnucash.org/trac/changeset/15387
Modified:
gnucash/branches/2.0/src/business/business-gnome/search-owner.c
gnucash/branches/2.0/src/business/business-gnome/search-owner.h
gnucash/branches/2.0/src/gnome-search/gnc-general-search.c
gnucash/branches/2.0/src/gnome-search/gnc-general-search.h
gnucash/branches/2.0/src/gnome-search/search-account.c
gnucash/branches/2.0/src/gnome-search/search-account.h
gnucash/branches/2.0/src/gnome-search/search-boolean.c
gnucash/branches/2.0/src/gnome-search/search-boolean.h
gnucash/branches/2.0/src/gnome-search/search-date.c
gnucash/branches/2.0/src/gnome-search/search-date.h
gnucash/branches/2.0/src/gnome-search/search-double.c
gnucash/branches/2.0/src/gnome-search/search-double.h
gnucash/branches/2.0/src/gnome-search/search-int64.c
gnucash/branches/2.0/src/gnome-search/search-int64.h
gnucash/branches/2.0/src/gnome-search/search-numeric.c
gnucash/branches/2.0/src/gnome-search/search-numeric.h
gnucash/branches/2.0/src/gnome-search/search-reconciled.c
gnucash/branches/2.0/src/gnome-search/search-reconciled.h
gnucash/branches/2.0/src/gnome-search/search-string.c
gnucash/branches/2.0/src/gnome-search/search-string.h
gnucash/branches/2.0/src/gnome-utils/gnc-query-list.c
gnucash/branches/2.0/src/gnome-utils/gnc-query-list.h
gnucash/branches/2.0/src/gnome/gnc-split-reg.c
gnucash/branches/2.0/src/gnome/gnc-split-reg.h
gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.c
gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.h
Log:
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.
Modified: gnucash/branches/2.0/src/business/business-gnome/search-owner.c
===================================================================
--- gnucash/branches/2.0/src/business/business-gnome/search-owner.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/business/business-gnome/search-owner.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -65,10 +65,10 @@
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 = {
Modified: gnucash/branches/2.0/src/business/business-gnome/search-owner.h
===================================================================
--- gnucash/branches/2.0/src/business/business-gnome/search-owner.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/business/business-gnome/search-owner.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -46,7 +46,7 @@
/* signals */
};
-guint gnc_search_owner_get_type (void);
+GType gnc_search_owner_get_type (void);
GNCSearchOwner *gnc_search_owner_new (void);
/* methods */
Modified: gnucash/branches/2.0/src/gnome/gnc-split-reg.c
===================================================================
--- gnucash/branches/2.0/src/gnome/gnc-split-reg.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome/gnc-split-reg.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -170,10 +170,10 @@
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)
{
Modified: gnucash/branches/2.0/src/gnome/gnc-split-reg.h
===================================================================
--- gnucash/branches/2.0/src/gnome/gnc-split-reg.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome/gnc-split-reg.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -159,7 +159,7 @@
/**
* 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.
Modified: gnucash/branches/2.0/src/gnome-search/gnc-general-search.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/gnc-general-search.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/gnc-general-search.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -80,10 +80,10 @@
*
* 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 = {
Modified: gnucash/branches/2.0/src/gnome-search/gnc-general-search.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/gnc-general-search.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/gnc-general-search.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -83,7 +83,7 @@
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
Modified: gnucash/branches/2.0/src/gnome-search/search-account.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-account.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-account.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -56,10 +56,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-account.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-account.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-account.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -46,7 +46,7 @@
/* 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);
Modified: gnucash/branches/2.0/src/gnome-search/search-boolean.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-boolean.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-boolean.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -51,10 +51,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-boolean.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-boolean.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-boolean.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -47,7 +47,7 @@
/* signals */
};
-guint gnc_search_boolean_get_type (void);
+GType gnc_search_boolean_get_type (void);
GNCSearchBoolean *gnc_search_boolean_new (void);
/* methods */
Modified: gnucash/branches/2.0/src/gnome-search/search-date.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-date.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-date.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -55,10 +55,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-date.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-date.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-date.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -48,7 +48,7 @@
/* signals */
};
-guint gnc_search_date_get_type (void);
+GType gnc_search_date_get_type (void);
GNCSearchDate *gnc_search_date_new (void);
/* methods */
Modified: gnucash/branches/2.0/src/gnome-search/search-double.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-double.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-double.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -55,10 +55,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-double.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-double.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-double.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -47,7 +47,7 @@
/* signals */
};
-guint gnc_search_double_get_type (void);
+GType gnc_search_double_get_type (void);
GNCSearchDouble *gnc_search_double_new (void);
/* methods */
Modified: gnucash/branches/2.0/src/gnome-search/search-int64.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-int64.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-int64.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -56,10 +56,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-int64.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-int64.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-int64.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -47,7 +47,7 @@
/* signals */
};
-guint gnc_search_int64_get_type (void);
+GType gnc_search_int64_get_type (void);
GNCSearchInt64 *gnc_search_int64_new (void);
/* methods */
Modified: gnucash/branches/2.0/src/gnome-search/search-numeric.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-numeric.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-numeric.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -56,10 +56,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-numeric.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-numeric.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-numeric.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -50,7 +50,7 @@
/* 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);
Modified: gnucash/branches/2.0/src/gnome-search/search-reconciled.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-reconciled.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-reconciled.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -52,10 +52,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-reconciled.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-reconciled.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-reconciled.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -47,7 +47,7 @@
/* signals */
};
-guint gnc_search_reconciled_get_type (void);
+GType gnc_search_reconciled_get_type (void);
GNCSearchReconciled *gnc_search_reconciled_new (void);
/* methods */
Modified: gnucash/branches/2.0/src/gnome-search/search-string.c
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-string.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-string.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -55,10 +55,10 @@
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 = {
Modified: gnucash/branches/2.0/src/gnome-search/search-string.h
===================================================================
--- gnucash/branches/2.0/src/gnome-search/search-string.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-search/search-string.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -54,7 +54,7 @@
/* signals */
};
-guint gnc_search_string_get_type (void);
+GType gnc_search_string_get_type (void);
GNCSearchString *gnc_search_string_new (void);
/* methods */
Modified: gnucash/branches/2.0/src/gnome-utils/gnc-query-list.c
===================================================================
--- gnucash/branches/2.0/src/gnome-utils/gnc-query-list.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-utils/gnc-query-list.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -81,10 +81,10 @@
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)
{
Modified: gnucash/branches/2.0/src/gnome-utils/gnc-query-list.h
===================================================================
--- gnucash/branches/2.0/src/gnome-utils/gnc-query-list.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/gnome-utils/gnc-query-list.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -82,7 +82,7 @@
* 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.
Modified: gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.c
===================================================================
--- gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.c 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.c 2007-01-15 03:21:21 UTC (rev 15387)
@@ -160,10 +160,10 @@
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)
{
Modified: gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.h
===================================================================
--- gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.h 2007-01-15 02:54:44 UTC (rev 15386)
+++ gnucash/branches/2.0/src/register/register-gnome/gnucash-date-picker.h 2007-01-15 03:21:21 UTC (rev 15387)
@@ -38,7 +38,7 @@
} GNCDatePicker;
-GtkType gnc_date_picker_get_type (void);
+GType gnc_date_picker_get_type (void);
GnomeCanvasItem *gnc_date_picker_new (GnomeCanvasGroup *parent);
More information about the gnucash-changes
mailing list