#include "gtkmain.h"
#include "gtkmarshalers.h"
#include "gtkintl.h"
-#include "gtkalias.h"
#include "gtktextbuffer.h"
-
#include "gtkquartz.h"
+#include "gtkalias.h"
enum {
OWNER_CHANGE,
_gtk_quartz_set_selection_data_for_pasteboard (clipboard->pasteboard, &selection_data);
g_free (selection_data.data);
-
- NSLog(@"Provide data for %@", type);
}
- (void)pasteboardChangedOwner:(NSPasteboard *)sender
if (!clipboard_type)
{
- static const GTypeInfo clipboard_info =
+ const GTypeInfo clipboard_info =
{
sizeof (GtkClipboardClass),
NULL, /* base_init */
{
GtkClipboardOwner *owner;
NSArray *types;
+ NSAutoreleasePool *pool;
+
+ pool = [[NSAutoreleasePool alloc] init];
owner = [[GtkClipboardOwner alloc] initWithClipboard:clipboard];
+
types = _gtk_quartz_target_entries_to_pasteboard_types (targets, n_targets);
clipboard->user_data = user_data;
[clipboard->pasteboard declareTypes:types owner:owner];
+ [pool release];
+
return true;
}
/* FIXME: Implement */
}
+
+guint8 *
+gtk_clipboard_wait_for_rich_text (GtkClipboard *clipboard,
+ GtkTextBuffer *buffer,
+ GdkAtom *format,
+ gsize *length)
+{
+ /* FIXME: Implement */
+ return NULL;
+}
+
/**
* gtk_clipboard_request_image:
* @clipboard: a #GtkClipboard