[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 02/04: Rotate labels of progress bars in vertical mode as well

noreply at xfce.org noreply at xfce.org
Mon Feb 27 20:10:35 CET 2017


This is an automated email from the git hooks/post-receive script.

timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.

commit 3f2c96ce560d871c5c6b76ae471592c47f29bab9
Author: Fabian <timystery at arcor.de>
Date:   Fri Feb 24 23:06:15 2017 +0100

    Rotate labels of progress bars in vertical mode as well
---
 panel-plugin/sensors-plugin.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/panel-plugin/sensors-plugin.c b/panel-plugin/sensors-plugin.c
index 6df5b1c..390b08e 100644
--- a/panel-plugin/sensors-plugin.c
+++ b/panel-plugin/sensors-plugin.c
@@ -423,6 +423,12 @@ sensors_add_graphical_display (t_sensors *sensors)
                     }
 
                     gtk_label_set_ellipsize (GTK_LABEL(widget_label), PANGO_ELLIPSIZE_END);
+
+                    if (sensors->orientation == XFCE_PANEL_PLUGIN_MODE_VERTICAL)
+                        gtk_label_set_angle (GTK_LABEL(widget_label), 270);
+                    else
+                        gtk_label_set_angle (GTK_LABEL(widget_label), 0);
+
                     gtk_widget_show (widget_label);
                     ptr_labelledlevelbar->label = widget_label;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list