[Xfce4-commits] <xfce4-weather-plugin:master> Announce all downloads using g_message().
Harald Judt
noreply at xfce.org
Sun Aug 19 10:08:05 CEST 2012
Updating branch refs/heads/master
to cfaf022756565cb2ec62f094063fbf28b29cb022 (commit)
from de845e93489d3ad3e10f4ff6ff9f179f811a3e30 (commit)
commit cfaf022756565cb2ec62f094063fbf28b29cb022
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Aug 18 22:51:13 2012 +0200
Announce all downloads using g_message().
Also substitute g_warning by g_message for download messages,
g_warning is only used when a download fails.
panel-plugin/weather-search.c | 3 ++-
panel-plugin/weather.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/weather-search.c b/panel-plugin/weather-search.c
index 77d2f73..24de778 100644
--- a/panel-plugin/weather-search.c
+++ b/panel-plugin/weather-search.c
@@ -183,10 +183,10 @@ search_cb(GtkWidget *widget,
g_free(sane_str);
gtk_tree_view_column_set_title(dialog->column, _("Searching..."));
+ g_message("getting http://nominatim.openstreetmap.org/%s", url);
weather_http_receive_data("nominatim.openstreetmap.org", url,
dialog->proxy_host, dialog->proxy_port,
cb_searchdone, dialog);
-
g_free(url);
}
@@ -449,6 +449,7 @@ void weather_search_by_ip(const gchar *proxy_host,
data->proxy_host = proxy_host;
data->proxy_port = proxy_port;
+ g_message("getting http://geoip.xfce.org/");
weather_http_receive_data("geoip.xfce.org", "/", proxy_host, proxy_port,
cb_geolocation, data);
return;
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 5ad2d79..24c84b3 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -468,7 +468,7 @@ update_weatherdata(xfceweather_data *data)
now_tm.tm_mday);
/* start receive thread */
- g_warning("getting http://api.yr.no/%s", url);
+ g_message("getting http://api.yr.no/%s", url);
weather_http_receive_data("api.yr.no", url, data->proxy_host,
data->proxy_port, cb_astro_update, data);
@@ -483,7 +483,7 @@ update_weatherdata(xfceweather_data *data)
data->lat, data->lon);
/* start receive thread */
- g_warning("getting http://api.yr.no/%s", url);
+ g_message("getting http://api.yr.no/%s", url);
weather_http_receive_data("api.yr.no", url, data->proxy_host,
data->proxy_port, cb_update, data);
More information about the Xfce4-commits
mailing list