summaryrefslogtreecommitdiff
path: root/gtk/gtkclipboard-quartz.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-11-30 16:57:22 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-11-30 17:20:38 -0500
commitbbb3f6a2db9633a16f1b7ed996d2dff2c549cbbb (patch)
treeabb49346b15e7fa78f1006ae7e676cae905f4797 /gtk/gtkclipboard-quartz.c
parentbae4450698e49f0ddbe80e967d332d66584e9eec (diff)
downloadgtk+-bbb3f6a2db9633a16f1b7ed996d2dff2c549cbbb.tar.gz
quartz: Copy annotations
Better than juggling introspection sources in the Makefile.
Diffstat (limited to 'gtk/gtkclipboard-quartz.c')
-rw-r--r--gtk/gtkclipboard-quartz.c132
1 files changed, 132 insertions, 0 deletions
diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c
index 88c39f2766..b0625f11d4 100644
--- a/gtk/gtkclipboard-quartz.c
+++ b/gtk/gtkclipboard-quartz.c
@@ -198,6 +198,11 @@ gtk_clipboard_class_init (GtkClipboardClass *class)
class->owner_change = gtk_clipboard_owner_change;
+ /**
+ * GtkClipboard::owner-change:
+ * @clipboard:
+ * @event: (type GdkEventOwnerChange):
+ */
clipboard_signals[OWNER_CHANGE] =
g_signal_new (I_("owner-change"),
G_TYPE_FROM_CLASS (gobject_class),
@@ -252,6 +257,13 @@ clipboard_display_closed (GdkDisplay *display,
g_object_unref (clipboard);
}
+/**
+ * gtk_clipboard_get_for_display:
+ * @display:
+ * @selection:
+ *
+ * Returns: (transfer none):
+ */
GtkClipboard *
gtk_clipboard_get_for_display (GdkDisplay *display,
GdkAtom selection)
@@ -262,6 +274,12 @@ gtk_clipboard_get_for_display (GdkDisplay *display,
return clipboard_peek (display, selection, FALSE);
}
+/**
+ * gtk_clipboard_get:
+ * @selection:
+ *
+ * Returns: (transfer none):
+ */
GtkClipboard *
gtk_clipboard_get (GdkAtom selection)
{
@@ -402,6 +420,15 @@ gtk_clipboard_set_contents (GtkClipboard *clipboard,
return TRUE;
}
+/**
+ * gtk_clipboard_set_with_data: (skip)
+ * @clipboard:
+ * @targets: (array length=n_targets):
+ * @n_targets:
+ * @get_func: (scope async):
+ * @clear_func: (scope async):
+ * @user_data:
+ */
gboolean
gtk_clipboard_set_with_data (GtkClipboard *clipboard,
const GtkTargetEntry *targets,
@@ -419,6 +446,14 @@ gtk_clipboard_set_with_data (GtkClipboard *clipboard,
FALSE);
}
+/**
+ * gtk_clipboard_set_with_owner: (skip)
+ * @clipboard:
+ * @targets: (array length=n_targets):
+ * @get_func: (scope async):
+ * @clear_func: (scope async):
+ * @owner:
+ */
gboolean
gtk_clipboard_set_with_owner (GtkClipboard *clipboard,
const GtkTargetEntry *targets,
@@ -437,6 +472,12 @@ gtk_clipboard_set_with_owner (GtkClipboard *clipboard,
TRUE);
}
+/**
+ * gtk_clipboard_get_owner:
+ * @clipboard:
+ *
+ * Returns: (transfer none):
+ */
GObject *
gtk_clipboard_get_owner (GtkClipboard *clipboard)
{
@@ -595,6 +636,13 @@ gtk_clipboard_set_image (GtkClipboard *clipboard,
gtk_target_list_unref (list);
}
+/**
+ * gtk_clipboard_request_contents:
+ * @clipboard:
+ * @target:
+ * @callback: (scope async):
+ * @user_data:
+ */
void
gtk_clipboard_request_contents (GtkClipboard *clipboard,
GdkAtom target,
@@ -610,6 +658,12 @@ gtk_clipboard_request_contents (GtkClipboard *clipboard,
gtk_selection_data_free (data);
}
+/**
+ * gtk_clipboard_request_text:
+ * @clipboard:
+ * @callback: (scope async):
+ * @user_data:
+ */
void
gtk_clipboard_request_text (GtkClipboard *clipboard,
GtkClipboardTextReceivedFunc callback,
@@ -622,6 +676,13 @@ gtk_clipboard_request_text (GtkClipboard *clipboard,
g_free (data);
}
+/**
+ * gtk_clipboard_request_rich_text:
+ * @clipboard:
+ * @buffer:
+ * @callback: (scope async):
+ * @user_data:
+ */
void
gtk_clipboard_request_rich_text (GtkClipboard *clipboard,
GtkTextBuffer *buffer,
@@ -632,6 +693,15 @@ gtk_clipboard_request_rich_text (GtkClipboard *clipboard,
}
+/**
+ * gtk_clipboard_wait_for_rich_text:
+ * @clipboard:
+ * @buffer:
+ * @format: (out):
+ * @length: (out):
+ *
+ * Returns: (nullable):
+ */
guint8 *
gtk_clipboard_wait_for_rich_text (GtkClipboard *clipboard,
GtkTextBuffer *buffer,
@@ -642,6 +712,12 @@ gtk_clipboard_wait_for_rich_text (GtkClipboard *clipboard,
return NULL;
}
+/**
+ * gtk_clipboard_request_image:
+ * @clipboard:
+ * @callback: (scope async):
+ * @user_data:
+ */
void
gtk_clipboard_request_image (GtkClipboard *clipboard,
GtkClipboardImageReceivedFunc callback,
@@ -655,6 +731,12 @@ gtk_clipboard_request_image (GtkClipboard *clipboard,
g_object_unref (pixbuf);
}
+/**
+ * gtk_clipboard_request_uris:
+ * @clipboard:
+ * @callback: (scope async):
+ * @user_data:
+ */
void
gtk_clipboard_request_uris (GtkClipboard *clipboard,
GtkClipboardURIReceivedFunc callback,
@@ -667,6 +749,12 @@ gtk_clipboard_request_uris (GtkClipboard *clipboard,
g_strfreev (uris);
}
+/**
+ * gtk_clipboard_request_targets:
+ * @clipboard:
+ * @callback: (scope async):
+ * @user_data:
+ */
void
gtk_clipboard_request_targets (GtkClipboard *clipboard,
GtkClipboardTargetsReceivedFunc callback,
@@ -680,6 +768,13 @@ gtk_clipboard_request_targets (GtkClipboard *clipboard,
callback (clipboard, targets, n_targets, user_data);
}
+/**
+ * gtk_clipboard_wait_for_contents:
+ * @clipboard:
+ * @target:
+ *
+ * Returns: (nullable):
+ */
GtkSelectionData *
gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
GdkAtom target)
@@ -733,6 +828,13 @@ gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
return selection_data;
}
+/**
+ * gtk_clipboard_wait_for_text:
+ * @clipboard:
+ * @target:
+ *
+ * Returns: (nullable):
+ */
gchar *
gtk_clipboard_wait_for_text (GtkClipboard *clipboard)
{
@@ -749,6 +851,12 @@ gtk_clipboard_wait_for_text (GtkClipboard *clipboard)
return result;
}
+/**
+ * gtk_clipboard_wait_for_image:
+ * @clipboard:
+ *
+ * Returns: (nullable) (transfer full):
+ */
GdkPixbuf *
gtk_clipboard_wait_for_image (GtkClipboard *clipboard)
{
@@ -773,6 +881,12 @@ gtk_clipboard_wait_for_image (GtkClipboard *clipboard)
return NULL;
}
+/**
+ * gtk_clipboard_wait_for_uris:
+ * @clipboard:
+ *
+ * Returns: (nullable) (array zero-terminated=1):
+ */
gchar **
gtk_clipboard_wait_for_uris (GtkClipboard *clipboard)
{
@@ -792,6 +906,12 @@ gtk_clipboard_wait_for_uris (GtkClipboard *clipboard)
return NULL;
}
+/**
+ * gtk_clipboard_get_display:
+ * @clipboard:
+ *
+ * Returns: (transfer none):
+ */
GdkDisplay *
gtk_clipboard_get_display (GtkClipboard *clipboard)
{
@@ -870,6 +990,12 @@ gtk_clipboard_wait_is_uris_available (GtkClipboard *clipboard)
return result;
}
+/**
+ * gtk_clipboard_wait_for_targets:
+ * @clipboard:
+ * @targets: (out) (array length=n_targets):
+ * @n_targets: (out):
+ */
gboolean
gtk_clipboard_wait_for_targets (GtkClipboard *clipboard,
GdkAtom **targets,
@@ -1030,6 +1156,12 @@ _gtk_clipboard_handle_event (GdkEventOwnerChange *event)
{
}
+/**
+ * gtk_clipboard_set_can_store:
+ * @clipboard:
+ * @targets: (allow-none) (array length=n_targets):
+ * @n_targets:
+ */
void
gtk_clipboard_set_can_store (GtkClipboard *clipboard,
const GtkTargetEntry *targets,