[Xfce4-commits] <xfce4-battery-plugin:master> Set progressbar orientation in setup_battmon (fixes #8935)
Landry Breuil
noreply at xfce.org
Sat May 26 08:18:01 CEST 2012
Updating branch refs/heads/master
to 69993c34ee3aecd57179b128e09fd633b2055508 (commit)
from 70b70cdcf267790466064040c523caf04843a778 (commit)
commit 69993c34ee3aecd57179b128e09fd633b2055508
Author: Landry Breuil <landry at xfce.org>
Date: Sat May 26 08:14:34 2012 +0200
Set progressbar orientation in setup_battmon (fixes #8935)
panel-plugin/battery.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index decd1ba..e529026 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -665,6 +665,8 @@ static void setup_battmon(t_battmon *battmon)
battmon->battstatus = gtk_progress_bar_new();
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(battmon->battstatus), 0.0);
+ gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(battmon->battstatus),
+ (xfce_panel_plugin_get_orientation(battmon->plugin) == GTK_ORIENTATION_HORIZONTAL ? GTK_PROGRESS_BOTTOM_TO_TOP : GTK_PROGRESS_LEFT_TO_RIGHT));
battmon->label = (GtkLabel *)gtk_label_new(_("Battery"));
gtk_box_pack_start(GTK_BOX(battmon->ebox),GTK_WIDGET(battmon->label),FALSE, FALSE, 0);
More information about the Xfce4-commits
mailing list