[Xfce4-commits] <xfce4-weather-plugin:master> Do not shorten location names returned by auto-detection-by-ip.
Harald Judt
noreply at xfce.org
Wed Jul 18 08:24:01 CEST 2012
Updating branch refs/heads/master
to 9d24c87ebfbbc184701ed5f8bfb12878aa48b5e7 (commit)
from 1b2986a38b904d48fd87285a3001974efc478e8b (commit)
commit 9d24c87ebfbbc184701ed5f8bfb12878aa48b5e7
Author: Harald Judt <h.judt at gmx.at>
Date: Wed Jul 18 08:18:21 2012 +0200
Do not shorten location names returned by auto-detection-by-ip.
Unlike the search dialog, the auto-detection-by-ip feature returns
a nice location name and there's no need to truncate it.
panel-plugin/weather-config.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index e2109df..e5a94ce 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -368,15 +368,11 @@ option_i (datas opt)
static void auto_locate_cb(const gchar *loc_name, const gchar *lat, const gchar *lon, gpointer user_data)
{
xfceweather_dialog *dialog = (xfceweather_dialog *) user_data;
- gchar *sane_loc_name;
if (lat && lon && loc_name) {
gtk_entry_set_text (GTK_ENTRY (dialog->txt_lat), lat);
gtk_entry_set_text (GTK_ENTRY (dialog->txt_lon), lon);
gtk_entry_set_text (GTK_ENTRY (dialog->txt_loc_name), loc_name);
- sane_loc_name = sanitize_location_name(loc_name);
- gtk_entry_set_text (GTK_ENTRY (dialog->txt_loc_name), sane_loc_name);
- g_free(sane_loc_name);
gtk_widget_set_sensitive(dialog->txt_loc_name, TRUE);
#if GTK_CHECK_VERSION(2,12,0)
gtk_widget_set_tooltip_text(dialog->txt_loc_name,loc_name);
More information about the Xfce4-commits
mailing list