f-spot r4586 - in trunk: . src
- From: lmilesi svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4586 - in trunk: . src
- Date: Wed, 12 Nov 2008 12:36:55 +0000 (UTC)
Author: lmilesi
Date: Wed Nov 12 12:36:55 2008
New Revision: 4586
URL: http://svn.gnome.org/viewvc/f-spot?rev=4586&view=rev
Log:
2008-11-12 Lorenzo Milesi <maxxer yetopen it>
* src/Term.cs: correctly encode text as html to avoid warnings. fix
bgo#559905.
Modified:
trunk/ChangeLog
trunk/src/Term.cs
Modified: trunk/src/Term.cs
==============================================================================
--- trunk/src/Term.cs (original)
+++ trunk/src/Term.cs Wed Nov 12 12:36:55 2008
@@ -497,7 +497,7 @@
handle_box = new LiteralBox ();
handle_box.BorderWidth = 1;
- label = new Label (tag.Name);
+ label = new Label (System.Web.HttpUtility.HtmlEncode (tag.Name));
label.UseMarkup = true;
image = new Gtk.Image (NormalIcon);
@@ -589,11 +589,11 @@
negated_icon = null;
if (IsNegated) {
tips.SetTip (widget, String.Format (Catalog.GetString ("Not {0}"), tag.Name), null);
- label.Text = "<s>" + tag.Name + "</s>";
+ label.Text = "<s>" + System.Web.HttpUtility.HtmlEncode (tag.Name) + "</s>";
image.Pixbuf = NegatedIcon;
} else {
tips.SetTip (widget, tag.Name, null);
- label.Text = tag.Name;
+ label.Text = System.Web.HttpUtility.HtmlEncode (tag.Name);
image.Pixbuf = NormalIcon;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]