commit 682d5517961f38bca787fb60d10852708d8a552f
Author: Laurent Bigonville <bigon@bigon.be>
Date:   Sun Jun 20 15:32:42 2010 +0200

    Call gtk_clipboard_set_can_store() after gtk_clipboard_set_text()
    
    Call gtk_clipboard_set_can_store() after gtk_clipboard_set_text() to be
    sure the clipboard is preserved when Empathy exits (#619562)

diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index c05b92f..a6b5507 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -251,9 +251,11 @@ chat_text_view_copy_address_cb (GtkMenuItem *menuitem, const gchar *url)
 
 	clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
 	gtk_clipboard_set_text (clipboard, url, -1);
+	gtk_clipboard_set_can_store (clipboard, NULL, 0);
 
 	clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY);
 	gtk_clipboard_set_text (clipboard, url, -1);
+	gtk_clipboard_set_can_store (clipboard, NULL, 0);
 }
 
 static void
@@ -1298,6 +1300,7 @@ chat_text_view_copy_clipboard (EmpathyChatView *view)
 	}
 
 	gtk_clipboard_set_text (clipboard, str->str, str->len);
+	gtk_clipboard_set_can_store (clipboard, NULL, 0);
 	g_string_free (str, TRUE);
 }
 
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index e3582a7..79b1465 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -171,9 +171,11 @@ theme_adium_copy_address_cb (GtkMenuItem *menuitem,
 
 	clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
 	gtk_clipboard_set_text (clipboard, uri, -1);
+	gtk_clipboard_set_can_store (clipboard, NULL, 0);
 
 	clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY);
 	gtk_clipboard_set_text (clipboard, uri, -1);
+	gtk_clipboard_set_can_store (clipboard, NULL, 0);
 
 	g_free (uri);
 }
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index edb0806..962b065 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -943,6 +943,7 @@ debug_window_menu_copy_activate_cb (GtkMenuItem *menu_item,
       GDK_SELECTION_CLIPBOARD);
 
   gtk_clipboard_set_text (clipboard, message, -1);
+  gtk_clipboard_set_can_store (clipboard, NULL, 0);
 
   g_free (message);
 }
@@ -1254,6 +1255,7 @@ debug_window_copy_clicked_cb (GtkToolButton *tool_button,
       strlen (text));
 
   gtk_clipboard_set_text (clipboard, text, -1);
+  gtk_clipboard_set_can_store (clipboard, NULL, 0);
 
   g_free (text);
 }
