epiphany r8246 - branches/gnome-2-22/embed/mozilla



Author: chpe
Date: Fri May 23 21:12:37 2008
New Revision: 8246
URL: http://svn.gnome.org/viewvc/epiphany?rev=8246&view=rev

Log:
Remove leading/trailing whitespace from strings in EventContext. Bug #533983.


Modified:
   branches/gnome-2-22/embed/mozilla/EventContext.cpp

Modified: branches/gnome-2-22/embed/mozilla/EventContext.cpp
==============================================================================
--- branches/gnome-2-22/embed/mozilla/EventContext.cpp	(original)
+++ branches/gnome-2-22/embed/mozilla/EventContext.cpp	Fri May 23 21:12:37 2008
@@ -968,9 +968,10 @@
 	GValue *val = g_new0 (GValue, 1);
 
 	g_value_init (val, G_TYPE_STRING);
-	
-	g_value_set_string (val, value);
-			 
+
+	char *copy = g_strstrip (g_strdup (value));	
+	g_value_take_string (val, copy);
+
 	mozilla_embed_event_set_property (mEmbedEvent, name, val);
 
 	return NS_OK;



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