mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-07 07:23:18 +02:00
sample: Fix compilation warning in DemoHyperText
This commit is contained in:
parent
2edff869fd
commit
c65107a0c2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user