From 06c4bb44b139f2ed40b70c0303836e1e8558e8d9 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 25 Oct 2004 18:53:30 +0000 Subject: New API to handle the clipboard manager. 2004-10-25 Anders Carlsson * 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. --- gdk/gdkdisplay.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdk/gdkdisplay.h') diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h index 75c1b9c3ed..219de1e537 100644 --- a/gdk/gdkdisplay.h +++ b/gdk/gdkdisplay.h @@ -168,6 +168,13 @@ gboolean gdk_display_supports_selection_notification (GdkDisplay *display); gboolean gdk_display_request_selection_notification (GdkDisplay *display, GdkAtom selection); +gboolean gdk_display_supports_clipboard_persistence (GdkDisplay *display); +void gdk_display_store_clipboard (GdkDisplay *display, + GdkWindow *clipboard_window, + guint32 time_, + GdkAtom *targets, + gint n_targets); + G_END_DECLS #endif /* __GDK_DISPLAY_H__ */ -- cgit v1.2.1