mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-05-03 03:56:27 +00:00
sample: Fix compilation warning in DemoHyperText
This commit is contained in:
parent
2edff869fd
commit
c65107a0c2
|
@ -41,7 +41,7 @@ namespace GtkDemo
|
||||||
ShowAll ();
|
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
|
// Inserts a piece of text into the buffer, giving it the usual
|
||||||
// appearance of a hyperlink in a web browser: blue and underlined.
|
// appearance of a hyperlink in a web browser: blue and underlined.
|
||||||
|
@ -114,10 +114,8 @@ namespace GtkDemo
|
||||||
TextIter iter = view.GetIterAtLocation (x, y);
|
TextIter iter = view.GetIterAtLocation (x, y);
|
||||||
|
|
||||||
foreach (TextTag tag in iter.Tags) {
|
foreach (TextTag tag in iter.Tags) {
|
||||||
if (tag_pages [tag] is int) {
|
hovering = true;
|
||||||
hovering = true;
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hovering != hoveringOverLink) {
|
if (hovering != hoveringOverLink) {
|
||||||
|
|
Loading…
Reference in a new issue