feat(status)[markupview]: set selectable

fix: #60
This commit is contained in:
Evangelos Paterakis 2023-01-15 05:29:55 +02:00
parent 50318f9595
commit 403487a35d
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 9 additions and 6 deletions

View File

@ -23,12 +23,15 @@ public class Tooth.Widgets.MarkupView : Box {
get { return _selectable; }
set {
_selectable = value;
// get_children ().foreach (w => {
// var label = w as Label;
// if (label != null) {
// label.selectable = _selectable;
// }
// });
var w = this.get_first_child();
while (w != null) {
var label = w as RichLabel;
if (label != null) {
label.selectable = _selectable;
}
w = w.get_next_sibling();
};
}
}