[Xfce4-commits] <ristretto:stephan/gtk3> Remove duplicate code

Stephan Arts noreply at xfce.org
Sat Feb 2 16:16:39 CET 2013


Updating branch refs/heads/stephan/gtk3
         to 704a11385c699756363436b74cd34ed04937c704 (commit)
       from be3743f7b244fbecb57c5e634192bf73791e5be0 (commit)

commit 704a11385c699756363436b74cd34ed04937c704
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat Feb 2 13:22:52 2013 +0100

    Remove duplicate code

 src/main_window.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index 3d3879b..46b3d14 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -2406,12 +2406,13 @@ cb_rstto_main_window_image_viewer_scroll_event (GtkWidget *widget,
             case GDK_SCROLL_UP:
             case GDK_SCROLL_LEFT:
                 rstto_image_list_iter_previous (window->priv->iter);
-                ret = TRUE; /* don't call other callbacks */
+                break;
             case GDK_SCROLL_DOWN:
             case GDK_SCROLL_RIGHT:
                 rstto_image_list_iter_next (window->priv->iter);
-                ret = TRUE;
+                break;
         }
+        ret = TRUE; /* don't call other callbacks */
     }
     return ret;
 }


More information about the Xfce4-commits mailing list