[Xfce4-commits] <xfce4-panel:andrzejr/deskbar> tasklist-widget: reverting button allocation order to the left-to-right direction.

Andrzej noreply at xfce.org
Mon Dec 26 23:50:02 CET 2011


Updating branch refs/heads/andrzejr/deskbar
         to a2fb4fd6a7b6744b274048b1f9bb02433136d765 (commit)
       from 63ae00ca4ddf21ce48f8887babb5edd0d63c2097 (commit)

commit a2fb4fd6a7b6744b274048b1f9bb02433136d765
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Tue Dec 27 06:39:29 2011 +0900

    tasklist-widget: reverting button allocation order to the left-to-right direction.
    
    This is to match the (IMHO broken) allocation order of the panel in the vertical mode. ATM the consensus is that the allocation order should not be changed so that the users are not exposed to any visible UI changes.

 plugins/tasklist/tasklist-widget.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 8172d01..117a83e 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -1042,11 +1042,7 @@ xfce_tasklist_size_allocate (GtkWidget     *widget,
               area_x += w;
             }
 
-          if (xfce_tasklist_vertical (tasklist))
-            /* lay out buttons right to left in the vertical mode */
-            child_alloc.y = 2 * area.y + area.height - y - h;
-          else
-            child_alloc.y = y;
+          child_alloc.y = y;
           child_alloc.x = x;
           child_alloc.width = MAX (w, 1); /* TODO this is a workaround */
           child_alloc.height = h;


More information about the Xfce4-commits mailing list