r15385 - gnucash/tags/2.0.2/src - Fix cases where something that should be a GType isn't defined

David Hampton hampton at cvs.gnucash.org
Sun Jan 14 21:42:30 EST 2007


Author: hampton
Date: 2007-01-14 21:42:29 -0500 (Sun, 14 Jan 2007)
New Revision: 15385
Trac: http://svn.gnucash.org/trac/changeset/15385

Modified:
   gnucash/tags/2.0.2/src/business/business-gnome/search-owner.c
   gnucash/tags/2.0.2/src/business/business-gnome/search-owner.h
   gnucash/tags/2.0.2/src/gnome-search/gnc-general-search.c
   gnucash/tags/2.0.2/src/gnome-search/gnc-general-search.h
   gnucash/tags/2.0.2/src/gnome-search/search-account.c
   gnucash/tags/2.0.2/src/gnome-search/search-account.h
   gnucash/tags/2.0.2/src/gnome-search/search-boolean.c
   gnucash/tags/2.0.2/src/gnome-search/search-boolean.h
   gnucash/tags/2.0.2/src/gnome-search/search-date.c
   gnucash/tags/2.0.2/src/gnome-search/search-date.h
   gnucash/tags/2.0.2/src/gnome-search/search-double.c
   gnucash/tags/2.0.2/src/gnome-search/search-double.h
   gnucash/tags/2.0.2/src/gnome-search/search-int64.c
   gnucash/tags/2.0.2/src/gnome-search/search-int64.h
   gnucash/tags/2.0.2/src/gnome-search/search-numeric.c
   gnucash/tags/2.0.2/src/gnome-search/search-numeric.h
   gnucash/tags/2.0.2/src/gnome-search/search-reconciled.c
   gnucash/tags/2.0.2/src/gnome-search/search-reconciled.h
   gnucash/tags/2.0.2/src/gnome-search/search-string.c
   gnucash/tags/2.0.2/src/gnome-search/search-string.h
   gnucash/tags/2.0.2/src/gnome-utils/gnc-query-list.c
   gnucash/tags/2.0.2/src/gnome-utils/gnc-query-list.h
   gnucash/tags/2.0.2/src/gnome/gnc-split-reg.c
   gnucash/tags/2.0.2/src/gnome/gnc-split-reg.h
   gnucash/tags/2.0.2/src/register/register-gnome/gnucash-date-picker.c
   gnucash/tags/2.0.2/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/tags/2.0.2/src/business/business-gnome/search-owner.c
===================================================================
--- gnucash/tags/2.0.2/src/business/business-gnome/search-owner.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/business/business-gnome/search-owner.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/business/business-gnome/search-owner.h
===================================================================
--- gnucash/tags/2.0.2/src/business/business-gnome/search-owner.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/business/business-gnome/search-owner.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome/gnc-split-reg.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome/gnc-split-reg.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome/gnc-split-reg.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome/gnc-split-reg.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome/gnc-split-reg.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome/gnc-split-reg.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/gnc-general-search.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/gnc-general-search.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/gnc-general-search.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/gnc-general-search.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/gnc-general-search.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/gnc-general-search.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-account.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-account.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-account.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-account.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-account.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-account.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-boolean.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-boolean.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-boolean.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-boolean.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-boolean.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-boolean.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-date.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-date.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-date.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-date.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-date.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-date.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-double.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-double.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-double.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-double.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-double.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-double.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-int64.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-int64.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-int64.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-int64.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-int64.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-int64.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-numeric.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-numeric.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-numeric.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-numeric.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-numeric.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-numeric.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-reconciled.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-reconciled.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-reconciled.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-reconciled.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-reconciled.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-reconciled.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-string.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-string.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-string.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-search/search-string.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-search/search-string.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-search/search-string.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-utils/gnc-query-list.c
===================================================================
--- gnucash/tags/2.0.2/src/gnome-utils/gnc-query-list.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-utils/gnc-query-list.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/gnome-utils/gnc-query-list.h
===================================================================
--- gnucash/tags/2.0.2/src/gnome-utils/gnc-query-list.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/gnome-utils/gnc-query-list.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/register/register-gnome/gnucash-date-picker.c
===================================================================
--- gnucash/tags/2.0.2/src/register/register-gnome/gnucash-date-picker.c	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/register/register-gnome/gnucash-date-picker.c	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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/tags/2.0.2/src/register/register-gnome/gnucash-date-picker.h
===================================================================
--- gnucash/tags/2.0.2/src/register/register-gnome/gnucash-date-picker.h	2007-01-15 01:57:07 UTC (rev 15384)
+++ gnucash/tags/2.0.2/src/register/register-gnome/gnucash-date-picker.h	2007-01-15 02:42:29 UTC (rev 15385)
@@ -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