[Gnucash-changes] r11963 - gnucash/trunk - Sjoerd Langkemper's <sjoerd-gnome at linuxonly.nl> fixes to cast

David Hampton hampton at cvs.gnucash.org
Wed Nov 16 16:59:50 EST 2005


Author: hampton
Date: 2005-11-16 16:59:48 -0500 (Wed, 16 Nov 2005)
New Revision: 11963
Trac: http://svn.gnucash.org/trac/changeset/11963

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/business/business-gnome/business-options-gnome.c
   gnucash/trunk/src/business/business-gnome/dialog-customer.c
   gnucash/trunk/src/business/business-gnome/dialog-employee.c
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
   gnucash/trunk/src/business/business-gnome/dialog-job.c
   gnucash/trunk/src/business/business-gnome/dialog-vendor.c
   gnucash/trunk/src/business/business-gnome/gnc-plugin-business.c
   gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
   gnucash/trunk/src/gnome-utils/dialog-utils.c
   gnucash/trunk/src/gnome-utils/druid-gconf-setup.c
   gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
   gnucash/trunk/src/gnome/druid-hierarchy.c
   gnucash/trunk/src/import-export/qif-import/dialog-account-picker.c
Log:
Sjoerd Langkemper's <sjoerd-gnome at linuxonly.nl> fixes to cast
sentinel markers to pointers.  Solves compilation problems on 64 bit
architectures using gcc4/glib2.6.  Fixes #321316.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/ChangeLog	2005-11-16 21:59:48 UTC (rev 11963)
@@ -1,3 +1,26 @@
+2005-11-16    <david at hampton-pc.rainbolthampton.net>
+
+	* src/import-export/qif-import/dialog-account-picker.c:
+	* src/business/business-gnome/dialog-vendor.c:
+	* src/business/business-gnome/gnc-plugin-business.c:
+	* src/business/business-gnome/dialog-customer.c:
+	* src/business/business-gnome/dialog-job.c:
+	* src/business/business-gnome/gnc-plugin-page-invoice.c:
+	* src/business/business-gnome/dialog-employee.c:
+	* src/business/business-gnome/business-options-gnome.c:
+	* src/business/business-gnome/dialog-invoice.c:
+	* src/gnome-utils/druid-gconf-setup.c:
+	* src/gnome-utils/gnc-gnome-utils.c:
+	* src/gnome-utils/gnc-main-window.c:
+	* src/gnome-utils/dialog-utils.c:
+	* src/gnome/druid-hierarchy.c: Sjoerd Langkemper's <sjoerd-gnome
+	at linuxonly.nl> fixes to cast sentinel markers to pointers.
+	Solves compilation problems on 64 bit architectures using
+	gcc4/glib2.6.  Fixes #321316.
+
+	* lib/goffice/gui-utils/go-combo-text.c: Remove unused call to
+	g_object_set.
+
 2005-11-16  Christian Stimming  <stimming at tuhh.de>
 
 	* ChangeLog: Split top-level ChangeLog by year. Everything before

Modified: gnucash/trunk/src/business/business-gnome/business-options-gnome.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/business-options-gnome.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/business-options-gnome.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -77,7 +77,7 @@
   GtkWidget *label;
   gchar *colon_name;
 
-  colon_name = g_strconcat (name, ":", NULL);
+  colon_name = g_strconcat (name, ":", (char *)NULL);
   label = gtk_label_new (colon_name);
   gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
   g_free (colon_name);

Modified: gnucash/trunk/src/business/business-gnome/dialog-customer.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-customer.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/dialog-customer.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -365,12 +365,12 @@
 
   id = gtk_entry_get_text (GTK_ENTRY (cw->id_entry));
 
-  fullname = g_strconcat (name, " (", id, ")", NULL);
+  fullname = g_strconcat (name, " (", id, ")", (char *)NULL);
 
   if (cw->dialog_type == EDIT_CUSTOMER)
-    title = g_strconcat (_("Edit Customer"), " - ", fullname, NULL);
+    title = g_strconcat (_("Edit Customer"), " - ", fullname, (char *)NULL);
   else
-    title = g_strconcat (_("New Customer"), " - ", fullname, NULL);
+    title = g_strconcat (_("New Customer"), " - ", fullname, (char *)NULL);
 
   gtk_window_set_title (GTK_WINDOW (cw->dialog), title);
 

Modified: gnucash/trunk/src/business/business-gnome/dialog-employee.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-employee.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/dialog-employee.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -301,12 +301,12 @@
 
   id = gtk_entry_get_text (GTK_ENTRY (ew->id_entry));
 
-  fullname = g_strconcat (name, " (", id, ")", NULL);
+  fullname = g_strconcat (name, " (", id, ")", (char *)NULL);
 
   if (ew->dialog_type == EDIT_EMPLOYEE)
-    title = g_strconcat (_("Edit Employee"), " - ", fullname, NULL);
+    title = g_strconcat (_("Edit Employee"), " - ", fullname, (char *)NULL);
   else
-    title = g_strconcat (_("New Employee"), " - ", fullname, NULL);
+    title = g_strconcat (_("New Employee"), " - ", fullname, (char *)NULL);
 
   gtk_window_set_title (GTK_WINDOW (ew->dialog), title);
 

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -491,7 +491,7 @@
     gboolean result;
 
     if (gncEntryGetOrder (entry))
-      msg = g_strconcat (message, "\n\n", order_warn, NULL);
+      msg = g_strconcat (message, "\n\n", order_warn, (char *)NULL);
     else
       msg = g_strdup (message);
 
@@ -1573,7 +1573,7 @@
   if (iw->id_entry)
     id = gtk_entry_get_text (GTK_ENTRY (iw->id_entry));
   if (id && *id)
-    return g_strconcat (wintitle, " - ", id, NULL);
+    return g_strconcat (wintitle, " - ", id, (char *)NULL);
   return g_strdup (wintitle);
 }
 

Modified: gnucash/trunk/src/business/business-gnome/dialog-job.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-job.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/dialog-job.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -230,12 +230,12 @@
 
   id = gtk_entry_get_text (GTK_ENTRY (jw->id_entry));
 
-  fullname = g_strconcat (name, " (", id, ")", NULL);
+  fullname = g_strconcat (name, " (", id, ")", (char *)NULL);
 
   if (jw->dialog_type == EDIT_JOB)
-    title = g_strconcat (_("Edit Job"), " - ", fullname, NULL);
+    title = g_strconcat (_("Edit Job"), " - ", fullname, (char *)NULL);
   else
-    title = g_strconcat (_("New Job"), " - ", fullname, NULL);
+    title = g_strconcat (_("New Job"), " - ", fullname, (char *)NULL);
 
   gtk_window_set_title (GTK_WINDOW (jw->dialog), title);
 

Modified: gnucash/trunk/src/business/business-gnome/dialog-vendor.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-vendor.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/dialog-vendor.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -287,12 +287,12 @@
 
   id = gtk_editable_get_chars (GTK_EDITABLE (vw->id_entry), 0, -1);
 
-  fullname = g_strconcat (name, " (", id, ")", NULL);
+  fullname = g_strconcat (name, " (", id, ")", (char *)NULL);
 
   if (vw->dialog_type == EDIT_VENDOR)
-    title = g_strconcat (_("Edit Vendor"), " - ", fullname, NULL);
+    title = g_strconcat (_("Edit Vendor"), " - ", fullname, (char *)NULL);
   else
-    title = g_strconcat (_("New Vendor"), " - ", fullname, NULL);
+    title = g_strconcat (_("New Vendor"), " - ", fullname, (char *)NULL);
 
   gtk_window_set_title (GTK_WINDOW (vw->dialog), title);
 

Modified: gnucash/trunk/src/business/business-gnome/gnc-plugin-business.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/gnc-plugin-business.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/gnc-plugin-business.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -309,7 +309,7 @@
 	GNC_TYPE_PLUGIN_PAGE_INVOICE;
 
 	plugin = g_object_new (GNC_TYPE_PLUGIN_BUSINESS,
-			      NULL);
+			      (char *)NULL);
 
 	return GNC_PLUGIN (plugin);
 }

Modified: gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -261,7 +261,7 @@
 	    return GNC_PLUGIN_PAGE(invoice_page);
 	}
 
-	invoice_page = g_object_new (GNC_TYPE_PLUGIN_PAGE_INVOICE, NULL);
+	invoice_page = g_object_new (GNC_TYPE_PLUGIN_PAGE_INVOICE, (char *)NULL);
 	priv = GNC_PLUGIN_PAGE_INVOICE_GET_PRIVATE(invoice_page);
 	priv->iw = iw;
 
@@ -310,7 +310,7 @@
 		     "page-uri",       "default:",
 		     "ui-description", "gnc-plugin-page-invoice-ui.xml",
 		     "use-new-window", use_new,
-		     NULL);
+		     (char *)NULL);
 
 	/* change me when the system supports multiple books */
 	gnc_plugin_page_add_book(parent, gnc_get_current_book());

Modified: gnucash/trunk/src/gnome/druid-hierarchy.c
===================================================================
--- gnucash/trunk/src/gnome/druid-hierarchy.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/gnome/druid-hierarchy.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -639,7 +639,7 @@
 
 	g_object_set (G_OBJECT (cell),
 		      "text", string,
-		      NULL);
+		      (char *)NULL);
 }
 
 static void
@@ -740,7 +740,7 @@
   renderer = gtk_cell_renderer_text_new ();
   g_object_set (G_OBJECT (renderer),
 		"xalign", 1.0,
-		NULL);
+		(char *)NULL);
   column = gtk_tree_view_column_new_with_attributes (_("Opening Balance"),
 						     renderer,
 						     NULL);

Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -895,7 +895,7 @@
     glade_inited = TRUE;
   }
 
-  fname = g_strconcat (GNC_GLADE_DIR, "/", filename, NULL);
+  fname = g_strconcat (GNC_GLADE_DIR, "/", filename, (char *)NULL);
 
   xml = glade_xml_new (fname, root, NULL);
 

Modified: gnucash/trunk/src/gnome-utils/druid-gconf-setup.c
===================================================================
--- gnucash/trunk/src/gnome-utils/druid-gconf-setup.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/gnome-utils/druid-gconf-setup.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -115,8 +115,8 @@
   gboolean found_user_dir = FALSE;
   FILE *output;
 
-  data_filename = g_strjoin("/", g_getenv("HOME"), ".gconf", NULL);
-  path_filename = g_strjoin("/", g_getenv("HOME"), ".gconf.path", NULL);
+  data_filename = g_strjoin("/", g_getenv("HOME"), ".gconf", (char *)NULL);
+  path_filename = g_strjoin("/", g_getenv("HOME"), ".gconf.path", (char *)NULL);
   if (g_file_test(path_filename, G_FILE_TEST_EXISTS)) {
     if (!g_file_get_contents(path_filename, &contents, NULL, error)) {
       g_free(path_filename);

Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -127,7 +127,7 @@
 
   var = g_get_home_dir ();
   if (var) {
-    str = g_build_filename (var, ".gtkrc-2.0.gnucash", NULL);
+    str = g_build_filename (var, ".gtkrc-2.0.gnucash", (char *)NULL);
     gtk_rc_add_default_file (str);
     g_free (str);
   }

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -1173,7 +1173,7 @@
     g_object_set(G_OBJECT(action),
 		 "label", data->label,
 		 "visible", data->visible,
-		 NULL);
+		 (char *)NULL);
   LEAVE(" ");
 }
 
@@ -2312,7 +2312,7 @@
 	g_object_set(G_OBJECT(priv->notebook),
 			      "scrollable", TRUE,
 			      "enable-popup", TRUE,
-			      NULL);
+			      (char *)NULL);
 	gtk_widget_show (priv->notebook);
 	g_signal_connect (G_OBJECT (priv->notebook), "switch-page",
 			  G_CALLBACK (gnc_main_window_switch_page), window);
@@ -2387,7 +2387,7 @@
 	  GtkAction*  action;
 
 	  action = gtk_action_group_get_action(priv->action_group,"ExtensionsAction");
-	  g_object_set(G_OBJECT(action), "visible", FALSE, NULL);
+	  g_object_set(G_OBJECT(action), "visible", FALSE, (char *)NULL);
 	}
 
 	/* GncPluginManager stuff */

Modified: gnucash/trunk/src/import-export/qif-import/dialog-account-picker.c
===================================================================
--- gnucash/trunk/src/import-export/qif-import/dialog-account-picker.c	2005-11-16 21:58:09 UTC (rev 11962)
+++ gnucash/trunk/src/import-export/qif-import/dialog-account-picker.c	2005-11-16 21:59:48 UTC (rev 11963)
@@ -91,7 +91,7 @@
 
     /* set some row data */ 
     if(base_name && (strlen(base_name) > 0)) {
-      acctname =  g_strjoin(sep, base_name, acctinfo[0], NULL);
+      acctname =  g_strjoin(sep, base_name, acctinfo[0], (char *)NULL);
     }
     else {
       acctname = g_strdup(acctinfo[0]);
@@ -173,7 +173,7 @@
     name = gtk_entry_get_text(GTK_ENTRY(entry));
     if(wind->selected_name && (strlen(wind->selected_name) > 0)) {
       sep[0] = gnc_get_account_separator();
-      fullname = g_strjoin(sep, wind->selected_name, name, NULL);
+      fullname = g_strjoin(sep, wind->selected_name, name, (char *)NULL);
     }
     else {
       fullname = g_strdup(name);



More information about the gnucash-changes mailing list