summaryrefslogtreecommitdiff
path: root/gtk/gtkclipboard.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@imendio.com>2004-10-25 18:53:30 +0000
committerAnders Carlsson <andersca@src.gnome.org>2004-10-25 18:53:30 +0000
commit06c4bb44b139f2ed40b70c0303836e1e8558e8d9 (patch)
treea7557d40605792094a799f0dade341dfd757198d /gtk/gtkclipboard.h
parent615deb5728d07f02fabc31718a204e99de13485b (diff)
downloadgtk+-06c4bb44b139f2ed40b70c0303836e1e8558e8d9.tar.gz
New API to handle the clipboard manager.
2004-10-25 Anders Carlsson <andersca@imendio.com> * gdk/gdk.symbols: * gdk/gdkdisplay.h: * gdk/x11/gdkdisplay-x11.c: (gdk_display_supports_clipboard_persistence), (gdk_display_store_clipboard): New API to handle the clipboard manager. * gtk/gtk.symbols: * gtk/gtkclipboard.c: (gtk_clipboard_class_init), (gtk_clipboard_finalize), (selection_clear_event_cb), (clipboard_unset), (gtk_clipboard_set_text), (gtk_clipboard_request_targets), (gtk_clipboard_wait_for_targets), (clipboard_peek), (gtk_clipboard_owner_change), (gtk_clipboard_wait_is_target_available), (gtk_clipboard_store_timeout), (gtk_clipboard_set_can_store), (gtk_clipboard_selection_notify), (gtk_clipboard_store), (_gtk_clipboard_store_all): * gtk/gtkclipboard.h: Add API for clipboard persistence and implement it, also add gtk_clipboard_wait_is_target_available. * gtk/gtkmain.c: (gtk_main): Call _gtk_clipboard_store_all before exiting.
Diffstat (limited to 'gtk/gtkclipboard.h')
-rw-r--r--gtk/gtkclipboard.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/gtk/gtkclipboard.h b/gtk/gtkclipboard.h
index d706567e5f..bc7da190d4 100644
--- a/gtk/gtkclipboard.h
+++ b/gtk/gtkclipboard.h
@@ -94,19 +94,29 @@ void gtk_clipboard_request_targets (GtkClipboard *clipboard,
GtkClipboardTargetsReceivedFunc callback,
gpointer user_data);
-GtkSelectionData *gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
- GdkAtom target);
-gchar * gtk_clipboard_wait_for_text (GtkClipboard *clipboard);
+GtkSelectionData *gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
+ GdkAtom target);
+gchar * gtk_clipboard_wait_for_text (GtkClipboard *clipboard);
+gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard,
+ GdkAtom **targets,
+ gint *n_targets);
-gboolean gtk_clipboard_wait_is_text_available (GtkClipboard *clipboard);
+gboolean gtk_clipboard_wait_is_text_available (GtkClipboard *clipboard);
+gboolean gtk_clipboard_wait_is_target_available (GtkClipboard *clipboard,
+ GdkAtom target);
-gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard,
- GdkAtom **targets,
- gint *n_targets);
+void gtk_clipboard_set_can_store (GtkClipboard *clipboard,
+ GtkTargetEntry *targets,
+ gint n_targets);
+
+void gtk_clipboard_store (GtkClipboard *clipboard);
+
/* private */
void _gtk_clipboard_handle_event (GdkEventOwnerChange *event);
+void _gtk_clipboard_store_all (void);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */