From c65107a0c2216c90c082cb60de9ef583c7a565ab Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Sun, 4 Nov 2012 18:25:08 +0100 Subject: [PATCH] sample: Fix compilation warning in DemoHyperText --- sample/GtkDemo/DemoHyperText.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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) {