[Xfce4-commits] <xfce4-weather-plugin:master> Update debug output for plugin data.

Harald Judt noreply at xfce.org
Tue Nov 27 20:44:01 CET 2012


Updating branch refs/heads/master
         to f7365ac642c74cefa7dd946852196e6296a0e946 (commit)
       from 02a4d8920feefe14452ccc6cbc1e1734e7829e25 (commit)

commit f7365ac642c74cefa7dd946852196e6296a0e946
Author: Harald Judt <h.judt at gmx.at>
Date:   Tue Nov 27 20:41:57 2012 +0100

    Update debug output for plugin data.

 panel-plugin/weather-debug.c |   16 ++++++++++++++--
 panel-plugin/weather.h       |   17 +++++++----------
 2 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/panel-plugin/weather-debug.c b/panel-plugin/weather-debug.c
index cf60b8a..f3fc823 100644
--- a/panel-plugin/weather-debug.c
+++ b/panel-plugin/weather-debug.c
@@ -402,12 +402,18 @@ weather_dump_plugindata(const xfceweather_data *data)
                            "  last data update: %s\n"
                            "  last conditions update: %s\n"
                            "  --------------------------------------------\n"
+                           "  location name: %s\n"
                            "  latitude: %s\n"
                            "  longitude: %s\n"
-                           "  location name: %s\n"
+                           "  msl: %d\n"
+                           "  timezone: %d\n"
                            "  night time: %s\n"
                            "  --------------------------------------------\n"
+                           "  icon theme dir: %s\n"
+                           "  tooltip style: %d\n"
+                           "  forecast layout: %d\n"
                            "  forecast days: %d\n"
+                           "  round values: %s\n"
                            "  --------------------------------------------\n"
                            "  show scrollbox: %s\n"
                            "  scrollbox lines: %d\n"
@@ -423,11 +429,17 @@ weather_dump_plugindata(const xfceweather_data *data)
                            last_astro_update,
                            last_data_update,
                            last_conditions_update,
+                           data->location_name,
                            data->lat,
                            data->lon,
-                           data->location_name,
+                           data->msl,
+                           data->timezone,
                            YESNO(data->night_time),
+                           (data->icon_theme) ? (data->icon_theme->dir) : NULL,
+                           data->tooltip_style,
+                           data->forecast_layout,
                            data->forecast_days,
+                           YESNO(data->round),
                            YESNO(data->show_scrollbox),
                            data->scrollbox_lines,
                            data->scrollbox_font,
diff --git a/panel-plugin/weather.h b/panel-plugin/weather.h
index a4993d6..d7e45bf 100644
--- a/panel-plugin/weather.h
+++ b/panel-plugin/weather.h
@@ -51,17 +51,18 @@ typedef struct {
     GtkWidget *vbox_center_scrollbox;
     GtkWidget *iconimage;
     GtkWidget *tooltipbox;
-
     GtkWidget *summary_window;
 
     gint panel_size;
     gint size;
     GtkOrientation orientation;
     GtkOrientation panel_orientation;
-    gint updatetimeout;
+    xml_weather *weatherdata;
+    xml_astro *astrodata;
     time_t last_astro_update;
     time_t last_data_update;
     time_t last_conditions_update;
+    gint updatetimeout;
 
     GtkWidget *scrollbox;
     gboolean show_scrollbox;
@@ -72,24 +73,20 @@ typedef struct {
     gboolean scrollbox_animate;
     GArray *labels;
 
-    icon_theme *icon_theme;
-
     gchar *location_name;
     gchar *lat;
     gchar *lon;
     gint msl;
     gint timezone;
+    gboolean night_time;
 
     units_config *units;
-    gboolean round;
-    tooltip_styles tooltip_style;
-
-    xml_weather *weatherdata;
-    xml_astro *astrodata;
-    gboolean night_time;
 
+    icon_theme *icon_theme;
+    tooltip_styles tooltip_style;
     forecast_layouts forecast_layout;
     gint forecast_days;
+    gboolean round;
 } xfceweather_data;
 
 


More information about the Xfce4-commits mailing list