Updating branch refs/heads/master
         to 0c704d843b52471524f3f38411f9cc0a3ade4c91 (commit)
       from cde2cfc9f6d694d5bbb7ccfed862db04fb60041b (commit)

commit 0c704d843b52471524f3f38411f9cc0a3ade4c91
Author: Harald Judt <h.j...@gmx.at>
Date:   Tue Feb 5 16:30:41 2013 +0100

    Power saving: Fix compilation without upower.

 panel-plugin/weather-debug.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/weather-debug.c b/panel-plugin/weather-debug.c
index 1137048..df671f2 100644
--- a/panel-plugin/weather-debug.c
+++ b/panel-plugin/weather-debug.c
@@ -409,8 +409,10 @@ weather_dump_plugindata(const plugin_data *data)
                            "  panel orientation: %d\n"
                            "  plugin orientation: %d\n"
                            "  --------------------------------------------\n"
+#ifdef HAVE_UPOWER_GLIB
                            "  upower on battery: %s\n"
                            "  upower lid closed: %s\n"
+#endif
                            "  power saving: %s\n"
                            "  --------------------------------------------\n"
                            "  last astro update: %s\n"
@@ -451,8 +453,10 @@ weather_dump_plugindata(const plugin_data *data)
                            data->size,
                            data->panel_orientation,
                            data->orientation,
+#ifdef HAVE_UPOWER_GLIB
                            YESNO(data->upower_on_battery),
                            YESNO(data->upower_lid_closed),
+#endif
                            YESNO(data->power_saving),
                            last_astro_update,
                            next_astro_update,
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to