[Xfce4-commits] <xfce4-battery-plugin:master> fix compilation with panel version < 4.9

Landry Breuil noreply at xfce.org
Mon May 14 10:46:01 CEST 2012


Updating branch refs/heads/master
         to 81909487e1a0a373c2e0d4d3cbccd657a20ba29f (commit)
       from afacc7dae5d01983b8d8ef6df0e7c64f9d3c5194 (commit)

commit 81909487e1a0a373c2e0d4d3cbccd657a20ba29f
Author: Landry Breuil <landry at xfce.org>
Date:   Mon May 14 10:33:40 2012 +0200

    fix compilation with panel version < 4.9

 panel-plugin/battery.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index 5b145bc..decd1ba 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -785,9 +785,9 @@ battmon_set_orientation (XfcePanelPlugin *plugin, GtkOrientation orientation,
     if (battmon->timeoutid) g_source_remove(battmon->timeoutid);
     xfce_hvbox_set_orientation(XFCE_HVBOX(battmon->ebox), orientation);
     xfce_hvbox_set_orientation(XFCE_HVBOX(battmon->timechargebox), !orientation);
-    xfce_hvbox_set_orientation(XFCE_HVBOX(battmon->acfanbox), !orientation);
+    xfce_hvbox_set_orientation(XFCE_HVBOX(battmon->actempbox), !orientation);
     gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(battmon->battstatus),
-               (orientation == GTK_ORIENTATION_HORIZONTAL ? GTK_PROGRESS_BOTTOM_TO_TOP : GTK_PROGRESS_LEFT_TO_RIGHT)i);
+               (orientation == GTK_ORIENTATION_HORIZONTAL ? GTK_PROGRESS_BOTTOM_TO_TOP : GTK_PROGRESS_LEFT_TO_RIGHT));
     battmon_set_labels_orientation(battmon, orientation);
     battmon_set_size(plugin, xfce_panel_plugin_get_size (plugin), battmon);
     update_apm_status( battmon );


More information about the Xfce4-commits mailing list