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.
This commit is contained in:
Sven Neumann
2005-06-15 22:59:45 +00:00
committed by Sven Neumann
parent 03c941a9dc
commit a27ba426a8
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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;
}

View File

@ -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);