Skip to content

Commit

Permalink
sample: Fix compilation warning in DemoHyperText
Browse files Browse the repository at this point in the history
  • Loading branch information
bl8 committed Nov 4, 2012
1 parent 2edff86 commit c65107a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sample/GtkDemo/DemoHyperText.cs
Expand Up @@ -41,7 +41,7 @@ public DemoHyperText () : base ("HyperText")
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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c65107a

Please sign in to comment.