[Xfce4-commits] <ristretto:stephan/icon-bar> Fix horizontal positioning of icons (broke in last commit)

Stephan Arts noreply at xfce.org
Sat Feb 4 12:32:04 CET 2012


Updating branch refs/heads/stephan/icon-bar
         to 7d34953bea6e7f1ff500d26e5da8784b934672c5 (commit)
       from 9c7d0d4990923462b150045da6fcd441f010bd11 (commit)

commit 7d34953bea6e7f1ff500d26e5da8784b934672c5
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat Feb 4 11:39:29 2012 +0100

    Fix horizontal positioning of icons (broke in last commit)

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

diff --git a/src/icon_bar.c b/src/icon_bar.c
index 85f7b0e..51273b5 100644
--- a/src/icon_bar.c
+++ b/src/icon_bar.c
@@ -1265,8 +1265,7 @@ rstto_icon_bar_paint_item (
         x = icon_bar->priv->item_width * item->index;
         y = 0;
 
-        px = (icon_bar->priv->item_width - item->pixbuf_width) / 2;
-        + icon_bar->priv->item_width * item->index;
+        px = (icon_bar->priv->item_width - item->pixbuf_width) / 2 + icon_bar->priv->item_width * item->index;
         if (icon_bar->priv->text_column != -1 && icon_bar->priv->show_text == TRUE)
         {
             py = (icon_bar->priv->item_height - (item->pixbuf_height + item->layout_height)) / 2;


More information about the Xfce4-commits mailing list