Fix MacOS compiler warnings.

This commit is contained in:
John Ralls 2017-07-18 14:47:25 -07:00
parent ead480bc39
commit fb70bfb69b

View File

@ -512,8 +512,11 @@ void
gtk_clipboard_clear (GtkClipboard *clipboard) gtk_clipboard_clear (GtkClipboard *clipboard)
{ {
clipboard_unset (clipboard); clipboard_unset (clipboard);
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
[clipboard->pasteboard declareTypes:nil owner:nil]; [clipboard->pasteboard clearContents];
#else
[clipboard->pasteboard declareTypes:nil owner:nil];
#endif
} }
static void static void
@ -762,7 +765,6 @@ GdkPixbuf *
gtk_clipboard_wait_for_image (GtkClipboard *clipboard) gtk_clipboard_wait_for_image (GtkClipboard *clipboard)
{ {
GdkAtom target = gdk_atom_intern_static_string("image/tiff"); GdkAtom target = gdk_atom_intern_static_string("image/tiff");
int i;
GtkSelectionData *data; GtkSelectionData *data;
data = gtk_clipboard_wait_for_contents (clipboard, target); data = gtk_clipboard_wait_for_contents (clipboard, target);