[Xfce4-commits] <xfce4-panel:andrzejr/deskbar-github> itembar: fixed layout inaccuracies in rotated left vertical panel mode.
Andrzej
noreply at xfce.org
Mon Dec 12 11:40:35 CET 2011
Updating branch refs/heads/andrzejr/deskbar-github
to ef4ef107f8c4b77835d49fd2306140be764be3f4 (commit)
from 76a0b4e0395a81bab6df380b8b748861afcd9655 (commit)
commit ef4ef107f8c4b77835d49fd2306140be764be3f4
Author: Andrzej <ndrwrdck at gmail.com>
Date: Wed Nov 23 23:11:27 2011 +0900
itembar: fixed layout inaccuracies in rotated left vertical panel mode.
panel/panel-itembar.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/panel/panel-itembar.c b/panel/panel-itembar.c
index b81d7c5..1563496 100644
--- a/panel/panel-itembar.c
+++ b/panel/panel-itembar.c
@@ -595,7 +595,8 @@ panel_itembar_size_allocate (GtkWidget *widget,
child_alloc.width = itembar->size / itembar->nrows;
panel_itembar_column_next(itembar, &column_row, &x, &y, start);
if (!itembar->horizontal && !itembar->deskbar_mode)
- child_alloc.y = widget_length - child_alloc.y - child_alloc.height;
+ child_alloc.y = 2*allocation->y + allocation->height
+ - child_alloc.y - child_alloc.height;
gtk_widget_size_allocate (child->widget, &child_alloc);
continue;
} else
@@ -630,7 +631,8 @@ panel_itembar_size_allocate (GtkWidget *widget,
}
if (!itembar->horizontal && !itembar->deskbar_mode)
- child_alloc.y = widget_length - child_alloc.y - child_alloc.height;
+ child_alloc.y = 2*allocation->y + allocation->height
+ - child_alloc.y - child_alloc.height;
gtk_widget_size_allocate (child->widget, &child_alloc);
/* stop and continue to the next row */
@@ -686,7 +688,8 @@ panel_itembar_size_allocate (GtkWidget *widget,
}
if (!itembar->horizontal && !itembar->deskbar_mode)
- child_alloc.y = widget_length - child_alloc.y - child_alloc.height;
+ child_alloc.y = 2*allocation->y + allocation->height
+ - child_alloc.y - child_alloc.height;
gtk_widget_size_allocate (child->widget, &child_alloc);
}
}
More information about the Xfce4-commits
mailing list