diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-12-24 16:27:31 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-12-24 16:27:31 -0500 |
commit | 29eb3fba5f3a8e85c19cd3bd404f9e88a1541805 (patch) | |
tree | 6251d477013bad5529d67ef485a6ad369b6a3224 /gdk/x11/gdkselection-x11.c | |
parent | 92f163d40a037ae083b8a55bb2f8129740a42a62 (diff) | |
download | gtk+-29eb3fba5f3a8e85c19cd3bd404f9e88a1541805.tar.gz |
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.
Diffstat (limited to 'gdk/x11/gdkselection-x11.c')
-rw-r--r-- | gdk/x11/gdkselection-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |