From eb0041b809d80676bad2225449c2db28d1a206d0 Mon Sep 17 00:00:00 2001
From: Eric Koegel <eric.koegel@gmail.com>
Date: Sun, 29 Jun 2014 23:56:30 +0300
Subject: [PATCH] Fix LXDE plugin build error

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

diff --git a/panel-plugins/battery/lxde/battery-plugin.c b/panel-plugins/battery/lxde/battery-plugin.c
index 18de503b..9ddbbce3 100644
--- a/panel-plugins/battery/lxde/battery-plugin.c
+++ b/panel-plugins/battery/lxde/battery-plugin.c
@@ -106,7 +106,7 @@ battery_plugin_construct (Plugin *plugin, char **fp)
 static void
 battery_plugin_configuration_changed(Plugin *p)
 {
-    BatteryPlugin *battery_plugin = p->plugin;
+    BatteryPlugin *battery_plugin = p->priv;
 
     /* Determine orientation and size */
     GtkOrientation orientation = (p->panel->orientation == GTK_ORIENTATION_VERTICAL) ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL;
@@ -119,5 +119,5 @@ battery_plugin_configuration_changed(Plugin *p)
         gtk_widget_set_size_request (p->pwid, size, -1);
 
     /* update the button's width */
-    battery_button_set_width (battery_plugin->battery_button, p->panel->icon_size);
+    battery_button_set_width (BATTERY_BUTTON(battery_plugin->battery_button), p->panel->icon_size);
 }
-- 
GitLab