[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 02/03: I18n: Update translation es (100%).
This is an automated email from the git hooks/post-receive script. transifex pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit d21d7e49ea066a8ed5d212bb176328333c6f0c0e Author: mc Date: Thu Oct 23 18:31:42 2014 +0200 I18n: Update translation es (100%). 330 translated messages. Transifex (https://www.transifex.com/projects/p/xfce/). --- po/es.po | 133 +++--- 1 file changed, 67 insertions(+), 66 deletions(-) diff --git a/po/es.po b/po/es.po index d2a9892..88edee6 100644 --- a/po/es.po +++ b/po/es.po @@ -3,20 +3,20 @@ # This file is distributed under the same license as the PACKAGE package. # # Translators: -# Adolfo Jayme Barrientos , 2014 -# César Enrique García , 2013 -# Rayonant , 2013 -# fserrador , 2013 -# MC , 2013 -# Pablo Lezaeta , 2013-2014 +# Adolfo Jayme Barrientos , 2014 +# cquike , 2013 +# David Segura Monroy , 2013 +# Francisco , 2013 +# mc , 2013-2014 +# Pablo Roberto Francisco Lezaeta Reyes , 2013-2014 msgid "" msgstr "" "Project-Id-Version: Xfce Panel Plugins\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-01-12 06:31+0100\n" -"PO-Revision-Date: 2014-04-05 00:42+\n" -"Last-Translator: Pablo Lezaeta \n" -"Language-Team: Spanish (http://www.transifex.com/projects/p/xfce/language/es/)\n" +"POT-Creation-Date: 2014-10-19 18:32+0200\n" +"PO-Revision-Date: 2014-10-23 14:19+\n" +"Last-Translator: mc \n" +"Language-Team: Spanish (http://www.transifex.com/projects/p/xfce-panel-plugins/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -80,11 +80,11 @@ msgstr "F" msgid "R" msgstr "R" -#: ../panel-plugin/weather.c:358 ../panel-plugin/weather.c:360 +#: ../panel-plugin/weather.c:351 ../panel-plugin/weather.c:353 msgid "No Data" msgstr "Sin datos" -#: ../panel-plugin/weather.c:498 +#: ../panel-plugin/weather.c:493 msgid "" "Met.no sunrise API states that this version of the webservice is deprecated," " and the plugin needs to be adapted to use a newer version, or it will stop " @@ -92,18 +92,18 @@ msgid "" "if no one else has done so yet." msgstr "Met.no sunrise API indica que esta versión del servicio web está en desuso, y el plugin necesita ser adaptado para utilizar una versión más reciente, o dejará de funcionar dentro de unos pocos meses. Por favor, abra una incidencia en https://bugzilla.xfce.org si nadie más lo ha hecho aún." -#: ../panel-plugin/weather.c:518 +#: ../panel-plugin/weather.c:513 msgid "Error parsing astronomical data!" msgstr "¡Error analizando datos astronómicos!" -#: ../panel-plugin/weather.c:520 +#: ../panel-plugin/weather.c:515 #, c-format msgid "" "Download of astronomical data failed with HTTP Status Code %d, Reason " "phrase: %s" msgstr "La descarga de datos de meteorología han fallado con el Código de Estado HTTP %d, Frase marcada: %s" -#: ../panel-plugin/weather.c:560 +#: ../panel-plugin/weather.c:555 msgid "" "Met.no LocationforecastLTS API states that this version of the webservice is" " deprecated, and the plugin needs to be adapted to use a newer version, or " @@ -111,57 +111,57 @@ msgid "" "https://bugzilla.xfce.org if no one else has done so yet." msgstr "Met.no LocationforecastLTS API indica que esta versión del servicio web está en desuso, y el plugin necesita ser adaptado para utilizar una versión más reciente, o dejará de funcionar dentro de unos pocos meses. Por favor, abra una incidencia en https://bugzilla.xfce.org si nadie más lo ha hecho aún." -#: ../panel-plugin/weather.c:578 +#: ../panel-plugin/weather.c:573 msgid "Error parsing weather data!" msgstr "¡Error analizando datos meteorológicos!" -#: ../panel-plugin/weather.c:581 +#: ../panel-plugin/weather.c:576 #, c-format msgid "" "Download of weather data failed with HTTP Status Code %d, Reason phrase: %s" msgstr "La descarga de datos de meteorología han fallado con el Código de Estado HTTP %d, Frase marcada: %s" #. start receive thread -#: ../panel-plugin/weather.c:655 ../panel-plugin/weather.c:674 +#: ../panel-plugin/weather.c:650 ../panel-plugin/weather.c:669 #: ../panel-plugin/weather-search.c:169 ../panel-plugin/weather-search.c:435 #, c-format msgid "getting %s" msgstr "obteniendo %s" -#: ../panel-plugin/weather.c:1173 +#: ../panel-plugin/weather.c:1172 #, c-format msgid "Error writing cache file %s!" msgstr "¡Error escribiendo archivo de cache %s!" -#: ../panel-plugin/weather.c:1584 +#: ../panel-plugin/weather.c:1619 #, c-format msgid "Unable to open the following url: %s" msgstr "Imposible abrir la siguiente URL: %s" -#: ../panel-plugin/weather.c:1615 ../panel-plugin/weather.desktop.in.h:1 +#: ../panel-plugin/weather.c:1650 ../panel-plugin/weather.desktop.in.h:1 msgid "Weather Update" msgstr "Actualizacion del tiempo" -#: ../panel-plugin/weather.c:1652 +#: ../panel-plugin/weather.c:1687 msgid "Short-term fore
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] branch master updated (4a53bb4 -> ea15b6a)
This is an automated email from the git hooks/post-receive script. transifex pushed a change to branch master in repository panel-plugins/xfce4-weather-plugin. from 4a53bb4 Fix astrodata being wrong after a location change. new a14494f I18n: Update translation de (100%). new d21d7e4 I18n: Update translation es (100%). new ea15b6a I18n: Update translation it (100%). The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: po/de.po | 66 +- po/es.po | 133 +++-- po/it.po | 405 ++ 3 files changed, 323 insertions(+), 281 deletions(-) -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 01/03: I18n: Update translation de (100%).
This is an automated email from the git hooks/post-receive script. transifex pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit a14494f0deb91dfe2ae243df3242e86343f520e0 Author: Anonymous Date: Thu Oct 23 18:31:42 2014 +0200 I18n: Update translation de (100%). 330 translated messages. Transifex (https://www.transifex.com/projects/p/xfce/). --- po/de.po | 66 +++--- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/po/de.po b/po/de.po index 2ad55b1..8ce53e3 100644 --- a/po/de.po +++ b/po/de.po @@ -13,8 +13,8 @@ msgstr "" "Project-Id-Version: Xfce Panel Plugins\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-10-19 18:32+0200\n" -"PO-Revision-Date: 2014-10-22 20:00+\n" -"Last-Translator: Harald Judt \n" +"PO-Revision-Date: 2014-10-23 14:10+\n" +"Last-Translator: Tobias Bannert\n" "Language-Team: German (http://www.transifex.com/projects/p/xfce-panel-plugins/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -361,13 +361,13 @@ msgstr "_Zeitzone:" msgid "" "If the chosen location is not in your current timezone, then it is necessary to put the plugin into that other timezone for the times to be shown correctly. The proper timezone will be auto-detected via the GeoNames web service, but you might want to correct it if necessary.\n" "Leave this field empty to use the timezone set by your system. Invalid entries will cause the use of UTC time, but that may also depend on your system." -msgstr "Wenn sich der gewählte Ort nicht in der gegenwärtigen Zeitzone befindet, ist es notwendig, die Erweiterung in diese andere Zeitzone zu versetzen, damit die Zeiten richtig angezeigt werden. Wenn die richtige Zeitzone nicht über den GeoNames-Netzdienst automatisch ermittelt werden konnte, korrigieren Sie den Eintrag bitte manuell.\nLassen Sie das Feld leer, um die vom System vorgegebene Zeitzone zu verwenden. Ein ungültiger Eintrag bewirkt normalerweise die UTC-Zeit verwende [...] +msgstr "Wenn sich der gewählte Ort nicht in der gegenwärtigen Zeitzone befindet, ist es notwendig, die Erweiterung in diese andere Zeitzone zu versetzen, damit die Zeiten richtig angezeigt werden. Wenn die richtige Zeitzone nicht über den GeoNames-Netzdienst automatisch ermittelt werden konnte, berichtigen Sie den Eintrag bitte manuell.\nLassen Sie das Feld leer, um die vom System vorgegebene Zeitzone zu verwenden. Ein ungültiger Eintrag bewirkt normalerweise das die UTC-Zeit verw [...] #: ../panel-plugin/weather-config.c:610 msgid "" "Please change location name to your liking and correct\n" "altitude and timezone if they are not auto-detected correctly." -msgstr "Bitte ändern Sie die Bezeichnung nach Belieben und\nkorrigieren Sie bei Bedarf die automatisch erkannte Höhenlage\nund Zeitzone." +msgstr "Bitte ändern Sie die Bezeichnung nach Belieben und\nberichtigen Sie bei Bedarf die automatisch erkannte Höhenlage\nund Zeitzone." #: ../panel-plugin/weather-config.c:635 msgid "" @@ -752,7 +752,7 @@ msgid "" "Air temperature, sometimes referred to as dry-bulb temperature. Measured by " "a thermometer that is freely exposed to the air, yet shielded from radiation" " and moisture." -msgstr "Lufttemperatur (Trockentemperatur, Temperatur bei ungesättigter Luft) wird von einem Thermometer gemessen, welches frei der Luft ausgesetzt, dabei jedoch von Strahlung und Feuchtigkeit abgeschirmt ist." +msgstr "Lufttemperatur (Trockentemperatur, Temperatur bei ungesättigter Luft) wird von einem Thermometer gemessen, welches der Luft frei ausgesetzt ist, dabei jedoch von Strahlung und Feuchtigkeit abgeschirmt ist." #: ../panel-plugin/weather-config.c:1525 msgid "" @@ -790,7 +790,7 @@ msgstr "Gibt die Himmelsrichtung an (Norden, Osten, Süden, Westen), aus der der msgid "" "This gives the direction the wind is coming from in azimuth degrees (North =" " 0°, East = 90°, South = 180° and West = 270°)." -msgstr "Zeigt die Richtung, aus der der Wind kommt, in Grad (Norden = 0°, Osten = 90°, Süden = 180° und Westen = 270°)." +msgstr "Gibt die Windrichtung in Grad an (Norden = 0°, Osten = 90°, Süden = 180° und Westen = 270°)." #: ../panel-plugin/weather-config.c:1559 msgid "" @@ -799,7 +799,7 @@ msgid "" "the water content of air, relative humidity gives (in %) the current " "absolute humidity relative to the maximum for that air temperature and " "pressure." -msgstr "Luftfeuchtigkeit bezeichnet den Anteil des Wasserdampfs an der Luft und beeinflusst die Wahrscheinlichkeit für Niederschläge, Nebel und Tau. Während die absolute Luftfeuchtigkeit die aktuelle Wasserdampfmasse in einem bestimmten Luftvolumen angibt, beschreibt die relative Luftfeuchtigkeit das Verhältnis der absoluten Luftfeuchtigkeit zur maximal möglichen Masse in Prozent." +msgstr "Luftfeuchtigkeit bezeichnet den Anteil des Wasserdampfes an der Luft und bee
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 03/03: I18n: Update translation it (100%).
This is an automated email from the git hooks/post-receive script. transifex pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit ea15b6a435bf26d589c85da471fe46eab3a8466f Author: Cristian Marchi Date: Thu Oct 23 18:31:42 2014 +0200 I18n: Update translation it (100%). 330 translated messages. Transifex (https://www.transifex.com/projects/p/xfce/). --- po/it.po | 405 ++ 1 file changed, 223 insertions(+), 182 deletions(-) diff --git a/po/it.po b/po/it.po index 55aa315..ca1e906 100644 --- a/po/it.po +++ b/po/it.po @@ -3,16 +3,16 @@ # This file is distributed under the same license as the PACKAGE package. # # Translators: -# cri , 2009,2013 +# Cristian Marchi , 2009,2013-2014 # Fabio Riga , 2007 msgid "" msgstr "" "Project-Id-Version: Xfce Panel Plugins\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-07-03 21:29+0200\n" -"PO-Revision-Date: 2013-12-30 17:20+\n" -"Last-Translator: cri \n" -"Language-Team: Italian (http://www.transifex.com/projects/p/xfce/language/it/)\n" +"POT-Creation-Date: 2014-10-19 18:32+0200\n" +"PO-Revision-Date: 2014-10-23 11:37+\n" +"Last-Translator: Cristian Marchi \n" +"Language-Team: Italian (http://www.transifex.com/projects/p/xfce-panel-plugins/language/it/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,67 +20,67 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. TRANSLATORS: Keep in sync with labeloptions in weather-config.c -#: ../panel-plugin/weather.c:122 +#: ../panel-plugin/weather.c:128 msgid "T" msgstr "T" -#: ../panel-plugin/weather.c:125 +#: ../panel-plugin/weather.c:131 msgid "P" msgstr "P" -#: ../panel-plugin/weather.c:128 +#: ../panel-plugin/weather.c:134 msgid "WS" msgstr "VV" -#: ../panel-plugin/weather.c:131 +#: ../panel-plugin/weather.c:137 msgid "WB" msgstr "VB" -#: ../panel-plugin/weather.c:134 ../panel-plugin/weather.c:137 +#: ../panel-plugin/weather.c:140 ../panel-plugin/weather.c:143 msgid "WD" msgstr "DV" -#: ../panel-plugin/weather.c:140 +#: ../panel-plugin/weather.c:146 msgid "H" msgstr "U" -#: ../panel-plugin/weather.c:143 +#: ../panel-plugin/weather.c:149 msgid "D" msgstr "PR" -#: ../panel-plugin/weather.c:146 +#: ../panel-plugin/weather.c:152 msgid "A" msgstr "A" -#: ../panel-plugin/weather.c:149 +#: ../panel-plugin/weather.c:155 msgid "CL" msgstr "NB" -#: ../panel-plugin/weather.c:152 +#: ../panel-plugin/weather.c:158 msgid "CM" msgstr "NM" -#: ../panel-plugin/weather.c:155 +#: ../panel-plugin/weather.c:161 msgid "CH" msgstr "NA" -#: ../panel-plugin/weather.c:158 +#: ../panel-plugin/weather.c:164 msgid "C" msgstr "C" -#: ../panel-plugin/weather.c:161 +#: ../panel-plugin/weather.c:167 msgid "F" msgstr "N" -#: ../panel-plugin/weather.c:164 +#: ../panel-plugin/weather.c:170 msgid "R" msgstr "R" -#: ../panel-plugin/weather.c:352 ../panel-plugin/weather.c:354 +#: ../panel-plugin/weather.c:351 ../panel-plugin/weather.c:353 msgid "No Data" msgstr "Nessun dato" -#: ../panel-plugin/weather.c:464 +#: ../panel-plugin/weather.c:493 msgid "" "Met.no sunrise API states that this version of the webservice is deprecated," " and the plugin needs to be adapted to use a newer version, or it will stop " @@ -88,18 +88,18 @@ msgid "" "if no one else has done so yet." msgstr "L'API Sunrise di Met.no riporta che questa versione del webservice è obsoleta e il plugin deve essere aggiornato per utilizzare una nuova versione; diversamente, smetterà di funzionare in pochi mesi. Segnalare il problema su https://bugzilla.xfce.org se non lo ha ancora fatto nessuno." -#: ../panel-plugin/weather.c:483 +#: ../panel-plugin/weather.c:513 msgid "Error parsing astronomical data!" msgstr "Errore nell'analisi dei dati astronomici!" -#: ../panel-plugin/weather.c:485 +#: ../panel-plugin/weather.c:515 #, c-format msgid "" "Download of astronomical data failed with HTTP Status Code %d, Reason " "phrase: %s" msgstr "Lo scaricamento dei dati astronomici non è riuscito con il codice di stato HTTP %d, motivo: %s" -#: ../panel-plugin/weather.c:534 +#: ../panel-plugin/weather.c:555 msgid "" "Met.no LocationforecastLTS API states that this version of the webservice is" " deprecated, and the plugin needs to be adapted to use a newer version, or " @@ -107,58 +107,57 @@ msgid "" "https://bugzilla.xfce.org if no one else has done so yet." msgstr "L'API LocationforecastLTS di Met.no riporta che questa versione del webservice è obsoleta e il plugin deve essere aggiornato per utilizzare una nuova versione; diversamente, smetterà di funzionare in pochi mesi. Segnalare il problema su https://bugzilla.xfce.org se non lo ha ancora fatto nessuno." -#: ../panel-plugin/weather.c:552 +#: ../panel-plugin/weather.c:573 msgid "Error parsing weather data!" msgstr "Impossibile elaborare i dati mete
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] branch master updated (409a51b -> 4a53bb4)
This is an automated email from the git hooks/post-receive script. hjudt pushed a change to branch master in repository panel-plugins/xfce4-weather-plugin. from 409a51b I18n: Update translation de (100%). new e8a4c2b Config dialog: Fix removing GSources. new 8864b66 Config dialog: Suppress spinner warning messages. new 1b3d019 Fix variable name for get_astro_data_for_day in header file. new b816254 Fix processing day of astrodata. new 4a53bb4 Fix astrodata being wrong after a location change. The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: panel-plugin/weather-config.c | 22 -- panel-plugin/weather-data.h|2 +- panel-plugin/weather-parsers.c | 24 ++-- panel-plugin/weather-parsers.h |3 ++- panel-plugin/weather.c | 33 +++-- 5 files changed, 52 insertions(+), 32 deletions(-) -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 01/05: Config dialog: Fix removing GSources.
This is an automated email from the git hooks/post-receive script. hjudt pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit e8a4c2b8e0e13740cb90228af317aab8d33d7492 Author: Harald Judt Date: Wed Oct 22 00:54:25 2014 +0200 Config dialog: Fix removing GSources. Check to see if a GSource exists before destroying it, since any GSource may be destroyed early in the main event loop if its dispatch callback returns FALSE. --- panel-plugin/weather-config.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c index 43824ab..51d79df 100644 --- a/panel-plugin/weather-config.c +++ b/panel-plugin/weather-config.c @@ -166,17 +166,25 @@ schedule_data_update(gpointer user_data) static void schedule_delayed_data_update(xfceweather_dialog *dialog) { +GSource *source; + weather_debug("Starting delayed data update."); /* cancel any update that was scheduled before */ if (dialog->timer_id) { -g_source_remove(dialog->timer_id); -dialog->timer_id = 0; +source = g_main_context_find_source_by_id(NULL, dialog->timer_id); +if (source) { +g_source_destroy(source); +dialog->timer_id = 0; +} } /* stop any updates that could be performed by weather.c */ if (dialog->pd->update_timer) { -g_source_remove(dialog->pd->update_timer); -dialog->pd->update_timer = 0; +source = g_main_context_find_source_by_id(NULL, dialog->pd->update_timer); +if (source) { +g_source_destroy(source); +dialog->pd->update_timer = 0; +} } gtk_widget_show(GTK_WIDGET(dialog->update_spinner)); -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 05/05: Fix astrodata being wrong after a location change.
This is an automated email from the git hooks/post-receive script. hjudt pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit 4a53bb4ce2467f6da2826664f918544396e75f58 Author: Harald Judt Date: Wed Oct 22 21:40:01 2014 +0200 Fix astrodata being wrong after a location change. This commit fixes the following bug: 1) Add weather plugin instance to the panel and open its configuration dialog. 2) Let the plugin autodetect its location and finish downloading of data. 3) Choose for a new location (maybe even in another timezone). 4) Wait for data download to finish, then look at the sunrise/sunset data, e.g. in the tooltip and notice it is wrong. --- panel-plugin/weather.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c index 79e7ef4..fff24e0 100644 --- a/panel-plugin/weather.c +++ b/panel-plugin/weather.c @@ -1411,13 +1411,19 @@ update_weatherdata_with_reset(plugin_data *data) data->weatherdata = make_weather_data(); } +/* clear existing astronomical data */ +if (data->astrodata) { +astrodata_free(data->astrodata); +data->astrodata = g_array_sized_new(FALSE, TRUE, sizeof(xml_astro *), 30); +} + /* update GUI to display NODATA */ update_icon(data); update_scrollbox(data, TRUE); /* make use of previously saved data */ read_cache_file(data); -update_current_astrodata(data); +update_current_conditions(data, TRUE); /* schedule downloads immediately */ time(&now_t); -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 02/05: Config dialog: Suppress spinner warning messages.
This is an automated email from the git hooks/post-receive script. hjudt pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit 8864b667f66353ce8a6ee83ac786e4eca4b9d302 Author: Harald Judt Date: Wed Oct 22 21:51:37 2014 +0200 Config dialog: Suppress spinner warning messages. When the user closes the configuration dialog before new data download has been completed, the spinner is no longer accessible, causing a warning. So check if the spinner is still accessible before trying to do any operations on it. --- panel-plugin/weather-config.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c index 51d79df..5aff129 100644 --- a/panel-plugin/weather-config.c +++ b/panel-plugin/weather-config.c @@ -157,8 +157,10 @@ schedule_data_update(gpointer user_data) weather_debug("Delayed update timer expired, now scheduling data update."); update_weatherdata_with_reset(pd); -gtk_spinner_stop(GTK_SPINNER(dialog->update_spinner)); -gtk_widget_hide(GTK_WIDGET(dialog->update_spinner)); +if (dialog->update_spinner && GTK_IS_SPINNER(dialog->update_spinner)) { +gtk_spinner_stop(GTK_SPINNER(dialog->update_spinner)); +gtk_widget_hide(GTK_WIDGET(dialog->update_spinner)); +} return FALSE; } -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 03/05: Fix variable name for get_astro_data_for_day in header file.
This is an automated email from the git hooks/post-receive script. hjudt pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit 1b3d01948d2d09a09d811976e694259c0d0fdb63 Author: Harald Judt Date: Wed Oct 22 22:09:43 2014 +0200 Fix variable name for get_astro_data_for_day in header file. --- panel-plugin/weather-data.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel-plugin/weather-data.h b/panel-plugin/weather-data.h index ed837ae..f468d26 100644 --- a/panel-plugin/weather-data.h +++ b/panel-plugin/weather-data.h @@ -155,7 +155,7 @@ time_t day_at_midnight(time_t day_t, const gint add_days); xml_astro *get_astro_data_for_day(const GArray *astrodata, - const gint day_t); + const gint day); GArray *get_point_data_for_day(xml_weather *wd, const gint day); -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 04/05: Fix processing day of astrodata.
This is an automated email from the git hooks/post-receive script. hjudt pushed a commit to branch master in repository panel-plugins/xfce4-weather-plugin. commit b8162546a0cee1b99effcf66b4ac4effb139d5ab Author: Harald Judt Date: Wed Oct 22 21:13:31 2014 +0200 Fix processing day of astrodata. The way the day information of astrodata is processed is erroneous and leads to different problems regarding localtime and timezones. This commit fixes this by extending parse_timestring to generate either local or gmt times and make the other parts use this for parsing astrodata instead of applying clumsy, non-functional workarounds. --- panel-plugin/weather-parsers.c | 24 ++-- panel-plugin/weather-parsers.h |3 ++- panel-plugin/weather.c | 25 - 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c index ed42dbe..acd7cf9 100644 --- a/panel-plugin/weather-parsers.c +++ b/panel-plugin/weather-parsers.c @@ -121,7 +121,8 @@ get_astro(const GArray *astrodata, time_t parse_timestring(const gchar *ts, - gchar *format) { + gchar *format, + gboolean local) { time_t t; struct tm tm; @@ -141,7 +142,11 @@ parse_timestring(const gchar *ts, if (G_UNLIKELY(strptime(ts, format, &tm) == NULL)) return t; -t = my_timegm(&tm); +if (local) +t = mktime(&tm); +else +t = my_timegm(&tm); + return t; } @@ -293,11 +298,11 @@ parse_time(xmlNode *cur_node, xmlFree(datatype); from = PROP(cur_node, "from"); -start_t = parse_timestring(from, NULL); +start_t = parse_timestring(from, NULL, FALSE); xmlFree(from); to = PROP(cur_node, "to"); -end_t = parse_timestring(to, NULL); +end_t = parse_timestring(to, NULL, FALSE); xmlFree(to); if (G_UNLIKELY(!start_t || !end_t)) @@ -388,11 +393,11 @@ parse_astro_location(xmlNode *cur_node, xmlFree(never_sets); sunrise = PROP(child_node, "rise"); -astro->sunrise = parse_timestring(sunrise, NULL); +astro->sunrise = parse_timestring(sunrise, NULL, FALSE); xmlFree(sunrise); sunset = PROP(child_node, "set"); -astro->sunset = parse_timestring(sunset, NULL); +astro->sunset = parse_timestring(sunset, NULL, FALSE); xmlFree(sunset); } @@ -416,11 +421,11 @@ parse_astro_location(xmlNode *cur_node, xmlFree(never_sets); moonrise = PROP(child_node, "rise"); -astro->moonrise = parse_timestring(moonrise, NULL); +astro->moonrise = parse_timestring(moonrise, NULL, FALSE); xmlFree(moonrise); moonset = PROP(child_node, "set"); -astro->moonset = parse_timestring(moonset, NULL); +astro->moonset = parse_timestring(moonset, NULL, FALSE); xmlFree(moonset); astro->moon_phase = PROP(child_node, "phase"); @@ -441,8 +446,7 @@ parse_astro_time(xmlNode *cur_node) return NULL; date = PROP(cur_node, "date"); -astro->day = parse_timestring(date, "%Y-%m-%d"); -astro->day = day_at_midnight(astro->day, 0); +astro->day = parse_timestring(date, "%Y-%m-%d", TRUE); xmlFree(date); for (child_node = cur_node->children; child_node; diff --git a/panel-plugin/weather-parsers.h b/panel-plugin/weather-parsers.h index 383ad2f..71e3f4d 100644 --- a/panel-plugin/weather-parsers.h +++ b/panel-plugin/weather-parsers.h @@ -125,7 +125,8 @@ xml_weather *make_weather_data(void); xml_time *make_timeslice(void); time_t parse_timestring(const gchar *ts, -gchar *format); +gchar *format, +gboolean local); gboolean parse_weather(xmlNode *cur_node, xml_weather *wd); diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c index 63214c4..79e7ef4 100644 --- a/panel-plugin/weather.c +++ b/panel-plugin/weather.c @@ -1095,7 +1095,7 @@ write_cache_file(plugin_data *data) astro = g_array_index(data->astrodata, xml_astro *, i); if (G_UNLIKELY(astro == NULL)) continue; -value = format_date(astro->day, date_format, TRUE); +value = format_date(astro->day, "%Y-%m-%d", TRUE); start = format_date(astro->sunrise, date_format, FALSE); end = format_date(astro->sunset, date_format, FALSE); g_string_append_printf(out, "[astrodata%d]\n", i); @@ -1243,7 +1243,7 @@ read_cache_file(plugin_data *data) } /* read cache creation date and check if cache file is not too old */ CACHE_READ_STRING(timestring, "cache_date"); -cache_date_t = parse_timestring(timestring, NULL); +cache_date_t = parse_timestring(timestring, NULL, FALSE); g_free