[Xfce4-commits] <xfce4-panel:andrzejr/deskbar-github> itembar: flipping items upside-down in plain vertical mode
Andrzej
noreply at xfce.org
Mon Dec 12 11:40:28 CET 2011
Updating branch refs/heads/andrzejr/deskbar-github
to bb9eaeaf75c4cb6e7e4b9e387f552f65878d5960 (commit)
from e374978220d11adc1830b383d557817aca5a0a32 (commit)
commit bb9eaeaf75c4cb6e7e4b9e387f552f65878d5960
Author: Andrzej <ndrwrdck at gmail.com>
Date: Tue Nov 22 12:44:29 2011 +0900
itembar: flipping items upside-down in plain vertical mode
panel/panel-itembar.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/panel/panel-itembar.c b/panel/panel-itembar.c
index ee11806..9a6f3e4 100644
--- a/panel/panel-itembar.c
+++ b/panel/panel-itembar.c
@@ -584,6 +584,8 @@ panel_itembar_size_allocate (GtkWidget *widget,
child_alloc.height = itembar->size / itembar->nrows;
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;
gtk_widget_size_allocate (child->widget, &child_alloc);
continue;
} else
@@ -617,6 +619,8 @@ panel_itembar_size_allocate (GtkWidget *widget,
child_alloc.width = child_alloc.height = 0;
}
+ if (!itembar->horizontal && !itembar->deskbar_mode)
+ child_alloc.y = widget_length - child_alloc.y - child_alloc.height;
gtk_widget_size_allocate (child->widget, &child_alloc);
/* stop and continue to the next row */
@@ -671,6 +675,8 @@ panel_itembar_size_allocate (GtkWidget *widget,
y += child_alloc.height;
}
+ if (!itembar->horizontal && !itembar->deskbar_mode)
+ child_alloc.y = widget_length - child_alloc.y - child_alloc.height;
gtk_widget_size_allocate (child->widget, &child_alloc);
}
}
More information about the Xfce4-commits
mailing list