summaryrefslogtreecommitdiff
path: root/gtk/gtkclipboard.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-05-18 20:56:54 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-05-18 20:56:54 +0000
commit7b8616bf76e42e7b71543d4da9a3ca8e02c4d0d5 (patch)
tree139d727a115ba783ae0655d52f7835d731548700 /gtk/gtkclipboard.h
parent261d5404386a176a6a209d3deee08dc9b94f2d1a (diff)
downloadgtk+-7b8616bf76e42e7b71543d4da9a3ca8e02c4d0d5.tar.gz
Check for XFIXES extension.
2004-05-18 Matthias Clasen <mclasen@redhat.com> * configure.in: Check for XFIXES extension. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a gboolean have_xfixes member. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register XFIXES events and set have_xfixes. * gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE. (GdkEventOwnerChange): New event struct for owner change events. (GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange. * gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate XFixesSelectionNotify events into GdkEventOwnerChange events. * gdk/gdkdisplay.h: * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification): (gdk_display_request_selection_notification): New api to support selection ownership notification. * gtk/gtkclipboard.h: * gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private api to handle owner change events. (clipboard_peek): Refactored out the body of gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event(). * gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events by calling _gtk_clipboard_handle_event().
Diffstat (limited to 'gtk/gtkclipboard.h')
-rw-r--r--gtk/gtkclipboard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkclipboard.h b/gtk/gtkclipboard.h
index 3d2268393a..d706567e5f 100644
--- a/gtk/gtkclipboard.h
+++ b/gtk/gtkclipboard.h
@@ -104,6 +104,9 @@ gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard,
GdkAtom **targets,
gint *n_targets);
+/* private */
+void _gtk_clipboard_handle_event (GdkEventOwnerChange *event);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */