Commit cf7f1e6c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/actions/error-console-commands.c use gimp_show_message_dialog().

2006-08-11  Sven Neumann  <sven@gimp.org>

	* app/actions/error-console-commands.c
	* app/actions/text-editor-commands.c: use gimp_show_message_dialog().
parent c2fb4200
2006-08-11 Sven Neumann <sven@gimp.org>
* app/actions/error-console-commands.c
* app/actions/text-editor-commands.c: use gimp_show_message_dialog().
2006-08-11 Sven Neumann <sven@gimp.org>
* app/widgets/gimpwidgets-utils.[ch]: introduced a simple message
......
......@@ -78,7 +78,8 @@ error_console_save_cmd_callback (GtkAction *action,
if (value && ! gtk_text_buffer_get_selection_bounds (console->text_buffer,
NULL, NULL))
{
g_message (_("Cannot save. Nothing is selected."));
gimp_show_message_dialog (GTK_WIDGET (console), GTK_MESSAGE_WARNING,
_("Cannot save. Nothing is selected."));
return;
}
......@@ -146,8 +147,10 @@ error_console_save_response (GtkWidget *dialog,
if (! gimp_text_buffer_save (console->text_buffer, filename,
console->save_selection, &error))
{
g_message (_("Error writing file '%s':\n%s"),
gimp_filename_to_utf8 (filename), error->message);
gimp_show_message_dialog (dialog, GTK_MESSAGE_ERROR,
_("Error writing file '%s':\n%s"),
gimp_filename_to_utf8 (filename),
error->message);
g_clear_error (&error);
g_free (filename);
return;
......
......@@ -134,8 +134,10 @@ text_editor_load_response (GtkWidget *dialog,
if (! gimp_text_buffer_load (buffer, filename, &error))
{
g_message (_("Could not open '%s' for reading: %s"),
gimp_filename_to_utf8 (filename), error->message);
gimp_show_message_dialog (dialog, GTK_MESSAGE_ERROR,
_("Could not open '%s' for reading: %s"),
gimp_filename_to_utf8 (filename),
error->message);
g_clear_error (&error);
g_free (filename);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment