gtkhtml r9023 - branches/gnome-2-24/gtkhtml



Author: mcrha
Date: Mon Sep 29 17:27:47 2008
New Revision: 9023
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9023&view=rev

Log:
2008-09-29  Milan Crha  <mcrha redhat com>

	** Fix for bug #554326

	* gtkhtml.c: (update_primary_selection):
	Ask for clipboard only when have something to store there.



Modified:
   branches/gnome-2-24/gtkhtml/ChangeLog
   branches/gnome-2-24/gtkhtml/gtkhtml.c

Modified: branches/gnome-2-24/gtkhtml/gtkhtml.c
==============================================================================
--- branches/gnome-2-24/gtkhtml/gtkhtml.c	(original)
+++ branches/gnome-2-24/gtkhtml/gtkhtml.c	Mon Sep 29 17:27:47 2008
@@ -4458,12 +4458,12 @@
 	if (!html->allow_selection)
 		return;
 
-	clipboard = gtk_widget_get_clipboard (GTK_WIDGET (html), GDK_SELECTION_PRIMARY);
-
 	text = get_selection_string (html, &text_len, FALSE, TRUE, FALSE);
 	if (!text)
 		return;
 
+	clipboard = gtk_widget_get_clipboard (GTK_WIDGET (html), GDK_SELECTION_PRIMARY);
+
 	gtk_clipboard_set_text (clipboard, text, text_len);
 
 	g_free (text);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]