Commit Graph

15 Commits

Author SHA1 Message Date
a4f9deac83 s/BonoboXObject/BonoboObject/
* e-summary-offline-handler.c: s/BonoboXObject/BonoboObject/

svn path=/trunk/; revision=19765
2003-02-05 18:45:22 +00:00
74b947cdfc Replaced all gtk_signal_connect() calls with g_signal_connect() ones.
* e-summary-calendar.c: Replaced all gtk_signal_connect() calls
with g_signal_connect() ones.
* e-summary-mail.c: Likewise.
* e-summary-offline-handler.c: Likewise.
* e-summary-preferences.c: Likewise.
* e-summary-shown.c: Likewise.
* e-summary-tasks.c: Likewise.
* e-summary.c: Likewise.

svn path=/trunk/; revision=18754
2002-11-14 17:59:52 +00:00
afc95fbc44 Convert from GtkObject to GObject.
svn path=/trunk/; revision=18707
2002-11-11 19:52:58 +00:00
3fee618acf Removed debugging message.
* 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
2002-10-25 22:05:14 +00:00
c4c3730179 Pass ev, not &ev to CORBA_Object_duplicate since ev is already a pointer.
* e-summary-offline-handler.c (impl_goOffline): Pass ev, not &ev
        to CORBA_Object_duplicate since ev is already a pointer.

svn path=/trunk/; revision=18187
2002-09-23 22:14:13 +00:00
2e6566611d Allocate the ConnectionList list with the right number of entries instead
* e-summary-offline-handler.c (create_connection_list): Allocate
the ConnectionList list with the right number of entries instead
of zero.

svn path=/trunk/; revision=15552
2002-02-02 15:55:19 +00:00
8d91d34611 [Fix a crash that can happen if you have opened multiple views of
the summary and try to go off-line.  This is not the correct fix,
as the code should really be changed to only use one set of
connections for all the views, instead of binding the connections
to the view.]

* e-summary-factory.c (e_summary_factory_new_control): Call
`e_summary_offline_handler_add_summary()' instead of
e_summary_offline_handler_set_summary()'.

* e-summary-offline-handler.c: Replace member `summary' with
`summaries' in the ESummaryOfflineHandlerPriv.  This way, instead
of assuming that there is only one summary, we keep a list of the
summaries.
(impl_destroy): Free ->summaries.
(e_summary_offline_handler_set_summary): Removed.
(e_summary_offline_handler_add_summary): New.  Add the summary to
->summaries.  Also, connect to the ::destroy handler so we can
bookkeep them correctly.
(create_connection_list): Made private from
e_summary_offline_handler_create_connection_list().  Get a GSList
instead of just one summary, and sum up all the connections from
it.
(impl_prepareForOffline): Use it.
(impl__get_isOffline): Return %FALSE if any of the summaries are
online, %TRUE otherwise.
(impl_goOffline): Call ::set_online on all the summaries.  Pass
CORBA_OBJECT_NIL for the progress_listener as it doesn't really
get used anyways.
(impl_goOnline): Likewise.  Pass CORBA_OBJECT_NIL, not NULL, for
the progress CORBA_Object pointer.

svn path=/trunk/; revision=15547
2002-02-01 20:32:08 +00:00
82cb9e15be Use soup to transfer HTTP files and other bugs fixed
svn path=/trunk/; revision=15344
2002-01-16 17:56:22 +00:00
bdb095ab69 Merging patches from 1-0-branch
svn path=/trunk/; revision=15109
2001-12-17 12:20:19 +00:00
08fb7329cb Fixing the license text.
svn path=/trunk/; revision=14212
2001-10-27 16:59:46 +00:00
02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
0b5c3e9f8b NULL the handle after a failed open so the offline handler won't think
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
2001-10-26 23:15:19 +00:00
56b24983e2 Add copyright notices
svn path=/trunk/; revision=13157
2001-09-26 19:37:32 +00:00
0af9d4d986 Fix the show_full_path bug
Set up the functions for better online/offline reporting.

svn path=/trunk/; revision=12403
2001-08-22 22:31:53 +00:00
730ceece38 Handle the online/offline stuff
svn path=/trunk/; revision=10639
2001-06-30 22:59:34 +00:00