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:
committed by
Sven Neumann
parent
03c941a9dc
commit
a27ba426a8
@ -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.
|
||||
|
||||
@ -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,
|
||||
©_data->error))
|
||||
return;
|
||||
{
|
||||
if (! option_store_filename)
|
||||
gtk_main_quit ();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
gtk_selection_data_set (selection, selection->target,
|
||||
8, (guchar *) buf, buf_size);
|
||||
|
||||
Reference in New Issue
Block a user