[Xfce4-commits] <xfce4-systemload-plugin:master> Changing uptime label orientation in the vertical mode
Landry Breuil
noreply at xfce.org
Wed Apr 18 21:26:03 CEST 2012
Updating branch refs/heads/master
to 71d7831d69279a4445b261c5b51693f06f584629 (commit)
from 8429e931cc6e305a84fe25f923574bad5a9005b1 (commit)
commit 71d7831d69279a4445b261c5b51693f06f584629
Author: Andrzej <ndrwrdck at gmail.com>
Date: Thu Apr 19 02:00:14 2012 +0900
Changing uptime label orientation in the vertical mode
Signed-off-by: Landry Breuil <landry at xfce.org>
panel-plugin/systemload.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index d210437..da19892 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -333,6 +333,9 @@ monitor_update_orientation (XfcePanelPlugin *plugin,
global->uptime->label = gtk_label_new("");
+ gtk_label_set_angle(GTK_LABEL(global->uptime->label),
+ (orientation == GTK_ORIENTATION_HORIZONTAL) ? 0 : -90);
+
gtk_widget_show(global->uptime->label);
gtk_container_add(GTK_CONTAINER(global->uptime->ebox),
GTK_WIDGET(global->uptime->label));
More information about the Xfce4-commits
mailing list