diff options
Diffstat (limited to 'gdk/gdkselection.c')
-rw-r--r-- | gdk/gdkselection.c | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/gdk/gdkselection.c b/gdk/gdkselection.c index 76c5f19fc4..09e495083f 100644 --- a/gdk/gdkselection.c +++ b/gdk/gdkselection.c @@ -61,110 +61,6 @@ */ /** - * gdk_selection_send_notify: - * @requestor: window to which to deliver response. - * @selection: selection that was requested. - * @target: target that was selected. - * @property: property in which the selection owner stored the - * data, or %NULL to indicate that the request - * was rejected. - * @time_: timestamp. - * - * Sends a response to SelectionRequest event. - */ -void -gdk_selection_send_notify (GdkWindow *requestor, - GdkAtom selection, - GdkAtom target, - GdkAtom property, - guint32 time) -{ - gdk_selection_send_notify_for_display (gdk_window_get_display (requestor), - requestor, selection, - target, property, time); -} - -/** - * gdk_selection_send_notify_for_display: - * @display: the #GdkDisplay where @requestor is realized - * @requestor: window to which to deliver response - * @selection: selection that was requested - * @target: target that was selected - * @property: property in which the selection owner stored the data, - * or %NULL to indicate that the request was rejected - * @time_: timestamp - * - * Send a response to SelectionRequest event. - * - * Since: 2.2 - */ -void -gdk_selection_send_notify_for_display (GdkDisplay *display, - GdkWindow *requestor, - GdkAtom selection, - GdkAtom target, - GdkAtom property, - guint32 time_) -{ - g_return_if_fail (GDK_IS_DISPLAY (display)); - - GDK_DISPLAY_GET_CLASS (display) - ->send_selection_notify (display, requestor, selection,target, property, time_); -} - -/** - * gdk_selection_property_get: (skip) - * @requestor: the window on which the data is stored - * @data: location to store a pointer to the retrieved data. - If the retrieval failed, %NULL we be stored here, otherwise, it - will be non-%NULL and the returned data should be freed with g_free() - when you are finished using it. The length of the - allocated memory is one more than the length - of the returned data, and the final byte will always - be zero, to ensure nul-termination of strings - * @prop_type: location to store the type of the property - * @prop_format: location to store the format of the property - * - * Retrieves selection data that was stored by the selection - * data in response to a call to gdk_selection_convert(). This function - * will not be used by applications, who should use the #GtkClipboard - * API instead. - * - * Returns: the length of the retrieved data. - */ -gint -gdk_selection_property_get (GdkWindow *requestor, - guchar **data, - GdkAtom *ret_type, - gint *ret_format) -{ - GdkDisplay *display; - - g_return_val_if_fail (GDK_IS_WINDOW (requestor), 0); - - display = gdk_window_get_display (requestor); - - return GDK_DISPLAY_GET_CLASS (display) - ->get_selection_property (display, requestor, data, ret_type, ret_format); -} - -void -gdk_selection_convert (GdkWindow *requestor, - GdkAtom selection, - GdkAtom target, - guint32 time) -{ - GdkDisplay *display; - - g_return_if_fail (selection != NULL); - - display = gdk_window_get_display (requestor); - - GDK_DISPLAY_GET_CLASS (display) - ->convert_selection (display, requestor, selection, target, time); -} - -/** * gdk_text_property_to_utf8_list_for_display: * @display: a #GdkDisplay * @encoding: an atom representing the encoding of the text |