[Xfce4-commits] [apps/ristretto] 01/01: Avoid implicit conversion from double to int

noreply at xfce.org noreply at xfce.org
Mon Jul 15 20:06:00 CEST 2019


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

f   2   4   0   4       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 apps/ristretto.

commit 20682bb450d6039b067e71fb08884ff40fd4e433
Author: Igor <f2404 at yandex.ru>
Date:   Mon Jul 15 14:05:53 2019 -0400

    Avoid implicit conversion from double to int
---
 src/icon_bar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/icon_bar.c b/src/icon_bar.c
index b51d239..5732061 100644
--- a/src/icon_bar.c
+++ b/src/icon_bar.c
@@ -1010,12 +1010,12 @@ rstto_icon_bar_scroll (
     if (icon_bar->priv->orientation == GTK_ORIENTATION_VERTICAL)
     {
         adjustment = icon_bar->priv->vadjustment;
-        step_size = icon_bar->priv->item_height / 2;
+        step_size = icon_bar->priv->item_height / 2.0;
     }
     else
     {
         adjustment = icon_bar->priv->hadjustment;
-        step_size = icon_bar->priv->item_width / 2;
+        step_size = icon_bar->priv->item_width / 2.0;
     }
 
     val = gtk_adjustment_get_value (adjustment);

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


More information about the Xfce4-commits mailing list