mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Fix MacOS compiler warnings.
This commit is contained in:
parent
ead480bc39
commit
fb70bfb69b
@ -512,8 +512,11 @@ void
|
||||
gtk_clipboard_clear (GtkClipboard *clipboard)
|
||||
{
|
||||
clipboard_unset (clipboard);
|
||||
|
||||
[clipboard->pasteboard declareTypes:nil owner:nil];
|
||||
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
|
||||
[clipboard->pasteboard clearContents];
|
||||
#else
|
||||
[clipboard->pasteboard declareTypes:nil owner:nil];
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
@ -762,7 +765,6 @@ GdkPixbuf *
|
||||
gtk_clipboard_wait_for_image (GtkClipboard *clipboard)
|
||||
{
|
||||
GdkAtom target = gdk_atom_intern_static_string("image/tiff");
|
||||
int i;
|
||||
GtkSelectionData *data;
|
||||
|
||||
data = gtk_clipboard_wait_for_contents (clipboard, target);
|
||||
|
Loading…
Reference in New Issue
Block a user