commit ca5604ebcf1c333b762baf40208347840a0358fe
parent 0c2afe190ff2fb67df7319b2ca5ba437527a207d
Author: Kyle Milz <kmilz@ucalgary.ca>
Date: Tue, 16 Oct 2012 22:13:25 -0600
only change progress bar for current buffer
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/buffer.c b/src/buffer.c
@@ -180,9 +180,12 @@ title_changed_cb(void *data, Evas_Object *obj, void *event_info)
static void
load_progress_cb(void *data, Evas_Object *obj, void *event_info)
{
- Buffer_Data *td = data;
- Window_Data *wd = td->window;
+ Buffer_Data *bd = data;
+ Window_Data *wd = bd->window;
double *val = event_info;
+
+ if (bd != bd->window->cur_buf)
+ return;
elm_progressbar_value_set(wd->progress_bar, *val);