brokenness]
(set_dialog_size): New.
(impl_realize): Override for GtkWidget::realize; invoke
set_dialog_size() to set a minimum size.
(class_init): Install.
svn path=/trunk/; revision=18126
(resort): New.
(sort_idle_callback): Use it.
(insert_storages): Use resort() instead of queue_resort() so we
sort immediately.
svn path=/trunk/; revision=18116
2002-09-18 Not Zed <NotZed@Ximian.com>
* evolution-wizard.c (impl_GNOME_Evolution_Wizard_notifyAction):
Allow 'back' to run if we're on the finish page. For #29293.
svn path=/trunk/; revision=18106
* e-storage-set-view.c: New member sort_idle_id in
EStorageSetViewPrivate.
(init): Init to zero.
(impl_destroy): Remove the idle source if not zero.
(queue_resort): New.
(sort_idle_callback): Idle function to sort.
(setup_folder_changed_callback): New.
(new_folder_cb): Call it on the new folder so we get the callback
for new folders too.
(popup_folder_menu): Ref the folder before popping up the menu,
unref it after popping it down [the folder might be unreffed in
gnome_popup_menu_do_popup_modal() because of a folder action].
(new_storage_cb): Just queue_resort() instead of sorting.
(new_folder_cb): Likewise.
(insert_folders): Likewise.
(insert_storages): Likewise.
(folder_changed_cb): Queue a resort here too.
* e-folder.c (class_init): Set up "name_changed" signal.
(e_folder_set_name): Emit "name_changed".
* e-folder.h: New signal "name_changed".
svn path=/trunk/; revision=18093
2002-09-17 Kjartan Maraas <kmaraas@gnome.org>
* e-folder-list.c (create_display_string): Mark a string for
translation.
svn path=/trunk/; revision=18086
2002-09-05 Mike Kestner <mkestner@ximian.com>
* Makefile.am : no longer distribute the etstate files.
* e-shell-folder-selection-dialog.c : enable_search on the view.
* e-storage-set-view.c : add search_enabled flag handling.
(e_storage_set_view_set_show_checkboxes): manipulate the existing state
instead of loading a state file from disk.
(e_storage_set_view_enable_search): new. set a column in the sort_info
on the etree to allow keystroke jumping in the etree.
svn path=/trunk/; revision=18002
2002-09-05 Anna Marie Dirks <anna@ximian.com>
* GNOME_Evolution_Shell.oaf.in : Changed the description
of the folders page in the settings dialog to be more specific.
svn path=/trunk/; revision=17991
current_folder_type is NULL, just return NULL instead of passing
it to e_folder_type_registry_get_handler_for_type() [and generate
a warning]. [#21122]
svn path=/trunk/; revision=17974
* glade/e-shell-shared-folder-picker-dialog.glade: Remove the
"blah blah" text for now and change "Server" to "Account".
svn path=/trunk/; revision=17973
* e-shell.c (create_view): Pass TRUE as @queue to
e_shell_view_display_uri().
* e-shell-view-menu.c (command_activate_view): Pass TRUE as @queue
to e_shell_view_display_uri().
(goto_folder_dialog_folder_selected_cb): Likewise.
* e-shell-shared-folder-picker-dialog.c
(shared_folder_discovery_listener_callback): Pass TRUE as @queue
to e_shell_view_display_uri().
* e-shell-view.c
(display_uri): New arg @queue. If true, it allows the
delayed_selection mechanism to happen transparently (returning
TRUE, while before it used to return FALSE). Otherwise, refuse to
queue the URI and return FALSE.
(e_shell_view_display_uri): New arg @queue; pass it to
display_uri().
(handle_current_folder_removed): Pass TRUE as @queue to
e_shell_view_display_uri().
(set_folder_timeout): Likewise.
(switch_on_folder_tree_click): Likewise.
(activate_shortcut_cb): Likewise.
(corba_interface_change_current_view_cb): Likewise.
(socket_destroy_cb): Likewise.
(socket_destroy_cb): Likewise.
(e_shell_view_load_settings): Here, try displaying the old URI
with @queue set to FALSE; if this fails, display the default URI
and then invoke display again using @queue = TRUE so it gets
queued up. This should fix#27721.
svn path=/trunk/; revision=17972
* main.c (idle_cb): Pass FALSE as @restore_all_views to
e_shell_restore_from_settings() so we only restore the first view.
* e-shell.c (e_shell_restore_from_settings): New arg
@restore_all_views.
svn path=/trunk/; revision=17967
* gui/component/addressbook-component.c (create_component): Pass
NULL as @unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* gui/component-factory.c (create_object): Pass NULL as
@unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* mail-account-gui.c (mail_account_gui_save): Remove unused
variable.
* component-factory.c (unpopulate_folder_context_menu): New.
(create_component): Pass it to evolution_shell_component_new().
* component-factory.c (create_component): Pass NULL as
@unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* e-storage-set-view.c (popup_folder_menu): Remove the context
menu items using
evolution_shell_component_client_unpopulate_folder_context_menu()
instead of doing it ourself, since BonoboUI sucks.
* evolution-shell-component-client.c
(evolution_shell_component_client_unpopulate_folder_context_menu):
New.
* evolution-test-component.c (register_component): Pass NULL as
@unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* evolution-shell-component.c: New member
unpopulate_folder_context_menu_fn in
EvolutionShellComponentPrivate. New member uic in
EvolutionShellComponentPrivate.
(init): Init new members to NULL.
(destroy): bonobo_object_unref() priv->uic if not NULL.
(evolution_shell_component_new): New arg
@unpopulate_folder_context_menu_fn.
(evolution_shell_component_construct): Likewise.
(impl_populateFolderContextMenu): Set priv->uic to the newly
created UIComponent.
(impl_unpopulateFolderContextMenu): New, implementation for the
::unpopulateFolderContextMenu CORBA method.
(class_init): Install.
* Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New
method.
(AlreadyPopulated): New exception.
(populateFolderContextMenu): Can raise it.
(NotPopulated): New exception.
svn path=/trunk/; revision=17963
* e-storage-set-view.c (popup_folder_menu): Create an Items
placeholder under ComponentPlaceholder, and then
bonobo_ui_component_rm() it after we are done with the menu. This
-should- fix#29782, but it doesn't. I am not sure why.
* evolution-shell-component.h
(EVOLUTION_SHELL_COMPONENT_POPUP_PLACEHOLDER): Append a "/Items"
part.
svn path=/trunk/; revision=17952
* e-shell.c (setup_components): Pass a selection_order to
oaf_query so we get the components back in a consistent order.
Hack fix for #28490 for 1.2 by ensuring that Connector gets
started before evolution-mail.
(get_icon_path_for_component_info): Rename the oaf icon name
property to use underscores to match the launch order property
(which needs to use underscores because dashes are interpreted as
subtraction in the selection_order context).
svn path=/trunk/; revision=17904
*custom_icon_name_return is at least set to NULL on return [it
used to leave it uninitialized if the URI was not prefixed with
E_SHELL_URI_PREFIX]. Also use e_shell_parse_uri() to parse the
URI so we handle the default shortcuts properly, too.
svn path=/trunk/; revision=17879
* e-shell-shared-folder-picker-dialog.c (show_dialog): Get the
"addresses" property of the select names control rather than
"text", so we get the email address too. #28953
svn path=/trunk/; revision=17804
* e-folder-type-registry.c
(e_folder_type_registry_type_registered,
e_folder_type_registry_unregister_type): Fix the names of these
functions. (They previously used "register" instead of
"registry".)
* e-component-registry.c (register_type): Update for renaming
* e-local-storage.c (load_folder): Likewise
svn path=/trunk/; revision=17799
* evolution-folder-selector-button.c
(evolution_folder_selector_button_set_uri): If the selected URI is
of an invalid type, don't accept it.
(evolution_folder_selector_button_get_folder): Returns the
selected folder.
(various): updates to support get_folder, and to simplify.
svn path=/trunk/; revision=17794
* e-shell-shared-folder-picker-dialog.c (create_progress_dialog):
Remove both timeouts when the dialog is destroyed, not just one of
them.
(shared_folder_discovery_listener_callback): Don't try to access
fields of discovery_data after destroying it. Interpret the result
argument correctly, and put up an error dialog (using
e_corba_storage_corba_result_to_storage_result and
e_storage_result_to_string) if something went wrong.
* e-corba-storage.c
(e_corba_storage_corba_result_to_storage_result): convert a
GNOME_Evolution_Storage_Result to an EStorageResult.
(async_folder_cb): Use that.
svn path=/trunk/; revision=17750
* e-storage-set-view.c (folder_property_item_verb_callback): Don't
include the storage name in the path passed to
e_corba_storage_show_folder_properties, for consistency with the
other EStorage methods.
svn path=/trunk/; revision=17716
* evolution-test-component.c
(storage_show_folder_properties_callback): New callback for the
show_folder_properties signal.
(setup_custom_storage): Add two property items, and connect the
callback to the signal.
* e-storage-set-view.c: Renamed private member container into
ui_container; new member ui_component.
(init): Initialize ui_component to NULL.
(impl_destroy): Unref if not NULL.
(e_storage_set_view_construct): If @ui_container is not NULL,
weakref it and create a new ui_component that uses it as its
container.
(ui_container_destroy_notify): New, weakref destroy callback for
priv->ui_container.
(remove_property_items): New helper function.
(setup_folder_properties_items_if_corba_storage_clicked): New
helper function.
(folder_property_item_verb_callback): New callback for the verbs
associated to the folder property items.
(popup_folder_menu): Set up the per-storage folder property items
using setup_folder_properties_items_if_corba_storage_clicked() and
remove them with remove_property_items() after the menu has been
popped down. Don't invoke populate_folder_context_menu if there
is no handler for this node [this avoids a spurious warning].
* e-corba-storage.c (e_corba_storage_show_folder_properties): New.
(e_corba_storage_get_folder_property_items): New.
(e_corba_storage_free_property_items_list): New.
* evolution-storage.c: New private member folder_property_items.
(init): Init to NULL.
(destroy): Free.
(impl_showFolderProperties): New, implementation for the
Storage::showFolderProperties CORBA method.
(class_init): Set up the "show_folder_properties" signal here.
(impl_Storage__get_propertyItems): New, getter for the
Storage::propertyItems property.
(corba_class_init): Install the new methods.
(evolution_storage_add_property_item): New function to add
property items to the storage.
* evolution-storage.h: New signal show_folder_properties.
* e-storage-set.c (e_storage_set_create_new_view): Renamed from
e_storage_set_new_view().
* Evolution-Storage.idl: Added attribute folderPropertyItems and
method ::showFolderProperties.
svn path=/trunk/; revision=17714
Don't sort the menu_items here.
(create_menu_xml): Instead, sort here, and only sort the
non-default section of the menu.
(get_default_action_for_view): Just get the first item that is
default; since we don't sort anymore, this works.
(find_menu_item_for_verb): Removed since it is not used anymore.
svn path=/trunk/; revision=17659
* gui/component/addressbook-component.c (add_creatable_item): Pass
"contacts" as the @folder_type to
evolution_shell_component_add_user_creatable_item().
* gui/component-factory.c (add_creatable_item): New arg
@folder_type, pass it to
evolution_shell_component_add_user_creatable_item().
(create_object): Set the right folder types for the various
user-creatable items.
* component-factory.c (create_component): Pass "mail" as
@folder_type to
evolution_shell_component_add_user_creatable_item().
* evolution-test-component.c (register_component): Pass NULL for
@folder_type to
evolution_shell_component_add_user_creatable_item().
* e-shell-user-creatable-items-handler.c: New member folder_type
in struct MenuItem.
(ensure_menu_items): Initialize ->folder_type.
(item_is_default): New helper function.
(create_menu_xml): New arg @folder_type. Put the items on the top
using item_is_default().
(shell_view_view_changed_callback): Pass the folder type to
create_menu_xml().
* evolution-shell-component.c: New member folder_type in
UserCreatableItemType.
(user_creatable_item_type_new): New arg @folder_type.
(user_creatable_item_type_free): Free ->folder_type.
(evolution_shell_component_add_user_creatable_item): New arg
@folder_type.
(impl__get_userCreatableItemTypes): Set ->folderType in the
returned CORBA structs.
* Evolution-ShellComponent.idl: New member folderType in struct
UserCreatableItemType.
* e-shell-user-creatable-items-handler.c: New member component_id
in struct MenuItem. Removed member menu_xml from
EShellUserCreatableItemsHandlerPrivate.
(init): No need to initialize menu_xml here anymore.
(impl_destroy): ...And no need to free here, either.
(setup_menu_xml): New, derived from ensure_menu_xml(). This
orders the menu so that the items for the current component go at
the top.
(create_menu_xml): Removed.
(e_shell_user_creatable_items_handler_attach_menus): Set up
properly for the current component ID, using setup_menu_xml().
svn path=/trunk/; revision=17658
2002-07-29 Jeffrey Stedfast <fejj@ximian.com>
* evolution-folder-selector-button.c
(evolution_folder_selector_button_set_uri): New function to set
the uri programatically on a EvolutionFolderSelectorButton dingus.
svn path=/trunk/; revision=17633
* e-shell-view-menu.c (command_new_shortcut): Capitalize the title
of the dialog for consistency.
* e-shell-folder-creation-dialog.c (setup_dialog): Don't prepend
the window's title with "Evolution -" since we don't do that
anywhere else. Also capitalize properly.
svn path=/trunk/; revision=17616
of the folders fails to load; otherwise, if the user has played
with ~/evolution, he might end up not seeing any folders at all.
svn path=/trunk/; revision=17606
from `dbl_click_cb'.
(check_folder_type): Don't pop up an error dialog anymore.
(check_folder_type_valid): Renamed from check_folder_type().
(folder_selected_cb): Make the OK button sensitive only if the
type of the selected folder is in the list of valid types;
otherwise, make it insensitive. [#848]
svn path=/trunk/; revision=17513
2002-07-18 Rodrigo Moya <rodrigo@ximian.com>
* e-shell-importer.c (start_import): removed check for local folders,
so that we can import into non-local ones.
svn path=/trunk/; revision=17512