-
- /* Setup auto update enable */
- gboolean auto_update = grits_prefs_get_boolean(self->prefs, "aweather/update_enab", NULL);
- GObject *action = aweather_gui_get_object(self, "update");
- gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), auto_update);
- g_signal_connect_swapped(self->viewer, "refresh", G_CALLBACK(set_update_timeout), self);
- set_update_timeout(self);