Deal with property encoding functions for quartz

This commit is contained in:
Matthias Clasen 2010-12-17 13:34:04 -05:00 committed by Kristian Rietveld
parent de41790470
commit bd1ff477ca
3 changed files with 20 additions and 58 deletions

View File

@ -259,4 +259,6 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
display_class->send_selection_notify = _gdk_quartz_display_send_selection_notify;
display_class->get_selection_property = _gdk_quartz_display_get_selection_property;
display_class->convert_selection = _gdk_quartz_display_convert_selection;
display_class->text_property_to_utf8_list = _gdk_quartz_display_text_property_to_utf8_list;
display_class->utf8_to_string_target = _gdk_quartz_display_utf8_to_string_target;
}

View File

@ -299,5 +299,14 @@ void _gdk_quartz_display_convert_selection (GdkDisplay *display,
GdkAtom selection,
GdkAtom target,
guint32 time);
gint _gdk_quartz_display_text_property_to_utf8_list (GdkDisplay *display,
GdkAtom encoding,
gint format,
const guchar *text,
gint length,
gchar ***list);
gchar * _gdk_quartz_display_utf8_to_string_target (GdkDisplay *displayt,
const gchar *str);
#endif /* __GDK_PRIVATE_QUARTZ_H__ */

View File

@ -76,63 +76,14 @@ _gdk_quartz_display_send_selection_send_notify (GdkDisplay *display,
/* FIXME: Implement */
}
gint
gdk_text_property_to_text_list_for_display (GdkDisplay *display,
GdkAtom encoding,
gint format,
const guchar *text,
gint length,
gchar ***list)
{
/* FIXME: Implement */
return 0;
}
gint
gdk_string_to_compound_text_for_display (GdkDisplay *display,
const gchar *str,
GdkAtom *encoding,
gint *format,
guchar **ctext,
gint *length)
{
/* FIXME: Implement */
return 0;
}
void gdk_free_compound_text (guchar *ctext)
{
/* FIXME: Implement */
}
gchar *
gdk_utf8_to_string_target (const gchar *str)
_gdk_quartz_display_utf8_to_string_target (GdkDisplay *display,
const gchar *str)
{
/* FIXME: Implement */
return NULL;
}
gboolean
gdk_utf8_to_compound_text_for_display (GdkDisplay *display,
const gchar *str,
GdkAtom *encoding,
gint *format,
guchar **ctext,
gint *length)
{
/* FIXME: Implement */
return 0;
}
void
gdk_free_text_list (gchar **list)
{
g_return_if_fail (list != NULL);
g_free (*list);
g_free (list);
}
static gint
make_list (const gchar *text,
gint length,
@ -203,7 +154,7 @@ make_list (const gchar *text,
}
gint
gdk_text_property_to_utf8_list_for_display (GdkDisplay *display,
_gdk_quartz_display_text_property_to_utf8_list (GdkDisplay *display,
GdkAtom encoding,
gint format,
const guchar *text,