1 #include "gdkproperty.h"
2 #include "gdkdisplay.h"
3 #include "gdkselection.h"
6 gdk_selection_owner_set (GdkWindow *owner,
11 return gdk_selection_owner_set_for_display (gdk_display_get_default (),
17 gdk_selection_owner_get (GdkAtom selection)
19 return gdk_selection_owner_get_for_display (gdk_display_get_default (),
24 gdk_selection_send_notify (guint32 requestor,
30 gdk_selection_send_notify_for_display (gdk_display_get_default (),
32 target, property, time);
36 gdk_text_property_to_text_list (GdkAtom encoding,
42 return gdk_text_property_to_text_list_for_display (gdk_display_get_default (),
43 encoding, format, text, length, list);
47 * gdk_text_property_to_utf8_list:
48 * @encoding: an atom representing the encoding of the text
49 * @format: the format of the property
50 * @text: the text to convert
51 * @length: the length of @text, in bytes
52 * @list: location to store the list of strings or %NULL. The
53 * list should be freed with g_strfreev().
55 * Convert a text property in the giving encoding to
56 * a list of UTF-8 strings.
58 * Return value: the number of strings in the resulting
62 gdk_text_property_to_utf8_list (GdkAtom encoding,
68 return gdk_text_property_to_utf8_list_for_display (gdk_display_get_default (),
69 encoding, format, text, length, list);
73 gdk_string_to_compound_text (const gchar *str,
79 return gdk_string_to_compound_text_for_display (gdk_display_get_default (),
80 str, encoding, format,
85 * gdk_utf8_to_compound_text:
86 * @str: a UTF-8 string
87 * @encoding: location to store resulting encoding
88 * @format: location to store format of the result
89 * @ctext: location to store the data of the result
90 * @length: location to store the length of the data
93 * Convert from UTF-8 to compound text.
95 * Return value: %TRUE if the conversion succeeded, otherwise
99 gdk_utf8_to_compound_text (const gchar *str,
105 return gdk_utf8_to_compound_text_for_display (gdk_display_get_default (),
106 str, encoding, format,