added missing include.

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.


svn path=/trunk/; revision=27551
This commit is contained in:
Sven Neumann 2008-11-04 14:05:24 +00:00 committed by Sven Neumann
parent d163e9c604
commit cc7222d8e4
12 changed files with 33 additions and 13 deletions

View File

@ -1,3 +1,19 @@
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.
2008-11-04 Sven Neumann <sven@gimp.org>
* configure.in: bumped minimum required version of GLib to 2.18.0.

View File

@ -182,7 +182,7 @@ debug_dump_managers_cmd_callback (GtkAction *action,
"========================================\n\n",
entry->identifier);
g_print (gtk_ui_manager_get_ui (managers->data));
g_print ("%s\n", gtk_ui_manager_get_ui (managers->data));
}
}
}

View File

@ -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"

View File

@ -802,7 +802,7 @@ lcms_image_set_profile (gint32 image,
if (! file)
{
g_message (error->message);
g_message ("%s", error->message);
g_error_free (error);
return FALSE;
@ -1107,7 +1107,7 @@ lcms_load_profile (const gchar *filename,
if (! file)
{
g_message (error->message);
g_message ("%s", error->message);
g_error_free (error);
return NULL;

View File

@ -352,7 +352,7 @@ save_image (const gchar *filename,
if (! to64 (tmpname, mailpipe, &error))
{
g_message (error->message);
g_message ("%s", error->message);
g_error_free (error);
goto error;
}

View File

@ -123,10 +123,10 @@ warning_dialog (const gchar *primary,
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));

View File

@ -1061,9 +1061,9 @@ load_dialog (void)
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);
}

View File

@ -561,5 +561,6 @@ my_output_message (j_common_ptr cinfo)
gchar buffer[JMSG_LENGTH_MAX + 1];
(*cinfo->err->format_message)(cinfo, buffer);
g_message (buffer);
g_message ("%s", buffer);
}

View File

@ -102,7 +102,7 @@ query (void)
if (! uri_backend_init (PLUG_IN_BINARY, FALSE, 0, &error))
{
g_message (error->message);
g_message ("%s", error->message);
g_clear_error (&error);
return;

View File

@ -202,7 +202,7 @@ gimp_help_domain_map (GimpHelpDomain *domain,
break;
default:
g_message (error->message);
g_message ("%s", error->message);
break;
}

View File

@ -2341,7 +2341,8 @@ ifscompose_message_dialog (GtkMessageType type,
{
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);

View File

@ -345,10 +345,11 @@ print_show_error (const gchar *message)
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);