* subscribe-dialog.c (folder_info_subscribed,
subscribe_folder_info, unsubscribe_folder_info): Don't prepend "/"
to the folder's full_name. Deal with hierarchy in the
EvolutionStorage tree better.
(storage_tree_path): Helper function to build a storage path from
a CamelFolderInfo.
svn path=/trunk/; revision=6168
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (folder_etree_value_at): special case for
folders with NULL urls (which aren't selected/subscribeable).
(unsubscribe_folder_info): can't (un)subscribe from folders with
non-NULL urls.
(subscribe_folder_info): same.
svn path=/trunk/; revision=5879
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (FOLDER_ETABLE_SPEC): set expansion to 0.0,
minimum-width to 16, and resizable to false for the subscribed
column.
(folder_info_subscribed): new function so we can do the correct
path munging.
(subscribe_folder_info): only add the folder to the storage if
there wasn't an exception subscribing it.
(unsubscribe_folder_info): same, but unsubscribing.
(folder_etree_value_at): use folder_info_subscribed.
(folder_toggle_cb): same.
(unsubscribe_folder_foreach): same.
(subscribe_folder_foreach): same.
(subscribe_dialog_gui_init): set the bold column on the text cell,
and add the subscribed pixbuf.
svn path=/trunk/; revision=5869
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (STORE_ETABLE_SPEC): change cell type to
"string" since we're not including it in the extras.
svn path=/trunk/; revision=5862
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h, subscribe-dialog.c: Changed
these to use the proper form for the column element.
svn path=/trunk/; revision=5849
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h, subscribe-dialog.c: Updated
these to the new ETable style of specifications.
svn path=/trunk/; revision=5845
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (subscribe_dialog_gui_init): convert to the
new gal e-table stuff.
(html_size_req):
(html_new):
(put_html): #if 0 out the html functions since description stuff
isn't used and we don't want the warnings.
svn path=/trunk/; revision=5842
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (subscribe_dialog_gui_init): remove the html
description stuff for now.
svn path=/trunk/; revision=5838
2000-10-10 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (folder_toggle_cb): umm.. duh :) only
subscribe if it's not subscribed, and vice versa.
(subscribe_folder_foreach): make sure to call
e_tree_model_node_changed.
(unsubscribe_folder_foreach): make sure to call
e_tree_model_node_changed.
svn path=/trunk/; revision=5831
2000-10-10 Chris Toshok <toshok@helixcode.com>
* mail-ops.c (setup_scan_subfolders): add a ref to input->storage
here so that the ref/unref pattern more closely matches other
mail-ops. also, this keeps the storage from being freed when we
hit the unref in cleanup_scan_subfolders, which is important
because we maintain a reference to it in the storage_hash in
component-factory.c
* subscribe-dialog.h: add storage field.
* subscribe-dialog.c (subscribe_folder_info): new function,
subscribe to a folder given it's CamelFolderInfo, and add it to
the shell - we're generating a path from the name of the folder
which is bad.
(unsubscribe_folder_info): same (except we unsubscribe and remove
from the shell).
(storage_selected_cb): unref the currently selected storage.
(subscribe_dialog_destroy): unref the currently selected storage.
(subscribe_dialog_construct): sc->storage = NULL.
* component-factory.c (mail_lookup_storage): new function, to look
up a EvolutionStorage corresponding to a CamelService. we ref the
EvolutionStorage before passing it back.
(mail_add_new_storage): insert the storage into storages_hash if
result is EVOLUTION_STORAGE_OK.
* mail.h: add prototype for mail_lookup_storage.
svn path=/trunk/; revision=5830
2000-10-09 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c, subscribe-dialog.h: use our own etable to
display the stores, and get them from the mail-config api. put
#if 0'ed code in place to add/remove the folders from the shell
when they're subscribed/unsusbcribed. also, react to double
clicks in the folder etable by toggling subscription status.
svn path=/trunk/; revision=5809
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c, subscribe-dialog.h: add a
storage-set-view-listener, and add a little printf saying what
storage was selected.
svn path=/trunk/; revision=5688
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (subscribe_dialog_gui_init): get
Evolution::StorageSetView interface on our storage set view
control, and set "show_folders" to FALSE.
svn path=/trunk/; revision=5683
2000-10-02 Chris Toshok <toshok@helixcode.com>
* Makefile.am (INCLUDES): add -I$(top_srcdir)/widgets/misc
* subscribe-dialog.c (subscribe_dialog_gui_init): change the
window title to Manage Subscriptions, bold subscribed folders, and
add a title bar ala the evolution shell (but without the close
button).
svn path=/trunk/; revision=5682
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.h: add fields for the storage set
Bonobo_Control and Evolution_StorageSetView interfaces.
* subscribe-dialog.c (subscribe_dialog_gui_init): create the uih
as early as possible, and add the storage set view to the left
side of the hpaned.
svn path=/trunk/; revision=5681