sample: Fix compilation warning in DemoHyperText

This commit is contained in:
Bertrand Lorentz 2012-11-04 18:25:08 +01:00
parent 2edff869fd
commit c65107a0c2

View File

@ -41,7 +41,7 @@ namespace GtkDemo
ShowAll ();
}
Dictionary<TextTag, int> tag_pages = new Dictionary<TextTag, int> ();
IDictionary<TextTag, int> tag_pages = new Dictionary<TextTag, int> ();
// Inserts a piece of text into the buffer, giving it the usual
// appearance of a hyperlink in a web browser: blue and underlined.
@ -114,10 +114,8 @@ namespace GtkDemo
TextIter iter = view.GetIterAtLocation (x, y);
foreach (TextTag tag in iter.Tags) {
if (tag_pages [tag] is int) {
hovering = true;
break;
}
hovering = true;
break;
}
if (hovering != hoveringOverLink) {