From 9a3a156876ad9c34859db60508ebbef7f75c5fbc Mon Sep 17 00:00:00 2001 From: Eisha CHEN-YEN-SU Date: Wed, 4 Jul 2018 21:46:36 +0200 Subject: [PATCH] media_viewer.rs: Add a FIXME for an improvement This adds a FIXME that points to possible improvement that would require further investigation. --- fractal-gtk/src/appop/media_viewer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fractal-gtk/src/appop/media_viewer.rs b/fractal-gtk/src/appop/media_viewer.rs index ad7c4193..8dc4126f 100644 --- a/fractal-gtk/src/appop/media_viewer.rs +++ b/fractal-gtk/src/appop/media_viewer.rs @@ -307,6 +307,8 @@ impl AppOp { .get_object::("zoom_in_button") .expect("Cant find zoom_in_button in ui file."); + // FIXME: this is used for waiting for `min_lvl` and `max_lvl` to have their values updated + // it could be done in a proper way with signals gtk::timeout_add(10, clone!(mv => move || match *mv.image.zoom_level.lock().unwrap() { None => Continue(true), Some(zlvl) => {