gtkhtml r9022 - trunk/gtkhtml
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkhtml r9022 - trunk/gtkhtml
- Date: Mon, 29 Sep 2008 17:27:30 +0000 (UTC)
Author: mcrha
Date: Mon Sep 29 17:27:30 2008
New Revision: 9022
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9022&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:
trunk/gtkhtml/ChangeLog
trunk/gtkhtml/gtkhtml.c
Modified: trunk/gtkhtml/gtkhtml.c
==============================================================================
--- trunk/gtkhtml/gtkhtml.c (original)
+++ trunk/gtkhtml/gtkhtml.c Mon Sep 29 17:27:30 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]