From 29eb3fba5f3a8e85c19cd3bd404f9e88a1541805 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 24 Dec 2010 16:27:31 -0500 Subject: Fix gdk_x11_display_text_property_to_text_list This was an incomplete attempt to get rid of the custom free function. Lets just keep it for now. Bug 637849, patch by Dan Winship. Also add a test case for this function. --- gdk/x11/gdkselection-x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdk/x11') diff --git a/gdk/x11/gdkselection-x11.c b/gdk/x11/gdkselection-x11.c index 5a0dfeac0f..f13207b955 100644 --- a/gdk/x11/gdkselection-x11.c +++ b/gdk/x11/gdkselection-x11.c @@ -340,7 +340,7 @@ _gdk_x11_display_send_selection_notify (GdkDisplay *display, * @format: the format of the property * @text: The text data * @length: The number of items to transform - * @list: location to store a terminated array of strings in + * @list: location to store an array of strings in * the encoding of the current locale. This array should be * freed using gdk_free_text_list(). * @@ -385,7 +385,7 @@ gdk_x11_display_text_property_to_text_list (GdkDisplay *display, else { if (list) - *list = g_strdupv (local_list); + *list = local_list; else XFreeStringList (local_list); -- cgit v1.2.1