Updating branch refs/heads/ristretto-0.0 to 61bb958bff96be10e5a194831e73c58a18c5b079 (commit) from 4608a75c0edfe4e17b0b6ad2fe9be671ce576c4b (commit)
commit 61bb958bff96be10e5a194831e73c58a18c5b079 Author: Stephan Arts <step...@xfce.org> Date: Fri May 22 23:33:16 2009 +0200 Fix behaviour when switching to the last image ChangeLog | 4 ++++ src/main_window.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee56277..78718a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-05-22 Stephan Arts <step...@xfce.org> + * src/main_window.c: Fix behaviour when switching to the last image + +2009-05-22 Stephan Arts <step...@xfce.org> + * src/navigating.c, src/main_window.c: Sanitize navigator-iter design diff --git a/src/main_window.c b/src/main_window.c index a1bad99..3494c06 100644 --- a/src/main_window.c +++ b/src/main_window.c @@ -908,7 +908,8 @@ cb_rstto_main_window_first_image (GtkWidget *widget, RsttoMainWindow *window) static void cb_rstto_main_window_last_image (GtkWidget *widget, RsttoMainWindow *window) { - rstto_navigator_iter_set_position (window->priv->iter, -1); + guint n_images = rstto_navigator_get_n_images (window->priv->props.navigator); + rstto_navigator_iter_set_position (window->priv->iter, n_images-1); rstto_main_window_navigator_iter_changed (window); } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits