From ba846b6b545490d957af46038c9b686b440ca25a Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 20 Nov 2002 21:57:43 +0000 Subject: Use GConf. * e-summary.c (e_summary_init): Use GConf. * e-summary-tasks.c: Replaced member config_listener in ESummaryTasks with a gconf_client. (setup_gconf_client): Renamed from setup_config_listener(). Set up the GConf client and invoke gconf_client_add_dir() on the interesting namespaces. (gconf_client_value_changed_cb): Renamed from config_listener_value_changed_cb and changed prototype to match that of the "value_changed" signal in GConfClient. (setup_task_folder): Updated to use GConf. * e-summary-calendar.c: Replaced member config_listener with a gconf_listener. (setup_calendar): Use GConf. (setup_gconf_client): Renamed from setup_config_listener. Set up a GConf client and invoke gconf_client_add_dir() on the interesting namespaces. (gconf_client_value_changed_cb): Renamed from config_listener_key_changed_cb() and changed prototype to match that of the "value_changed" signal in GConfClient. (locale_uses_24h_time_format): Removed. (e_summary_calendar_free): g_object_unref() the gconf_client. * Makefile.am: Add rules to install the schemas. * apps_evolution_summary.schemas: New. * e-summary-preferences.c: Did a global GList -> GSList switch. (e_summary_preferences_restore): Use GConfClient instead of EConfigListener. (vector_from_folder_list): Removed since GConf makes this useless. (folder_list_from_vector): Likewise. (str_list_from_vector): Likewise. (vector_from_str_list): Likewise. (make_initial_weather_list): Likewise. (make_initial_rdf_list): Likewise. (make_initial_mail_list): Likewise. (e_summary_preferences_save): Use GConf. (e_summary_preferences_init): No need to set up defaults here. * e-summary.h: Changed members display_folders, rdf_urls, stations in ESummaryPrefs to be GSLists instead of GLists; updated all the functions that use them accordingly. svn path=/trunk/; revision=18863 --- my-evolution/e-summary-weather.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'my-evolution/e-summary-weather.c') diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c index 286a910220..4628d3edbc 100644 --- a/my-evolution/e-summary-weather.c +++ b/my-evolution/e-summary-weather.c @@ -599,7 +599,7 @@ e_summary_weather_init (ESummary *summary) g_strfreev (stations_v); timeout = 600; } else { - GList *p; + GSList *p; for (p = prefs->stations; p; p = p->next) { e_summary_weather_add_location (summary, p->data); @@ -637,7 +637,7 @@ e_summary_weather_code_to_name (const char *code) static gboolean is_weather_shown (const char *code) { - GList *p; + GSList *p; ESummaryPrefs *global_preferences; global_preferences = e_summary_preferences_get_global (); @@ -759,8 +759,9 @@ void e_summary_weather_reconfigure (ESummary *summary) { ESummaryWeather *weather; - GList *old, *p; + GList *old; GList *weather_list; + GSList *p; g_return_if_fail (summary != NULL); g_return_if_fail (IS_E_SUMMARY (summary)); -- cgit v1.2.3