Commit a27ba426 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

exit from main loop if g_file_get_contents() fails.

2005-06-16  Sven Neumann  <sven@gimp.org>

	* tools/test-clipboard.c (test_clipboard_copy_callback): exit from
	main loop if g_file_get_contents() fails.
parent 03c941a9
2005-06-16 Sven Neumann <sven@gimp.org>
* tools/test-clipboard.c (test_clipboard_copy_callback): exit from
main loop if g_file_get_contents() fails.
2005-06-16 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-close.c: capitalization.
......
......@@ -166,9 +166,9 @@ HELP
if (success)
{
layer = gimp_edit_paste (gimp_item_get_image (GIMP_ITEM (drawable)),
drawable, gimp->global_buffer,
paste_into, -1, -1, -1, -1);
layer = gimp_edit_paste_pdb (gimp_item_get_image (GIMP_ITEM (drawable)),
drawable, gimp->global_buffer,
paste_into);
if (! layer)
success = FALSE;
}
......
......@@ -397,7 +397,12 @@ test_clipboard_copy_callback (GtkClipboard *clipboard,
if (! g_file_get_contents (copy_data->filename, &buf, &buf_size,
&copy_data->error))
return;
{
if (! option_store_filename)
gtk_main_quit ();
return;
}
gtk_selection_data_set (selection, selection->target,
8, (guchar *) buf, buf_size);
......
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