Commit Graph

55 Commits

Author SHA1 Message Date
53d468e614 Fixes #43101
2003-05-15  JP Rosevear  <jpr@ximian.com>

	Fixes #43101

	* e-summary-mail.c (e_summary_folder_unregister_storage): unref
	the storage after use not before

svn path=/trunk/; revision=21206
2003-05-16 14:32:25 +00:00
bd1f703edb fix up protos
2003-05-14  JP Rosevear  <jpr@ximian.com>

	* e-summary.h: fix up protos

	* e-summary.c (e_summary_get_control): accessor
	(e_summary_set_control): ditto
	(retrieve_shell_view_interface): util to get the shell view
	(e_summary_change_current_view): use it
	(e_summary_set_message): ditto
	(e_summary_unset_message): ditto

	* e-summary-mail.h: add proto

	* e-summary-mail.c (e_summary_mail_get_info): use the objref of
	the listener
	(e_summary_folder_unregister_storage): clean up a registered
	storage
	(e_summary_folder_register_storages): store the listener directly
	(folder_info_pb_changed): unref the listener once we are notified
	(lazy_register_storages): release and unref the property bag,
	event and listener
	(e_summary_folder_init_folder_store): track the listener
	(e_summary_folder_clear_folder_store): cleanup the folder store

	* e-summary-factory.c (control_activate_cb): we don't get the
	shell view here any more
	(e_summary_factory_new_control): don't pass in the shell, set the
	control on the summary

	* component-factory.c (owner_unset_cb): clear the folder store on
	destruction

svn path=/trunk/; revision=21177
2003-05-14 18:40:01 +00:00
c6ed3eedc8 Likewise.
* 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
2003-03-27 21:37:07 +00:00
8cca88b4f6 New member physical_uri in struct ESummaryMailFolder. (new_folder_cb): Set
* e-summary-mail.c: New member physical_uri in struct
ESummaryMailFolder.
(new_folder_cb): Set it.
(remove_folder_cb): Free it.
(make_pretty_foldername): Rewritten to honour the display_name.
[#7153]

* e-summary.c (destroy): Only remove the source with ID
tomorrow_timeout_id if the ID is nonzero.

svn path=/trunk/; revision=20521
2003-03-26 19:30:54 +00:00
2a3599cb52 glist->gslist for display_folders list (mail_change_notify): "
2003-01-10  Not Zed  <NotZed@Ximian.com>

        * e-summary-mail.c (new_folder_cb): glist->gslist for
        display_folders list
        (mail_change_notify): "
        (e_summary_mail_reconfigure): ", and also traverse the list
        forwards, since we can't go backwards since its now an slist.

        * e-summary-preferences.c (e_summary_preferences_restore): append
        new folder entries to the folders list.
        (config_control_apply_cb): display_folders is a list of folders,
        not a list of strings, treat accordingly.

svn path=/trunk/; revision=19389
2003-01-10 03:15:01 +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
f36f2d1fcf #include <string.h>.
* 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
2002-11-06 00:42:52 +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
15a08c668a (e_summary_mail_generate_html): Generate HTML
for the folder even if the unread count is zero.

svn path=/trunk/; revision=18240
2002-09-26 20:27:28 +00:00
ec11be672d Add member physical_uri to ESummaryMailFolder.
Removed member name.  Renamed FolderStore.folders to
FolderStore.path_to_folder and added
FolderStore.physical_uri_to_folder.
(new_folder_cb): Set physical_uri member.
(update_folder_cb): Likewise.
(new_folder_cb): Pass physical_uri to
e_summary_mail_idle_get_info().  Also g_strdup() it since that's
what it expects.
(remove_folder_cb): Free physical_uri.
(mail_change_notify): Compare against folder->physical_uri, not
->path.
(e_summary_mail_reconfigure): Pass folder->physical_uri to
e_summary_mail_get_info, not ->path.
(e_summary_mail_uri_to_name): Removed.
(e_summary_folder_init_folder_store): Initialize path_to_folder
and physical_uri_to_folder.
(new_folder_cb): Add the folder to the physical_uri_to_folder hash
too.
(mail_change_notify): Use physical_uri_to_folder to figure out the
folder from the uri.
(e_summary_mail_reconfigure): Here as well.

svn path=/trunk/; revision=18239
2002-09-26 20:22:45 +00:00
a0b85efae0 Update for Mailer.idl rename
* Makefile.am (IDLS, MAIL_GENERATED): Update for Mailer.idl rename

	* e-summary.c, e-summary-mail.c: Likewise

svn path=/trunk/; revision=18061
2002-09-13 15:06:11 +00:00
a2726b7dc3 Only get folder info if this is a folder we're displaying.
* e-summary-mail.c (update_folder_cb): Only get folder info if
	this is a folder we're displaying.

svn path=/trunk/; revision=17746
2002-08-08 19:40:51 +00:00
5b8b97806b Don't use the folder's path as the physical URI; use CORBA Magic (TM) to
2002-07-26  Peter Williams  <peterw@ximian.com>

	* e-summary-mail.c (update_folder_cb): Don't use the folder's path
	as the physical URI; use CORBA Magic (TM) to figure it out.

svn path=/trunk/; revision=17630
2002-07-29 14:39:59 +00:00
c2c672c537 Add this, to call e_summary_mail_get_info from an idle handler.
* e-summary-mail.c (e_summary_mail_idle_get_info): Add this, to
	call e_summary_mail_get_info from an idle handler.
	(new_folder_cb, update_folder_cb): Use idle_get_info rather than
	making another corba call from inside the corba handler. (Fixes a
	three-way deadlock between mail, summary, and exchange.)

svn path=/trunk/; revision=17322
2002-06-28 17:06:38 +00:00
9a210db24f Fix bugs, make the folder list be a storage set view and add a delete url button
svn path=/trunk/; revision=17290
2002-06-26 15:42:01 +00:00
314be45b2d Use the uri stored in the ESummaryMailFolder object here.
2002-05-14  Christopher James Lahey  <clahey@ximian.com>

	* e-summary-mail.c (folder_gen_html): Use the uri stored in the
	ESummaryMailFolder object here.
	(e_summary_mail_generate_html): Only show email folders if they
	have > 0 unread messages.
	(new_folder_cb): Save the evolutionUri here.

svn path=/trunk/; revision=16787
2002-05-14 19:15:11 +00:00
69be118732 Make the mail folders work okay.
svn path=/trunk/; revision=16724
2002-05-08 14:41:19 +00:00
06f657a957 Allow IMAP folders and VFolders and make the mail summaries show and make the etables almost work perfectly
svn path=/trunk/; revision=16556
2002-04-22 16:18:33 +00:00
91b1b55714 Make the preferences seperate from the views
svn path=/trunk/; revision=16338
2002-04-04 12:10:37 +00:00
3b9ea2d060 [Some initial broken support for building components as shlib. Mostly
just a playground for testing the idea.]

* Makefile.am: Added support for the ENABLE_SHLIB_COMPONENTS
conditional.

* GNOME_Evolution_Summary.oaf.in.in: New.

* e-summary-mail.c (update_folder_cb): Protect against
summary->mail being NULL.

* component-factory.c: Add a shlib factory.
(create_component): Get a @factory and @data.
(component_factory_init): Actually make it use a
BonoboGenericFactory again.

* configure.in: Add argument `--enable-shlib-components'.  New
substitutions OAF_SHLIB_LOCATION, OAF_SHLIB_PREFIX,
OAF_SHLIB_SUFFIX.

svn path=/trunk/; revision=16299
2002-03-31 01:17:33 +00:00
84e13e5584 Move the preferences from a per-view setting to a global setting
svn path=/trunk/; revision=16205
2002-03-19 13:25:33 +00:00
bc73d24d04 VFolders in the summary
svn path=/trunk/; revision=16190
2002-03-18 15:47:04 +00:00
e1268e37a4 The new selector widget
svn path=/trunk/; revision=15565
2002-02-04 19:52:43 +00:00
d435a965c2 Fix the mail order stuff
svn path=/trunk/; revision=15449
2002-01-24 14:21:20 +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
9be7cad2cd Correct fix for 12236. Stops the crashing and leaves the summary in a usable state.
svn path=/trunk/; revision=13982
2001-10-24 11:52:28 +00:00
1fe301e0a6 Null some freed memory
svn path=/trunk/; revision=13799
2001-10-19 18:23:28 +00:00
1ec9e205a1 Minor changes in the hope that bug is fixed :/
svn path=/trunk/; revision=13701
2001-10-16 20:10:43 +00:00
f6dce20df1 Update the signature to match the new signal.
* e-summary-mail.c (update_folder_cb): Update the signature to
	match the new signal.

svn path=/trunk/; revision=13591
2001-10-11 19:01:06 +00:00
56b24983e2 Add copyright notices
svn path=/trunk/; revision=13157
2001-09-26 19:37:32 +00:00
86061f37b4 Display a bell icon if there's an alarm set
svn path=/trunk/; revision=12995
2001-09-19 22:30:41 +00:00
00e47f55dd Spewage removal Only open folders when they are needed.
Spewage removal
Only open folders when they are needed.

svn path=/trunk/; revision=12990
2001-09-19 21:48:50 +00:00
b8fc17e8f9 Keep the mail folders in the correct order
svn path=/trunk/; revision=12963
2001-09-19 00:11:58 +00:00
00d81264c7 Do appends instead of prepends in places.
Don't print a (null).

svn path=/trunk/; revision=12941
2001-09-18 18:41:21 +00:00
1a6a89e265 Only update the display when we receive a notify about a mail folder we are displaying
svn path=/trunk/; revision=12909
2001-09-17 20:47:33 +00:00
fb1c9fcb9b Purification.
* 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
2001-09-10 22:48:52 +00:00
d671e29102 Studlycapsize all the IDs that are not. Likewise. Updated accordingly.
* 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
2001-08-28 00:18:34 +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
99a9e24304 Disconnect our callbacks when we are freeing the ESummaryMail. Fixes
2001-08-13  Jason Leach  <jleach@ximian.com>

	* e-summary-mail.c (e_summary_mail_free): Disconnect our callbacks
	when we are freeing the ESummaryMail.  Fixes #6712.

svn path=/trunk/; revision=11941
2001-08-13 14:45:38 +00:00
3a3d80fa14 Callback for the EvolutionStorageListener::update_folder signal, so we can
2001-08-03  Jason Leach  <jleach@ximian.com>

	* e-summary-mail.c (update_folder_cb): Callback for the
	EvolutionStorageListener::update_folder signal, so we can update
	mail summaries when they change.  Bug #4686.

svn path=/trunk/; revision=11635
2001-08-03 23:09:53 +00:00
9a96cbd58e Install and use the new My Evolution icons from Jakub (they look really
awesome Jakub, nice work).

svn path=/trunk/; revision=11596
2001-08-02 19:44:23 +00:00
05ec4697c8 Make the storage registar(?) generic
svn path=/trunk/; revision=11315
2001-07-23 19:14:02 +00:00
4645eac850 Revert last changes, URIs are now back to original in shell.
2001-07-20  Jason Leach  <jleach@ximian.com>

	* e-summary-tasks.c: Revert last changes, URIs are now back to
	original in shell.

svn path=/trunk/; revision=11275
2001-07-20 21:19:51 +00:00
65a899cbd6 Update the evolution:/local/ URI's to evolution:/Local Folders/ to go
2001-07-19  Jason Leach  <jleach@ximian.com>

	* e-summary-tasks.c: Update the evolution:/local/ URI's to
	evolution:/Local Folders/ to go along with todays shell changes.

	* e-summary-mail.c: Ditto.

	* e-summary-calendar.c: Ditto.

svn path=/trunk/; revision=11252
2001-07-20 03:39:10 +00:00
13a1d6f61b Fix the mail folder links
svn path=/trunk/; revision=11231
2001-07-19 19:54:58 +00:00
65fd3e3e30 Secure e_summary_mail_generate_html
svn path=/trunk/; revision=11014
2001-07-11 20:30:50 +00:00
046bcbb23e Fix the memory corruption issue
svn path=/trunk/; revision=11013
2001-07-11 20:26:52 +00:00
76d4c1fa56 Free the data stop all the transfers when the summary is destroyed.
svn path=/trunk/; revision=11010
2001-07-11 19:08:53 +00:00