2001-06-30 Federico Mena Quintero <federico@ximian.com>
* e-storage-set-view.c (popup_folder_menu): Pass the event time to
gtk_menu_popup() so that we can release the button and have the
menu stay up.
svn path=/trunk/; revision=10633
2001-06-06 Jason Leach <jleach@ximian.com>
(Fix bug #418: Save state of folder tree view)
* e-shell-view.c (e_shell_view_save_settings): Changed the char *
@prefix argument to an int @view_num.
(e_shell_view_load_settings): Ditto.
(get_local_prefix_for_view): New function that gets us a prefix
from a view_num.
* e-shell-view.c (e_shell_view_save_settings): Save the
expanded/collapsed information for each storage-set-view here.
(e_shell_view_load_settings): Load it here.
* e-storage-set-view.c (e_storage_set_view_construct): Make it so
new storage set views have their storages expanded by default, but
will respsect the expanded state information that we load into it.
(insert_storages): Minor change here too.
(new_folder_cb): Ditto.
svn path=/trunk/; revision=10135
* e-storage-set-view.c (new_storage_cb): Call
e_tree_node_set_expanded on the storage_set_view, not the
storage_set (which is not an ETree).
svn path=/trunk/; revision=10033
* e-storage-set-view.c (destroy): Don't free the hash keys in
priv->path_to_etree_node, because they're owned by the ETree now.
(e_storage_set_view_set_show_folders): Likewise.
svn path=/trunk/; revision=10012
2001-05-21 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (INCLUDES): Added ETSPECDIR. Added
e-storage-set-view.etspec to get installed.
* e-local-storage.c (remove_folder_directory): Commented out this
function since it is unused.
* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback), e-shell-view.c
(update_offline_toggle_status): Fixed warnings here by adding a
return; after the g_assert_not_reached();.
* e-shell-importer.c (start_import): Got rid of real_folderpath
here and just reused folderpath (It was causing uninitialized
variable warnings.)
* e-shell.c (impl_Shell_getLocalStorage): Use
bonobo_object_dup_ref here. It makes things simpler.
* e-storage-set-view.c: Removed ETREE_SPEC since it's no longer
needed.
(convert_corba_drag_action_set_to_gdk,
folder_context_menu_activate_cb, remove_cb,
folder_context_menu_remove_cb): Commented out these functions
since they're unused.
(new_storage_cb, new_folder_cb, insert_folders, insert_storages):
Don't bother using insert_id here since it no longer does
anything.
(new_storage_cb, removed_storage_cb, removed_folder_cb): Don't
free the data returned from e_tree_memory_node_remove.
(e_storage_set_view_construct): Set the destroy func here so that
memory will automatically get freed when nodes are destroyed.
g_strdup the root node string here. Use
e_tree_construct_from_spec_file here to use an external file.
(e_storage_set_view_set_show_folders): g_strdup the root node
string here.
* e-storage-set-view.etspec: New etspec file.
* evolution-shell-component-client.c
(free_ShellComponentListener_servant): Added a prototype here.
svn path=/trunk/; revision=9989
2001-05-12 Chris Toshok <toshok@ximian.com>
* e-storage-set-view.c (tree_drag_data_received): implement the
CORBA side of dragging.
(convert_gdk_drag_action_set_to_corba): rename
convert_gdk_drag_action_to_corba to this.
(convert_corba_drag_action_set_to_gdk): rename
convert_corba_drag_action_to_gdk to this.
(convert_gdk_drag_action_to_corba): new function that doesn't
build a bitmask, useful for the Action types, instead of
ActionSet.
(convert_corba_drag_action_to_gdk): same.
svn path=/trunk/; revision=9780
2001-05-11 Chris Toshok <toshok@ximian.com>
* evolution-shell-component.h
(EVOLUTION_SHELL_COMPONENT_POPUP_PLACEHOLDER): add this define for
the xml path to use when adding menu items to the folder popup.
* e-storage-set-view.c
(populate_folder_context_menu_with_common_items): add (#ifdef
DEBUG_XML) a menu item to dump the bonobo xml.
(popup_folder_menu): pass the BonoboUIContainer to the
populate_folder_context_menu CORBA call, instead of the component.
Also, reorder things a bit so the component doesn't get an error
when setting xml the first time.
svn path=/trunk/; revision=9777
2001-05-11 Chris Toshok <toshok@ximian.com>
* evolution-storage-set-view-factory.c
(evolution_storage_set_view_factory_new_view): the only
problematic area - pass NULL for now in as the BonoboUIContainer.
how do we pass this container to the control?
* e-storage-set-view.c (folder_context_menu_activate): un-#if 0
this function.
(populate_folder_context_menu_with_common_items): build our popup
using the new xml bonobo stuffs.
(popup_folder_menu): convert to using the new xml bonobo stuffs.
(right_click): only do the popup menu if we have a
BonoboUIContainer.
(e_storage_set_view_new): add BonoboUIContainer* arg.
(e_storage_set_view_construct): same.
* e-storage-set-view.h: add BonoboUIContainer* args to
e_storage_set_view_new and e_storage_set_view_construct.
* e-shell-folder-creation-dialog.c (add_storage_set_view): pass
NULL for the BonoboUIContainer, since we shouldn't (?) have a
popup in this dialog.
* e-shell-folder-selection-dialog.c
(e_shell_folder_selection_dialog_construct): pass NULL for the
BonoboUIContainer, since we shouldn't (?) have a popup in this
dialog.
* e-storage-set.h: add BonoboUIContainer* arg to
e_storage_set_new_view.
* e-storage-set.c (e_storage_set_new_view): add arg, and track
change to e_storage_set_view_new.
* e-shell-view.h: add prototype for
e_shell_view_get_bonobo_ui_container.
* e-shell-view.c (setup_storage_set_subwindow): track change to
e_storage_set_view_new.
(e_shell_view_construct): the BonoboUIContainer is now part of our
private structure.
(e_shell_view_get_bonobo_ui_container): new function.
svn path=/trunk/; revision=9756
2001-05-04 Chris Toshok <toshok@ximian.com>
* evolution-shell-component-dnd.c
(impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleMotion):
take a physical_uri and pass it to the callback.
(impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleDrop):
same.
* evolution-shell-component-dnd.h: add physical_uri args to the
destination folder HandleMotion and HandleDrop types.
* Evolution-ShellComponentDnd.idl: add "in string physical_uri" to
DestinationFolder::handleMotion and DestinationFolder::handleDrop.
* e-storage-set-view.c (tree_drag_motion): pass the physical uri
of the folder to handleMotion.
svn path=/trunk/; revision=9678
2001-04-08 Chris Toshok <toshok@ximian.com>
* e-storage-set-view.c (tree_drag_motion): fix type. we want the
destination interface, not source.
svn path=/trunk/; revision=9204
2001-03-28 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (storage_sort_callback,
folder_sort_callback): Use strcasecmp instead of strcmp.
svn path=/trunk/; revision=9002
of separate copy/move (as in the IDL). Actually implement the
`xfer()' operation for the case when source and destination are in the
same storage. Fix the `EStorageSet' API by having a special
`EStorageSetResultCallback' callback type for it (instead of using
`EStorageResultCallback', which would never work).
Also, removed some unused variables in `e-storage-set-view.c'.
svn path=/trunk/; revision=8895
the hooks to actually make the physical operation happen are missing.
Also, fix a stupid cut & paste error in Chris' commit (and re-indent
the code a bit to make it match the surrounding style).
svn path=/trunk/; revision=8890
2001-03-22 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (etree_get_save_id): Changed get_save_id to
just return a strdup of the path.
(new_storage_cb, new_folder_cb, insert_folders, insert_storages):
Call e_tree_memory_sort_node.
svn path=/trunk/; revision=8883
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* configure.in: Bumped gal requirement to 0.5.99.8.
From addressbook/ChangeLog:
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* Merged branch:
2001-03-14 Christopher James Lahey <clahey@ximian.com>
* gui/widgets/e-minicard-view.c: Call
e_selection_model_simple_insert_rows and
e_selection_model_simple_delete_rows instead of
e_selection_model_simple_insert_row and
e_selection_model_simple_delete_row.
End of branch
From mail/ChangeLog:
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* Merged e-tree-rework-branch:
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* message-list.c: Added has_save_id and get_save_id methods.
* subscribe-dialog.c: Added arguments for
e_tree_memory_callbacks_new of get_save_id and has_save_id to
NULL.
2001-03-16 Christopher James Lahey <clahey@ximian.com>
* message-list.c: Added a call to
e_tree_memory_set_expanded_default to TRUE. Removed all calls to
set_expanded on nodes while the tree is frozen since this fails
miserably now.
2001-03-13 Christopher James Lahey <clahey@ximian.com>
* message-list.c (message_list_get_layout): Turned off draw-grid.
2001-03-09 Christopher James Lahey <clahey@ximian.com>
* folder-browser-factory.c, folder-browser.c, message-list.c,
message-list.h, subscribe-dialog.c, subscribe-dialog.h,
mail-callbacks.c: Converted these all to use ETree instead of
ETable.
End of branch
From shell/ChangeLog:
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* Merged e-tree-rework-branch:
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (etree_get_save_id): Made "root" detection
deal properly with removed nodes.
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-shell-view.c (e_shell_view_save_settings): Added some unused
code to implement saving of the expanded state.
* e-storage-set-view.c: Added has_save_id and get_save_id methods.
2001-03-13 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (ETREE_SPEC): Set draw-grid here to false.
2001-03-09 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c, e-storage-set-view.h: Chaned this to use
ETree instead of ETable.
End of branch
svn path=/trunk/; revision=8839
2001-03-05 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c: Override cursor_activated signal instead
of cursor_changed signal.
svn path=/trunk/; revision=8554
some reason, the `gdk_pixbuf_scale()' function seems to give me a
modified copy of the image even for a 1.0 scaling factor.)
svn path=/trunk/; revision=7848
* evolution-storage.c (evolution_storage_new_folder): Make this
take "highlighted" as well.
* e-local-storage.c (new_folder):
* e-corba-storage.c (impl_StorageListener_new_folder): set
highlighted on the new folder.
* e-storage-set-view.c (updated_folder_cb): Remove an unused
variable.
svn path=/trunk/; revision=6338
* Evolution-Storage.idl: Add "highligted" field to Folder. Add
update_folder method to StorageListener to change display_name and
highlight status.
* e-folder.c: Add "highlighted" to EFolder to match the
Evolution::Folder type.
(e_folder_get_highlighted, e_folder_set_highlighted): Added
* evolution-storage-listener.c
(impl_Evolution_StorageListener_update_folder, etc):
* e-storage.c (e_storage_updated_folder, etc):
* e-corba-storage.c (impl_StorageListener_update_folder, etc):
Implement update_folder.
* e-storage-set.c (storage_updated_folder_cb, etc): Re-emit
updated_folder signals received from EStorage.
* e-storage-set-view.c (various): Add another model column to the
ETable and set it up as a bold_column based on
e_folder_get_highligted.
(updated_folder_cb, etc): Listen to EStorageSet update_folder
signal and emit ETree node_changed signals.
* evolution-storage.c (evolution_storage_update_folder): Client
function to update a folder's display_name and highlighted status.
* Evolution-LocalStorage.idl:
* evolution-local-storage.c:
* e-local-storage.c: Change set_display_name to update_folder to
match Evolution::StorageListener
svn path=/trunk/; revision=6328