[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 02/05: Config dialog: Suppress spinner warning messages.
noreply at xfce.org
noreply at xfce.org
Thu Oct 23 13:19:26 CEST 2014
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 <h.judt at gmx.at>
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.
More information about the Xfce4-commits
mailing list