Mercurial > geeqie.yaz
diff src/image.c @ 1750:c71126e3b2f9
Fix osd zoom level refreshing (it was broken since some times).
author | zas_ |
---|---|
date | Sun, 17 Jan 2010 13:34:48 +0000 |
parents | 1b790ab146ab |
children |
line wrap: on
line diff
--- a/src/image.c Wed Jan 13 19:49:39 2010 +0000 +++ b/src/image.c Sun Jan 17 13:34:48 2010 +0000 @@ -91,15 +91,6 @@ if (imd->func_update) imd->func_update(imd, imd->data_update); } -static void image_zoom_cb(PixbufRenderer *pr, gdouble zoom, gpointer data) -{ - ImageWindow *imd = data; - - if (imd->title_show_zoom) image_update_title(imd); - if (imd->overlay_show_zoom) image_osd_update(imd); - - image_update_util(imd); -} static void image_complete_util(ImageWindow *imd, gboolean preload) { @@ -140,6 +131,15 @@ if (imd->func_state) imd->func_state(imd, state, imd->data_state); } +static void image_zoom_cb(PixbufRenderer *pr, gdouble zoom, gpointer data) +{ + ImageWindow *imd = data; + + if (imd->title_show_zoom) image_update_title(imd); + image_state_set(imd, IMAGE_STATE_IMAGE); + image_update_util(imd); +} + /* *------------------------------------------------------------------- * misc