[Xfce4-commits] [apps/ristretto] 02/03: Don't check item->width twice (Bug 10534)

noreply at xfce.org noreply at xfce.org
Sun Jan 18 09:23:07 CET 2015


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

eric pushed a commit to branch master
in repository apps/ristretto.

commit 0afa544fd7e9ca3d589c4d2a9f0ef01a64f4816c
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon Apr 7 12:30:10 2014 +0300

    Don't check item->width twice (Bug 10534)
    
    There's no need to check item->width twice on the same line. Also
    checking for item->height isn't needed because the function never
    uses item->height but does set it at the end.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/icon_bar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/icon_bar.c b/src/icon_bar.c
index e69572d..b7f9bdf 100644
--- a/src/icon_bar.c
+++ b/src/icon_bar.c
@@ -1382,7 +1382,7 @@ rstto_icon_bar_calculate_item_size (
     gint       focus_pad;
     gint       int_pad;
 
-    if (G_LIKELY (item->width != -1 && item->width != -1))
+    if (G_LIKELY (item->width != -1))
         return;
 
     gtk_widget_style_get (GTK_WIDGET (icon_bar),

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


More information about the Xfce4-commits mailing list