[Xfce4-commits] [xfce/xfce4-panel] 01/01: tasklist: Fix alignment of labels when orientation is changed (Bug #13864)
noreply at xfce.org
noreply at xfce.org
Thu Nov 9 23:46:03 CET 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit 617aa7c7b9056ede24607e3c95555653bfbeabc8
Author: Olivier Duchateau <duchateau.olivier at gmail.com>
Date: Sun Sep 17 15:44:24 2017 +0200
tasklist: Fix alignment of labels when orientation is changed (Bug #13864)
---
plugins/tasklist/tasklist-widget.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 91ad92f..904e6ba 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2192,12 +2192,14 @@ xfce_tasklist_child_new (XfceTasklist *tasklist)
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, 0); */
gtk_label_set_xalign (GTK_LABEL (child->label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (child->label), 0.5);
gtk_label_set_ellipsize (GTK_LABEL (child->label), tasklist->ellipsize_mode);
}
else
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, -1); */
gtk_label_set_yalign (GTK_LABEL (child->label), 0.0);
+ gtk_label_set_xalign (GTK_LABEL (child->label), 0.5);
gtk_label_set_angle (GTK_LABEL (child->label), 270);
/* TODO can we already ellipsize here yet? */
}
@@ -4105,6 +4107,7 @@ xfce_tasklist_update_orientation (XfceTasklist *tasklist)
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, 0); */
gtk_label_set_xalign (GTK_LABEL (child->label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (child->label), 0.5);
gtk_label_set_angle (GTK_LABEL (child->label), 0);
gtk_label_set_ellipsize (GTK_LABEL (child->label),
child->tasklist->ellipsize_mode);
@@ -4113,6 +4116,7 @@ xfce_tasklist_update_orientation (XfceTasklist *tasklist)
{
/* gtk_box_reorder_child (GTK_BOX (child->box), child->icon, -1); */
gtk_label_set_yalign (GTK_LABEL (child->label), 0.0);
+ gtk_label_set_xalign (GTK_LABEL (child->label), 0.5);
gtk_label_set_angle (GTK_LABEL (child->label), 270);
gtk_label_set_ellipsize (GTK_LABEL (child->label), PANGO_ELLIPSIZE_NONE);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list