void gweather_update (GWeatherApplet *gw_applet) { gtk_widget_set_tooltip_text (GTK_WIDGET(gw_applet->applet), _("Updating...")); gweather_info_set_location (gw_applet->gweather_info, get_default_location (gw_applet)); gweather_info_update (gw_applet->gweather_info); }
static gboolean gtk_weather_update (gpointer data) { GtkWeather *weather = GTK_WEATHER (data); GtkWeatherPrivate *priv = GTK_WEATHER_GET_PRIVATE (weather); gweather_info_update (priv->info); return TRUE; }