[Xfce4-commits] <xfce4-weather-plugin:master> weather.c: Add some more const qualifiers.

Harald Judt noreply at xfce.org
Mon Aug 6 13:20:04 CEST 2012


Updating branch refs/heads/master
         to 68dff4a4fba6446e0c385aa27fc87954722e6c63 (commit)
       from af6071e3fd12faf59da063a4f1bc382e41c78d0f (commit)

commit 68dff4a4fba6446e0c385aa27fc87954722e6c63
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Aug 6 11:56:46 2012 +0200

    weather.c: Add some more const qualifiers.

 panel-plugin/weather.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index a998558..c1b5c11 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -100,8 +100,8 @@ check_envproxy(gchar **proxy_host,
 }
 
 
-static gchar *
-get_label_size(xfceweather_data *data)
+static const gchar *
+get_label_size(const xfceweather_data *data)
 {
 #if LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
     /* use small label with low number of columns in deskbar mode */
@@ -124,7 +124,7 @@ get_label_size(xfceweather_data *data)
 
 
 static gchar *
-make_label(xfceweather_data *data,
+make_label(const xfceweather_data *data,
            data_types type)
 {
     xml_time *conditions;
@@ -424,7 +424,7 @@ cb_update(const gboolean succeed,
 
 
 static gboolean
-need_astro_update(xfceweather_data *data)
+need_astro_update(const xfceweather_data *data)
 {
     time_t now_t;
     struct tm now_tm, last_tm;
@@ -443,7 +443,7 @@ need_astro_update(xfceweather_data *data)
 
 
 static gboolean
-need_data_update(xfceweather_data *data)
+need_data_update(const xfceweather_data *data)
 {
     time_t now_t;
     gint diff;
@@ -461,7 +461,7 @@ need_data_update(xfceweather_data *data)
 
 
 static gboolean
-need_conditions_update(xfceweather_data *data)
+need_conditions_update(const xfceweather_data *data)
 {
     time_t now_t;
     struct tm now_tm, last_tm;
@@ -884,7 +884,7 @@ xfceweather_create_options(XfcePanelPlugin *plugin,
 
 
 static gchar *
-weather_get_tooltip_text(xfceweather_data *data)
+weather_get_tooltip_text(const xfceweather_data *data)
 {
     xml_time *conditions;
     struct tm *point_tm, *start_tm, *end_tm, *sunrise_tm, *sunset_tm;


More information about the Xfce4-commits mailing list