mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use queue_draw
This commit is contained in:
parent
1eb4bb2075
commit
ec86a9ecd0
1 changed files with 3 additions and 3 deletions
|
|
@ -310,8 +310,8 @@ impl Reader {
|
||||||
// Show tooltip | @TODO set_gutter option?
|
// Show tooltip | @TODO set_gutter option?
|
||||||
gobject.set_tooltip_text(Some(uri.to_string().as_str()));
|
gobject.set_tooltip_text(Some(uri.to_string().as_str()));
|
||||||
|
|
||||||
// Any signal required to apply changes immediately @TODO power safe issue?
|
// Redraw required to apply changes immediately
|
||||||
gobject.emit_toggle_overwrite();
|
gobject.queue_draw();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -321,7 +321,7 @@ impl Reader {
|
||||||
// Restore defaults
|
// Restore defaults
|
||||||
gobject.set_cursor_from_name(Some("text"));
|
gobject.set_cursor_from_name(Some("text"));
|
||||||
gobject.set_tooltip_text(None);
|
gobject.set_tooltip_text(None);
|
||||||
gobject.emit_toggle_overwrite();
|
gobject.queue_draw();
|
||||||
}
|
}
|
||||||
}); // @TODO may be expensive for CPU, add timeout?
|
}); // @TODO may be expensive for CPU, add timeout?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue