[Gnucash-changes] Some gchar* to guchar* casting to make gcc4 happy.

David Hampton hampton at cvs.gnucash.org
Sun Jul 24 21:07:18 EDT 2005


Log Message:
-----------
Some gchar* to guchar* casting to make gcc4 happy.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/src/gnome-utils:
        print-session.c

Revision Data
-------------
Index: print-session.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/print-session.c,v
retrieving revision 1.2.4.9
retrieving revision 1.2.4.10
diff -Lsrc/gnome-utils/print-session.c -Lsrc/gnome-utils/print-session.c -u -r1.2.4.9 -r1.2.4.10
--- src/gnome-utils/print-session.c
+++ src/gnome-utils/print-session.c
@@ -43,7 +43,7 @@
   gint response;
 
   /* Ask the user what to do with the output */
-  dialog = gnome_print_dialog_new(ps->job, _("Print GnuCash Document"), 0);
+  dialog = gnome_print_dialog_new(ps->job, (guchar *) _("Print GnuCash Document"), 0);
   response = gtk_dialog_run(GTK_DIALOG(dialog));
   switch (response) {
     case GNOME_PRINT_DIALOG_RESPONSE_PRINT: 
@@ -63,10 +63,10 @@
   ps->hand_built_pages = hand_built_pages;
   ps->print_type = response;
 
-  ps->default_font = gnome_font_find_closest("Sans Regular", 12);
+  ps->default_font = gnome_font_find_closest((guchar *)"Sans Regular", 12);
 
   if (hand_built_pages) {
-    gnome_print_beginpage(ps->context, "");
+    gnome_print_beginpage(ps->context, (guchar *)"");
     gnome_print_setrgbcolor(ps->context, 0.0, 0.0, 0.0);
     gnome_print_setfont(ps->context, ps->default_font);
   }
@@ -92,7 +92,7 @@
 void 
 gnc_print_session_text(PrintSession * ps, const char * text)
 {
-  gnome_print_show(ps->context, text);  
+  gnome_print_show(ps->context, (guchar*)text);  
 }
 
 
@@ -112,7 +112,7 @@
       break;
 
     case GNOME_PRINT_DIALOG_RESPONSE_PREVIEW:
-      widget = gnome_print_job_preview_new(ps->job, "Print Preview");
+      widget = gnome_print_job_preview_new(ps->job, (guchar*)"Print Preview");
       gtk_widget_show(widget);
       break;
     


More information about the gnucash-changes mailing list