[Xfce4-commits] [xfce/thunar] 01/01: removed comparison warning by changing scroll-count to positive numbers

noreply at xfce.org noreply at xfce.org
Sun Sep 24 22:14:00 CEST 2017


This is an automated email from the git hooks/post-receive script.

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit 1f516f442f76038871acb1ea172dda78ae30aa06
Author: Alexander Schwinn <acs82 at gmx.de>
Date:   Sun Sep 24 22:13:46 2017 +0200

    removed comparison warning by changing scroll-count to positive numbers
---
 thunar/thunar-location-buttons.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/thunar/thunar-location-buttons.c b/thunar/thunar-location-buttons.c
index dff2f74..7248c41 100644
--- a/thunar/thunar-location-buttons.c
+++ b/thunar/thunar-location-buttons.c
@@ -159,7 +159,7 @@ struct _ThunarLocationButtons
 
   GList             *list;
   GList             *fake_root_button;
-  gint               scroll_count;
+  guint              scroll_count;
 
   guint              scroll_timeout_id;
 };
@@ -715,7 +715,7 @@ thunar_location_buttons_size_allocate (GtkWidget     *widget,
 
       if (G_UNLIKELY (buttons->scroll_count != 0))
         {
-          for (scroll_index = buttons->scroll_count; scroll_index < 0 ; scroll_index++)
+          for (scroll_index = 0; scroll_index < buttons->scroll_count ; scroll_index++)
             last_button = last_button->next;
         }
 
@@ -1109,7 +1109,7 @@ thunar_location_buttons_scroll_left (GtkWidget             *button,
       {
         if (lp->prev == buttons->fake_root_button)
           buttons->fake_root_button = NULL;
-        buttons->scroll_count --;
+        buttons->scroll_count ++;
         break;
       }
 }
@@ -1127,8 +1127,8 @@ thunar_location_buttons_scroll_right (GtkWidget             *button,
     }
 
   gtk_widget_queue_resize (GTK_WIDGET (buttons));
-  if ( buttons->scroll_count < 0 )
-    buttons->scroll_count++;
+  if ( buttons->scroll_count > 0 )
+    buttons->scroll_count--;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list