Mercurial > geeqie.yaz
diff src/pixbuf-renderer.c @ 61:0c912a2d94f1
Mon Jun 13 20:22:58 2005 John Ellis <johne@verizon.net>
* image.c (image_zoom_cb): If needed, update window title when
zoom changes.
* pixbuf-renderer.c (pr_size_sync): Send zoom signal when new window
size results in a new scale value.
* README: Updates.
* configure.in: Release 2.1.1
author | gqview |
---|---|
date | Tue, 14 Jun 2005 00:49:25 +0000 |
parents | 606fcf461a68 |
children | 44f2223541d1 |
line wrap: on
line diff
--- a/src/pixbuf-renderer.c Mon Jun 13 21:39:13 2005 +0000 +++ b/src/pixbuf-renderer.c Tue Jun 14 00:49:25 2005 +0000 @@ -2620,12 +2620,19 @@ static void pr_size_sync(PixbufRenderer *pr, gint new_width, gint new_height) { + gint zoom_changed = FALSE; + if (pr->window_width == new_width && pr->window_height == new_height) return; pr->window_width = new_width; pr->window_height = new_height; - if (pr->zoom == 0.0) pr_zoom_clamp(pr, 0.0, TRUE, FALSE, FALSE, NULL); + if (pr->zoom == 0.0) + { + gdouble old_scale = pr->scale; + pr_zoom_clamp(pr, 0.0, TRUE, FALSE, FALSE, NULL); + zoom_changed = (old_scale != pr->scale); + } pr_size_clamp(pr); pr_scroll_clamp(pr); @@ -2671,6 +2678,7 @@ #endif pr_scroll_notify_signal(pr); + if (zoom_changed) pr_zoom_signal(pr); pr_update_signal(pr); }