[Xfce4-commits] <xfce4-settings:master> Fix one of the last commits.

Jérôme Guelfucci noreply at xfce.org
Sat Jan 2 13:00:20 CET 2010


Updating branch refs/heads/master
         to db752790ec5f94a9f1aaef266d18edc3c489e694 (commit)
       from f13949db79a555f200db961518b255babbb3dea4 (commit)

commit db752790ec5f94a9f1aaef266d18edc3c489e694
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