diff --git a/sample/GtkDemo/DemoHyperText.cs b/sample/GtkDemo/DemoHyperText.cs index 4efd34edd..8e91e033d 100644 --- a/sample/GtkDemo/DemoHyperText.cs +++ b/sample/GtkDemo/DemoHyperText.cs @@ -41,7 +41,7 @@ public DemoHyperText () : base ("HyperText") ShowAll (); } - Dictionary tag_pages = new Dictionary (); + IDictionary tag_pages = new Dictionary (); // 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 @@ void SetCursorIfAppropriate (TextView view, int x, int y) 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) {