gimp r27551 - in trunk: . app/actions app/display plug-ins/common plug-ins/file-bmp plug-ins/file-fits plug-ins/file-jpeg plug-ins/file-uri plug-ins/help plug-ins/ifs-compose plug-ins/print



Author: neo
Date: Tue Nov  4 14:05:24 2008
New Revision: 27551
URL: http://svn.gnome.org/viewvc/gimp?rev=27551&view=rev

Log:
2008-11-04  Sven Neumann  <sven gimp org>

	* app/display/gimpdisplay-foreach.c: added missing include.

	* app/actions/debug-commands.c
	* plug-ins/common/lcms.c
	* plug-ins/common/mail.c
	* plug-ins/file-bmp/bmp-write.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-uri/uri.c
	* plug-ins/help/gimphelpdomain.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/print/print.c: fixed use of g_message() with literal
	strings.



Modified:
   trunk/ChangeLog
   trunk/app/actions/debug-commands.c
   trunk/app/display/gimpdisplay-foreach.c
   trunk/plug-ins/common/lcms.c
   trunk/plug-ins/common/mail.c
   trunk/plug-ins/file-bmp/bmp-write.c
   trunk/plug-ins/file-fits/fits.c
   trunk/plug-ins/file-jpeg/jpeg.c
   trunk/plug-ins/file-uri/uri.c
   trunk/plug-ins/help/gimphelpdomain.c
   trunk/plug-ins/ifs-compose/ifs-compose.c
   trunk/plug-ins/print/print.c

Modified: trunk/app/actions/debug-commands.c
==============================================================================
--- trunk/app/actions/debug-commands.c	(original)
+++ trunk/app/actions/debug-commands.c	Tue Nov  4 14:05:24 2008
@@ -182,7 +182,7 @@
                    "========================================\n\n",
                    entry->identifier);
 
-          g_print (gtk_ui_manager_get_ui (managers->data));
+          g_print ("%s\n", gtk_ui_manager_get_ui (managers->data));
         }
     }
 }

Modified: trunk/app/display/gimpdisplay-foreach.c
==============================================================================
--- trunk/app/display/gimpdisplay-foreach.c	(original)
+++ trunk/app/display/gimpdisplay-foreach.c	Tue Nov  4 14:05:24 2008
@@ -27,6 +27,7 @@
 #include "core/gimpcontainer.h"
 #include "core/gimpcontext.h"
 #include "core/gimpimage.h"
+#include "core/gimplist.h"
 
 #include "gimpdisplay.h"
 #include "gimpdisplay-foreach.h"

Modified: trunk/plug-ins/common/lcms.c
==============================================================================
--- trunk/plug-ins/common/lcms.c	(original)
+++ trunk/plug-ins/common/lcms.c	Tue Nov  4 14:05:24 2008
@@ -802,7 +802,7 @@
 
       if (! file)
         {
-          g_message (error->message);
+          g_message ("%s", error->message);
           g_error_free (error);
 
           return FALSE;
@@ -1107,7 +1107,7 @@
 
   if (! file)
     {
-      g_message (error->message);
+      g_message ("%s", error->message);
       g_error_free (error);
 
       return NULL;

Modified: trunk/plug-ins/common/mail.c
==============================================================================
--- trunk/plug-ins/common/mail.c	(original)
+++ trunk/plug-ins/common/mail.c	Tue Nov  4 14:05:24 2008
@@ -352,7 +352,7 @@
 
   if (! to64 (tmpname, mailpipe, &error))
     {
-      g_message (error->message);
+      g_message ("%s", error->message);
       g_error_free (error);
       goto error;
     }

Modified: trunk/plug-ins/file-bmp/bmp-write.c
==============================================================================
--- trunk/plug-ins/file-bmp/bmp-write.c	(original)
+++ trunk/plug-ins/file-bmp/bmp-write.c	Tue Nov  4 14:05:24 2008
@@ -123,10 +123,10 @@
 
   dialog = gtk_message_dialog_new (NULL, 0,
                                    GTK_MESSAGE_WARNING, GTK_BUTTONS_OK_CANCEL,
-                                   primary);
+                                   "%s", primary);
 
   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-                                            secondary);
+                                            "%s", secondary);
 
   gimp_window_set_transient (GTK_WINDOW (dialog));
 

Modified: trunk/plug-ins/file-fits/fits.c
==============================================================================
--- trunk/plug-ins/file-fits/fits.c	(original)
+++ trunk/plug-ins/file-fits/fits.c	Tue Nov  4 14:05:24 2008
@@ -1061,9 +1061,9 @@
 static void
 show_fits_errors (void)
 {
-  gchar *msg;
+  const gchar *msg;
 
   /* Write out error messages of FITS-Library */
   while ((msg = fits_get_error ()) != NULL)
-    g_message (msg);
+    g_message ("%s", msg);
 }

Modified: trunk/plug-ins/file-jpeg/jpeg.c
==============================================================================
--- trunk/plug-ins/file-jpeg/jpeg.c	(original)
+++ trunk/plug-ins/file-jpeg/jpeg.c	Tue Nov  4 14:05:24 2008
@@ -561,5 +561,6 @@
   gchar  buffer[JMSG_LENGTH_MAX + 1];
 
   (*cinfo->err->format_message)(cinfo, buffer);
-  g_message (buffer);
+
+  g_message ("%s", buffer);
 }

Modified: trunk/plug-ins/file-uri/uri.c
==============================================================================
--- trunk/plug-ins/file-uri/uri.c	(original)
+++ trunk/plug-ins/file-uri/uri.c	Tue Nov  4 14:05:24 2008
@@ -102,7 +102,7 @@
 
   if (! uri_backend_init (PLUG_IN_BINARY, FALSE, 0, &error))
     {
-      g_message (error->message);
+      g_message ("%s", error->message);
       g_clear_error (&error);
 
       return;

Modified: trunk/plug-ins/help/gimphelpdomain.c
==============================================================================
--- trunk/plug-ins/help/gimphelpdomain.c	(original)
+++ trunk/plug-ins/help/gimphelpdomain.c	Tue Nov  4 14:05:24 2008
@@ -202,7 +202,7 @@
               break;
 
             default:
-              g_message (error->message);
+              g_message ("%s", error->message);
               break;
             }
 

Modified: trunk/plug-ins/ifs-compose/ifs-compose.c
==============================================================================
--- trunk/plug-ins/ifs-compose/ifs-compose.c	(original)
+++ trunk/plug-ins/ifs-compose/ifs-compose.c	Tue Nov  4 14:05:24 2008
@@ -2341,7 +2341,8 @@
 {
   GtkWidget *dialog;
 
-  dialog = gtk_message_dialog_new (parent, 0, type, GTK_BUTTONS_OK, message);
+  dialog = gtk_message_dialog_new (parent, 0, type, GTK_BUTTONS_OK,
+				   "%s", message);
 
   if (title)
     gtk_window_set_title (GTK_WINDOW (dialog), title);

Modified: trunk/plug-ins/print/print.c
==============================================================================
--- trunk/plug-ins/print/print.c	(original)
+++ trunk/plug-ins/print/print.c	Tue Nov  4 14:05:24 2008
@@ -345,10 +345,11 @@
   dialog = gtk_message_dialog_new (NULL, 0,
                                    GTK_MESSAGE_ERROR,
                                    GTK_BUTTONS_OK,
+				   "%s",
                                    _("An error occurred while trying to print:"));
 
   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-                                            message);
+                                            "%s", message);
 
   gtk_dialog_run (GTK_DIALOG (dialog));
   gtk_widget_destroy (dialog);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]