aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-weather.c
Commit message (Collapse)AuthorAgeFilesLines
* Likewise.Ettore Perazzoli2003-03-281-19/+9
| | | | | | | | | | | | | | * e-summary.c (e_summary_init): Likewise. * e-summary-weather.c (e_summary_weather_get_html): Likewise. (weather_make_html): Likewise. * e-summary-mail.c (e_summary_mail_generate_html): Fix so it handles the fact that the translated strings are already in UTF8. * e-summary-rdf.c (tree_walk): Likewise. (display_doc): Likewise. svn path=/trunk/; revision=20553
* pass FALSE for expand to e_summary_shown_add_node. ditto,Mike Kestner2003-03-141-2/+2
| | | | | | | | | | | | | 2003-03-13 Mike Kestner <mkestner@ximian.com> * e-summary-preferences.c (fill_rdf_etable): pass FALSE for expand to e_summary_shown_add_node. * e-summary-shown.c (make_table): ditto, set_expanded_default to FALSE. (add_node): only call e_tree_node_set_expanded is expanded != default. * e-summary-weather.c (*_fill_etable): pass FALSE for expand to e_summary_shown_add_node. svn path=/trunk/; revision=20284
* New, to free/thaw the ETree models. (e_summary_shown_add_node): Don'tDan Winship2003-03-131-0/+3
| | | | | | | | | | | | | | * e-summary-shown.c (e_summary_shown_freeze, e_summary_shown_thaw): New, to free/thaw the ETree models. (e_summary_shown_add_node): Don't freeze/thaw around the single add here. That doesn't really help much. * e-summary-preferences.c (fill_rdf_etable): Freeze/thaw the ESummaryShown while filling it in. * e-summary-weather.c (e_summary_weather_fill_etable): Likewise. svn path=/trunk/; revision=20263
* Add some escapes to the newly added locations so they get split properly.Ettore Perazzoli2003-03-081-17/+15
| | | | | | | | | | | | | * Locations (name): Add some escapes to the newly added locations so they get split properly. * e-summary-weather.c (e_summary_weather_init_locations): Fetch the Locations file from the right path. If you find an invalid entry in the Locations file, complain with an informative g_warning() instead of just returning FALSE. (e_summary_weather_fill_etable): Do the same thing here. svn path=/trunk/; revision=20220
* Use G_GNUC_FUNCTION instead of __FUNCTION__. Likewise. Likewise.Ettore Perazzoli2003-03-071-1/+1
| | | | | | | | | | | * e-summary-calendar.c (e_summary_calendar_protocol): Use G_GNUC_FUNCTION instead of __FUNCTION__. * e-summary-rdf.c (e_summary_rdf_update): Likewise. * e-summary-tasks.c (e_summary_tasks_protocol): Likewise. (e_summary_tasks_protocol): Likewise. * e-summary-weather.c (e_summary_weather_update): Likewise. svn path=/trunk/; revision=20199
* Likewise, assume weather_refresh_time of zero means "never update theEttore Perazzoli2003-03-061-9/+18
| | | | | | | | | | | | | | | | | | | | * e-summary-weather.c (e_summary_weather_set_online): Likewise, assume weather_refresh_time of zero means "never update the weather". (e_summary_weather_init): Likewise here. (e_summary_weather_reconfigure): And here. * e-summary-rdf.c (e_summary_rdf_init): Don't add the news feeds here -- it should be handled with a GConf schema. Also, assume that prefs is always not NULL (as is the case with the current code), and interpret a timeout value of zero as "never update automatically". (e_summary_rdf_reconfigure): Likewise here. If rdf->timeout is zero, assume there is no pending timeout. (e_summary_rdf_set_online): Likewise here. Sigh, so much duplication in this code. svn path=/trunk/; revision=20174
* Get my-evolution.xml from EVOLUTION_UI_DIRECTORY.Ettore Perazzoli2003-01-231-2/+2
| | | | | | | | | | | | | | | | | | * e-summary-factory.c (control_activate): Get my-evolution.xml from EVOLUTION_UI_DIRECTORY. * e-summary.c (e_pixmap_file): Use EVOLUTION_IMAGEDIR. (e_pixmap_file): Use EVOLUTION_BUTTONSDIR. * e-summary-weather.c (e_summary_weather_init_locations): Use LOCATIONDIR. (e_summary_weather_fill_etable): Likewise. * Makefile.am (Locationdir): Version using $(BASE_VERSION). (gladedir): Likewise. (INCLUDES): Define EVOLUTION_IMAGEDIR. svn path=/trunk/; revision=19563
* Use GConf.Ettore Perazzoli2002-11-211-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* #include <string.h>.Ettore Perazzoli2002-11-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * metar.c: #include <string.h>. * main.c (main): Use gnome_program_init(). * e-summary-tasks.c (e_summary_tasks_protocol): Use bonobo-activation. * e-summary-table.c (set_value_at): Use g_signal_emit() instead of gtk_signal_emit(). * e-summary-shown.c (e_summary_shown_class_init): GObjectified. (construct_pixmap_button): Use gtk_image_new_from_stock() instead of gnome_stock_pixmap_new(). * e-summary-preferences.c (e_summary_preferences_restore): Use EConfigListener. (add_dialog_clicked_cb): Add some missing consts. (factory_fn): Pass NULL as the domain arg to glade_xml_new(). (factory_fn): Add id arg. (e_summary_preferences_register_config_control_factory): * e-summary-mail.c (e_summary_folder_init_folder_store): Use bonobo-activation. * e-summary-factory.c (control_activate): Pass NULL ev arg to bonobo functions that now need it. (control_deactivate): Likewise. (control_activate_cb): Likewise. (e_summary_factory_new_control): Use g_signal_connect() instead of gtk_signal_connect(). * e-summary-calendar.c (e_summary_calendar_protocol): Use bonobo_activation. * e-summary.c: Update gnome-print #includes. Added some missing #includes. (e_summary_url_clicked): Pass NULL as the error arg to gnome_url_show(). (do_summary_print): Use GnomePrintConfig instead of GnomePrinter et al. * e-cell-tri.h: Removed BEGIN_GNOME_DECLS/END_GNOME_DECLS. * e-summary.c: Removed #include <libgnome/gnome-defs.h>. Ported to e-config-listener.c. * e-cell-tri.h: Removed #include <libgnome/gnome-defs.h>. * component-factory.c: #include <gtk/gtkmain.h>. (create_component): Use g_signal_connect. Match prototype with the one required by bonobo_generic_factory(). * Makefile.am: Add @INTLTOOL_SERVER_RULE@. ($(MAIL_GENERATED)): Update with new ORBit rules. svn path=/trunk/; revision=18574
* Removed debugging message.Ettore Perazzoli2002-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-cell-tri.c (set_value): Removed debugging message. * e-summary-factory.c (control_activate): Removed the call to e_summary_thaw(). (control_deactivate): Removed the call to e_summary_freeze(). * e-summary-mail.c (folder_gen_html): Removed debugging message. (insert_path_recur): Likewise. (add_storage_to_table): Likewise. (folder_info_pb_changed): Likewise. (lazy_register_storages): Likewise. * e-summary-weather.c: #include "e-summary-preferences.h". (e_summary_weather_update): Removed debugging message. * e-summary-offline-handler.c: #include <gtk/gtksignal.h>. * main.c: #include <gconf/gconf.h> and <gal/widgets/e-cursors.h>. * e-summary-preferences.c (free_rdf_info): Removed unused function. (find_name_for_url): Likewise. (mail_etable_item_changed_cb): Likewise. (maybe_add_to_shown): Likewise. (get_folders_from_view): Removed debugging messages. * e-summary-rdf.c (tree_walk): Removed debugging message. (e_summary_rdf_update): Likewise. * e-summary-shown.c (find_entry_from_location): Removed unused function. (maybe_move_to_shown): Removed debugging message. * e-summary-tasks.c: New members cal_open_reload_timeout_id and reload_count in ESummaryTasks. (generate_html): Return if the load_state of the cal_client is not CAL_CLIENT_LOAD_LOADED. (cal_open_reload_timeout): New; timeout function for attempting to reload the calendar if the first attempt failed. (cal_opened_cb): If the load failed, register cal_open_reload_timeout to try again after one second. (setup_task_folder): If there is a pending timeout callback [cal_open_reload_timeout_id nonzero], remove it. (e_summary_tasks_init): Call setup_task_folder(). (e_summary_tasks_free): If there is a pending timeout callback [cal_open_reload_timeout_id nonzero], remove it. * e-summary-calendar.c: New members cal_open_reload_timeout_id and reload_count in ESummaryCalendar. (e_cal_comp_util_compare_event_timezones): Renamed to compare_event_timezones() and made static. (generate_html): Return if the load_state of the cal_client is not CAL_CLIENT_LOAD_LOADED. Call e_summary_draw() before returning. (cal_open_reload_timeout): New; timeout function for attempting to reload the calendar if the first attempt failed. (cal_opened_cb): Return if the load_state of the cal_client is not CAL_CLIENT_LOAD_LOADED. (e_summary_calendar_reconfigure): Call setup_calendar() so that, if the default folder has changed, it gets reloaded. (setup_calendar): If there is a pending timeout callback [cal_open_reload_timeout_id nonzero], remove it. (e_summary_calendar_free): Likewise. * e-summary.c: New member queue_draw_idle_id in ESummaryPrivate. Removed member redraw_pending. (destroy): If queue_draw_idle_id is nonzero, remove the corresponding glib mainloop source. (draw_idle_cb): New function to regenerate the HTML in the idle loop; moved all the code from e_summary_draw() in here. (e_summary_draw): Set up draw_idle_cb as an idle callback. (e_summary_init): Initialize queued_draw_idle_id. (e_summary_reload_timeout): Call e_summary_calendar_reconfigure() and e_summary_tasks_reconfigure(). Removed debugging message. (e_summary_set_online): Removed debugging message. (e_summary_freeze): Removed. (e_summary_thaw): Removed. svn path=/trunk/; revision=18443
* (e_summary_weather_reconfigure): NULL theEttore Perazzoli2002-10-211-3/+10
| | | | | | | | ->weathers member before freeing the list items. Otherwise soup_message_cancel() might invoke the refresh function while we are freeing things on the list, and crash. [#31639] svn path=/trunk/; revision=18398
* (e_summary_weather_get_html): Don't add anyEttore Perazzoli2002-09-241-13/+1
| | | | | | | header if there are no weather stations. [#15101] (make_anchor): Removed unused function. svn path=/trunk/; revision=18185
* Sort the states in the right orderIain Holmes2002-06-271-4/+3
| | | | svn path=/trunk/; revision=17291
* Allow IMAP folders and VFolders and make the mail summaries show and make ↵Iain Holmes2002-04-231-10/+15
| | | | | | the etables almost work perfectly svn path=/trunk/; revision=16556
* Make the preferences seperate from the viewsIain Holmes2002-04-041-7/+1
| | | | svn path=/trunk/; revision=16338
* VFolders in the summaryIain Holmes2002-03-181-33/+18
| | | | svn path=/trunk/; revision=16190
* The new selector widgetIain Holmes2002-02-051-40/+73
| | | | svn path=/trunk/; revision=15565
* Use soup to transfer HTTP files and other bugs fixedIain Holmes2002-01-171-104/+49
| | | | svn path=/trunk/; revision=15344
* Fix bug if you remove all folders, or all rdfs or all weather stations where ↵Iain Holmes2001-10-311-1/+1
| | | | | | settings were reset svn path=/trunk/; revision=14534
* Save the RDFs into a new placeIain Holmes2001-10-301-1/+1
| | | | | | Only have one place for initialisation of rdf/weather stations. svn path=/trunk/; revision=14362
* We only want KBOS by default.Ettore Perazzoli2001-10-301-1/+1
| | | | | | | | | | * e-summary-preferences.c (make_initial_weather_list): We only want KBOS by default. * e-summary-weather.c (e_summary_weather_init): We only want KBOS by default. svn path=/trunk/; revision=14351
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14212
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* NULL the handle after a failed open so the offline handler won't thinkIain Holmes2001-10-271-0/+12
| | | | | | | | | | | | | | | | | | | 2001-10-26 Iain Holmes <iain@ximian.com> * e-summary-rdf.c (open_callback): NULL the handle after a failed open so the offline handler won't think they're still open. (e_summary_rdf_set_online): Cancel all the open connections when the summary goes offline. * e-summary-weather.c (open_callback): NULL the handle after a failed open so the offline handler won't think they're still open. (e_summary_weather_set_online): Cancel all the open connections when the summary goes offline. * e-summary.c (e_summary_set_online): Call the callback if it's not NULL. svn path=/trunk/; revision=14183
* Stuff to try to find the memory corruptionIain Holmes2001-10-191-1/+14
| | | | svn path=/trunk/; revision=13769
* Fixed polling in offline modeIain Holmes2001-10-111-1/+8
| | | | svn path=/trunk/; revision=13562
* Swap Xiamen for TokyoIain Holmes2001-10-051-1/+1
| | | | | | Capitalise stuff in the glade file svn path=/trunk/; revision=13421
* Add copyright noticesIain Holmes2001-09-271-4/+19
| | | | svn path=/trunk/; revision=13157
* Add missing width/height tags to the sunny/cloudy/etc images to make theDan Winship2001-09-221-1/+2
| | | | | | | | * e-summary-weather.c (weather_make_html): Add missing width/height tags to the sunny/cloudy/etc images to make the page render more smoothly. svn path=/trunk/; revision=13070
* Do appends instead of prepends in places.Iain Holmes2001-09-191-1/+1
| | | | | | Don't print a (null). svn path=/trunk/; revision=12941
* Don't make the confusing URL for the station nameIain Holmes2001-09-181-1/+10
| | | | svn path=/trunk/; revision=12911
* Purification.Dan Winship2001-09-111-4/+6
| | | | | | | | | | | | | | | | | | * e-summary.c (destroy): free the protocol hash. * e-summary-rdf.c (tree_walk): plug a leak. * e-summary-weather.c (e_summary_weather_init_locations): Don't insert duplicates into the hash table. * e-summary-mail.c (e_summary_mail_generate_html): free old html before setting new * e-summary.c (e_summary_draw): free weather and rdf html strings. * e-summary-preferences.c (save_known_rdfs): free strings. svn path=/trunk/; revision=12747
* Studlycapsize all the IDs that are not. Likewise. Updated accordingly.Ettore Perazzoli2001-08-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Evolution-ShellComponent.idl: Studlycapsize all the IDs that are not. * Evolution-common.idl: Likewise. * evolution-activity-client.c: Updated accordingly. * evolution-shell-component.c: Likewise. * evolution-storage.c: Likewise. * e-activity-handler.c: Likewise. * e-component-registry.c: Likewise. * e-corba-storage.c: Likewise. * e-shell-user-creatable-items-handlers.c: Likewise. * e-local-storage.c (remove_folder): Remove unused variable. * e-shell-view.c (update_for_current_uri): Assign zero to `unread_count', not NULL. * e-shell-importer.c (import_druid_finish): Remove unused variable. * e-shell-user-creatable-items-handler.c: #include "e-corba-utils.h". * e-shell-startup-wizard.c: #include "e-shell-startup-wizard.h". * e-shell-startup-wizard.h: #include <glib.h> * e-summary-weather.c (weather_make_html): Make local variable `icon_name' const. Remove unused variable `uri'. * e-summary.h: Reformatted in GTK+ style. (e_summary_remove_online_connection): Added prototype. * e-summary-preferences.c (fill_mail_shown_clist): Constify local variable `name'. * e-summary-mail.c: #include "e-util/e-path.h". Updated to match the new studlyCapsification in shell/Evolution*.idl. * mail-local.c: Match the studlyCapsification of shell/Evolution*.idl. * mail-config-druid.h: Change type of `event_source' from `Bonobo_EventSource *' to `Bonobo_EventSource'. * mail-accounts.c (mail_delete): Remove unused local variable `label'. * folder-info.c (do_get_info): `#if 0' unused variables. * gui/component/addressbook-component.c: Get rid of a warning by initializing the closing NULL element in folder_types correctly. * gui/component/select-names/e-select-names.c: Updated to match the studlyCapsification of attributes in shell/Evolution*.idl. svn path=/trunk/; revision=12495
* Fix the show_full_path bugIain Holmes2001-08-231-0/+1
| | | | | | Set up the functions for better online/offline reporting. svn path=/trunk/; revision=12403
* Marked string for translation (connection type).Chyla Zbigniew2001-08-201-7/+18
| | | | | | | | | | | | | * my-evolution/e-summary-rdf.c (make_connection): Marked string for translation (connection type). * my-evolution/e-summary-weather.c (make_url): Split into two functions: make_url and make_anchor. (weather_make_html): s/make_url/make_anchor/ (make_connection): Marked connection type string for franslation, assign the real URI to ->hostname (using make_url), not location code. svn path=/trunk/; revision=12226
* Don't hardcode the default list of stations, let translators define it perChyla Zbigniew2001-08-191-3/+12
| | | | | | | | | * e-summary-preferences.c (make_initial_weather_list), e-summary-weather.c (e_summary_weather_init): Don't hardcode the default list of stations, let translators define it per locale/country. svn path=/trunk/; revision=12216
* KBOS and ZSAMIain Holmes2001-08-141-2/+2
| | | | svn path=/trunk/; revision=11972
* More stuffIain Holmes2001-07-191-1/+4
| | | | svn path=/trunk/; revision=11214
* Remove spewageIain Holmes2001-07-191-1/+0
| | | | svn path=/trunk/; revision=11213
* Nicer error reporting.Iain Holmes2001-07-171-2/+15
| | | | svn path=/trunk/; revision=11130
* Free the data stop all the transfers when the summary is destroyed.Iain Holmes2001-07-121-0/+42
| | | | svn path=/trunk/; revision=11010
* Get a lovely icon from jimmac for the type of weatherIain Holmes2001-07-101-2/+6
| | | | svn path=/trunk/; revision=10929
* Disable bonobo-conf Fix radio button problemIain Holmes2001-07-041-4/+13
| | | | | | | Disable bonobo-conf Fix radio button problem svn path=/trunk/; revision=10767
* Handle the online/offline stuffIain Holmes2001-07-011-2/+102
| | | | svn path=/trunk/; revision=10639
* Marked strings for translation + conversion to utf8.Chyla Zbigniew2001-06-301-9/+20
| | | | | | | | | | | | | | | | | | | | | * e-summary-calendar.c (generate_html): Marked strings for translation + conversion to utf8. * e-summary-mail.c Added missing #include <config.h> (e_summary_mail_generate_html): Marked strings for translation + conversion to utf8. * e-summary-weather.c (e_summary_weather_get_html, open_callback): Marked strings for translation + conversion to utf8. (weather_make_html): Fixed leaks. * e-summary-rdf.c (tree_walk): Fixed leaks. (read_callback): Marked strings for translation. svn path=/trunk/; revision=10630
* Configure My EvolutionIain Holmes2001-06-301-13/+202
| | | | svn path=/trunk/; revision=10604
* Some fixesIain Holmes2001-06-091-2/+1
| | | | svn path=/trunk/; revision=10169
* Committing the new My Evolution.Iain Holmes2001-06-091-0/+419
svn path=/trunk/; revision=10163