packages: gtkhtml/gtkhtml-crash.patch - fixes http://bugzilla.gnome.org/sho...

megabajt megabajt at pld-linux.org
Fri Oct 16 17:25:08 CEST 2009


Author: megabajt                     Date: Fri Oct 16 15:25:08 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fixes http://bugzilla.gnome.org/show_bug.cgi?id=596282

---- Files affected:
packages/gtkhtml:
   gtkhtml-crash.patch (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/gtkhtml/gtkhtml-crash.patch
diff -u /dev/null packages/gtkhtml/gtkhtml-crash.patch:1.5
--- /dev/null	Fri Oct 16 17:25:08 2009
+++ packages/gtkhtml/gtkhtml-crash.patch	Fri Oct 16 17:25:03 2009
@@ -0,0 +1,22 @@
+From 835d5dee8aaf078960b16ebd9018da095b1bcfbd Mon Sep 17 00:00:00 2001
+From: Matthew Barnes <mbarnes at redhat.com>
+Date: Mon, 21 Sep 2009 14:37:33 +0000
+Subject: Fix an editing crash.
+
+Apparently G_VALUE_HOLDS() doesn't like NULL GValues.
+---
+diff --git a/components/editor/gtkhtml-editor.c b/components/editor/gtkhtml-editor.c
+index aca15f9..58ae08f 100644
+--- a/components/editor/gtkhtml-editor.c
++++ b/components/editor/gtkhtml-editor.c
+@@ -384,7 +384,7 @@ editor_method_event (GtkHTML *html,
+ 	guint signal_id;
+ 
+ 	/* GtkHTML event arguments are either NULL or a single string. */
+-	if (G_VALUE_HOLDS (args, G_TYPE_STRING))
++	if (args != NULL && G_VALUE_HOLDS (args, G_TYPE_STRING))
+ 		string = g_value_get_string (args);
+ 
+ 	switch (event) {
+--
+cgit v0.8.2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gtkhtml/gtkhtml-crash.patch?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list