3 #include "gdkproperty.h"
4 #include "gdkdisplay.h"
5 #include "gdkselection.h"
8 gdk_selection_owner_set (GdkWindow *owner,
13 return gdk_selection_owner_set_for_display (gdk_display_get_default (),
19 gdk_selection_owner_get (GdkAtom selection)
21 return gdk_selection_owner_get_for_display (gdk_display_get_default (),
26 gdk_selection_send_notify (guint32 requestor,
32 gdk_selection_send_notify_for_display (gdk_display_get_default (),
34 target, property, time);
38 gdk_text_property_to_text_list (GdkAtom encoding,
44 return gdk_text_property_to_text_list_for_display (gdk_display_get_default (),
45 encoding, format, text, length, list);
49 * gdk_text_property_to_utf8_list:
50 * @encoding: an atom representing the encoding of the text
51 * @format: the format of the property
52 * @text: the text to convert
53 * @length: the length of @text, in bytes
54 * @list: location to store the list of strings or %NULL. The
55 * list should be freed with g_strfreev().
57 * Convert a text property in the giving encoding to
58 * a list of UTF-8 strings.
60 * Return value: the number of strings in the resulting
64 gdk_text_property_to_utf8_list (GdkAtom encoding,
70 return gdk_text_property_to_utf8_list_for_display (gdk_display_get_default (),
71 encoding, format, text, length, list);
75 gdk_string_to_compound_text (const gchar *str,
81 return gdk_string_to_compound_text_for_display (gdk_display_get_default (),
82 str, encoding, format,
87 * gdk_utf8_to_compound_text:
88 * @str: a UTF-8 string
89 * @encoding: location to store resulting encoding
90 * @format: location to store format of the result
91 * @ctext: location to store the data of the result
92 * @length: location to store the length of the data
95 * Convert from UTF-8 to compound text.
97 * Return value: %TRUE if the conversion succeeded, otherwise
101 gdk_utf8_to_compound_text (const gchar *str,
107 return gdk_utf8_to_compound_text_for_display (gdk_display_get_default (),
108 str, encoding, format,