[Xfce4-commits] <xfce4-settings:jeromeg/clipboard-daemon> Fix one of the last commits.

Jérôme Guelfucci noreply at xfce.org
Thu Dec 10 13:44:03 CET 2009


Updating branch refs/heads/jeromeg/clipboard-daemon
         to d2cf847ec79a80a150845fd95a3a16fce2743da9 (commit)
       from c18184f293878c35e5e95e77ca26ea5ffda81b25 (commit)

commit d2cf847ec79a80a150845fd95a3a16fce2743da9
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Dec 10 13:40:57 2009 +0100

    Fix one of the last commits.

 xfce4-settings-helper/clipboard-manager.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/xfce4-settings-helper/clipboard-manager.c b/xfce4-settings-helper/clipboard-manager.c
index 3433197..addd558 100644
--- a/xfce4-settings-helper/clipboard-manager.c
+++ b/xfce4-settings-helper/clipboard-manager.c
@@ -150,8 +150,11 @@ xfce_clipboard_manager_default_get_func (GtkClipboard     *clipboard,
     if (selection_data_cache == NULL)
         return;
 
-    gtk_selection_data_free (selection_data);
-    selection_data = gtk_selection_data_copy (selection_data_cache);
+    gtk_selection_data_set (selection_data,
+                            gtk_selection_data_get_target (selection_data_cache),
+                            gtk_selection_data_get_format (selection_data_cache),
+                            gtk_selection_data_get_data (selection_data_cache),
+                            gtk_selection_data_get_length (selection_data_cache));
 }
 
 



More information about the Xfce4-commits mailing list