Updating branch refs/heads/master to 81aecb3bc340f90b460d73f61d2ddea443416075 (commit) from c90af565ed597a79071ea2559451f2c781716cfd (commit)
commit 81aecb3bc340f90b460d73f61d2ddea443416075 Author: Andrzej <ndrwr...@gmail.com> Date: Mon Apr 2 11:00:42 2012 +0900 bugfix: fixed label orientation. The error occurred in appmenu labels at switching the panel mode from vertical to e.g. deskbar. There was a race condition between setting the label and setting the button orientation. panel-plugin/indicator-button.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/panel-plugin/indicator-button.c b/panel-plugin/indicator-button.c index c89bdaf..3b634cf 100644 --- a/panel-plugin/indicator-button.c +++ b/panel-plugin/indicator-button.c @@ -223,6 +223,8 @@ xfce_indicator_button_set_label (XfceIndicatorButton *button, button->label = GTK_WIDGET (label); g_object_ref (G_OBJECT (button->label)); + gtk_label_set_angle (GTK_LABEL (button->label), + (button->orientation == GTK_ORIENTATION_VERTICAL) ? -90 : 0); gtk_box_pack_end (GTK_BOX (button->box), button->label, TRUE, FALSE, 1); } xfce_indicator_button_update_layout (button); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits