Commit 376e36b7 authored by Harald Judt's avatar Harald Judt

Summary window: Show API deprecation warnings in Details tab.

Show the API deprecation warnings at a more user-accessible place.
parent c894f578
......@@ -378,6 +378,16 @@ create_summary_tab(plugin_data *data)
g_free(next_download);
APPEND_TEXT_ITEM_REAL(value);
/* Check for deprecated API and issue a warning if necessary */
if (data->weather_update->http_status_code == 203)
APPEND_BTEXT
(_("\tMet.no LocationforecastLTS API states that this version\n"
"\tof the webservice is deprecated, and the plugin needs to be\n"
"\tadapted to use a newer version, or it will stop working within\n"
"\ta few months.\n"
"\tPlease file a bug on https://bugzilla.xfce.org if no one\n"
"\telse has done so yet.\n\n"));
last_download = format_date(data->astro_update->last, NULL, TRUE);
next_download = format_date(data->astro_update->next, NULL, TRUE);
value = g_strdup_printf(_("\tAstronomical data:\n"
......@@ -391,6 +401,15 @@ create_summary_tab(plugin_data *data)
g_free(next_download);
APPEND_TEXT_ITEM_REAL(value);
/* Check for deprecated sunrise API and issue a warning if necessary */
if (data->astro_update->http_status_code == 203)
APPEND_BTEXT
(_("\n\tMet.no sunrise API states that this version of the webservice\n"
"\tis deprecated, and the plugin needs to be adapted to use\n"
"\ta newer version, or it will stop working within a few months.\n"
"\tPlease file a bug on https://bugzilla.xfce.org if no one\n"
"\telse has done so yet.\n"));
/* calculation times */
APPEND_BTEXT(_("\nTimes Used for Calculations\n"));
point = format_date(conditions->point, NULL, TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment