[Xfce4-commits] xfce4-indicator-plugin:master bugfix: fixed label orientation.

2013-04-04 Thread Andrzej
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


[Xfce4-commits] xfce4-indicator-plugin:master bugfix: fixed label orientation.

2012-04-23 Thread Mark Trompell
Updating branch refs/heads/master
 to 33611c045a346b61eb3c06ed40b099d2046455ab (commit)
   from 7ce7f3376e514b32f25c5e0883c33c3eafd2b7fd (commit)

commit 33611c045a346b61eb3c06ed40b099d2046455ab
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 9763da5..9fc0e6f 100644
--- a/panel-plugin/indicator-button.c
+++ b/panel-plugin/indicator-button.c
@@ -213,6 +213,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