2005-01-09 JP Rosevear <jpr@novell.com>
* e-shell.c (impl_Shell_handleURI): open a new window if we get a
component id type url
* Evolution-Shell.idl: add ComponentNotFound exception
svn path=/trunk/; revision=28302
2004-10-25 Not Zed <NotZed@Ximian.com>
* main.c (main): register event hook.
* e-shell.c (offline_procedure_finished_cb, e_shell_go_online):
emit new state changed event.
* main.c (main): register the menu hook.
(): only define DEVELOPMENT if not already.
* e-shell-window.c (init): setup menu manager.
(e_shell_window_new): activate menu manager.
(update_offline_toggle_status): update the menu manager when the
offline state changes (currently only state which requires it)
* es-menu.[ch]: Shell plugin menu manager.
svn path=/trunk/; revision=27712
2004-08-27 Not Zed <NotZed@Ximian.com>
** See bug #62856 (workaround only)
* e-shell.c (impl_Shell_setLineStatus, e_shell_construct): set the
online state on e_passwords.
svn path=/trunk/; revision=27075
* apps_evolution_shell.schemas.in.in: added last_version item.
* shell-errors.xml: added upgrade-remove-1-4 and
upgrade-remove-1-4-confirm dialogues.
* e-shell.c (remove_dir): utility to recursively delete a tree of
files and folders.
(e_shell_attempt_upgrade): keep track of the last upgraded
version, if != current version, and < 1.5, and it exists, offer to
remove ~/evolution. Confirm the offer before actually doing it.
* e-shell-window-commands.c: include gnome-about.
(command_help_faq): fix comment structure
* e-shell.c (attempt_upgrade): moved most of this into
e_shell_attempt_upgrade.
(e_shell_attempt_upgrade): moved most of this into
attempt_upgrade, removed rev args. It makes sense, really!
(e_shell_construct): call e_shell_attempt_upgrade instead.
svn path=/trunk/; revision=26788
2004-07-22 Not Zed <NotZed@Ximian.com>
* e-shell.c (create_window): merged this into
e_shell_create_window, all it was doing was adding a stack frame.
(e_shell_create_window): setup the e error default window.
svn path=/trunk/; revision=26729
2004-06-24 Not Zed <NotZed@Ximian.com>
** See bug #57367.
* e-shell-window.c (e_shell_window_new): fix gconf client leak and
clean up some logic.
* e-shell.c (e_shell_construct): dont activate the components
individually, component registry does that implictly.
* e-component-registry.c (init): dont call query_components here.
(query_components): setup a run-once guard. before adding a
component info to the list, make sure we can activate it.
(component_info_new): take the interface as a construct argument
now.
(e_component_registry_peek_list): perform the component list query
if we haven't already.
(e_component_registry_peek_info): same.
(e_component_registry_activate): just always return
the reffed component, it isn't added unless it was already activated.
svn path=/trunk/; revision=26490
2004-05-27 Not Zed <NotZed@Ximian.com>
** See #58827.
* e-shell-window.c (switch_view): api change
* e-shell.c (impl_Shell_handleURI): Fixed for api change.
(impl_Shell_handleURI): check the component alias for an alternate
uri schema path. 'quick hack' for activating components from
command line. This may, or may not, continue to function.
* e-component-registry.c (e_component_registry_peek_info): added
an id for search type.
(e_component_registry_peek_info_for_uri_schema): ^ makes this
redundant, removed.
(e_component_registry_activate): fixed for api change.
svn path=/trunk/; revision=26137
2004-05-26 Sarfraaz Ahmed <asarfraaz@novell.com>
* e-shell.c (set_interactive): Implemented. Sends the "interactive"
message when the first window is created to all the components.
svn path=/trunk/; revision=26098
2004-05-12 Not Zed <NotZed@Ximian.com>
* shell-errors.xml.h: add for translators.
2004-05-11 Not Zed <NotZed@Ximian.com>
* shell-errors.xml: Shell errors.
* e-shell.c (e_shell_attempt_upgrade): handle exceptions better.
allow the user to keep going or abort. stop as soon as something
fails. Related to #53083.
(attempt_upgrade): abort and quit if the subcall failed. it will
display an appropriate error box.
(attempt_upgrade): abort if we don't have enough space. #57290.
* Evolution-Component.idl (upgradeFromVersion): remove the return
code, use exceptions to indicate failure.
svn path=/trunk/; revision=25869
* e-shell-window-commands.c (command_quit): Don't save window
state here.
* e-shell.c (e_shell_quit): Do it here, so it gets called if you
quit by closing the last window via its close button too. #57529
svn path=/trunk/; revision=25723
2004-04-09 Jeffrey Stedfast <fejj@ximian.com>
* e-shell.c (e_shell_attempt_upgrade): Don't activate the
components here.
(e_shell_construct): Activate them all here instead (before we
attempt to upgrade). Fixes a bug where the shell would start up in
online mode but never notify the components to go online.
* main.c (idle_cb): s/Cannot access/Cannot register/
svn path=/trunk/; revision=25405
2004-04-09 Chris Toshok <toshok@ximian.com>
* e-shell.c (e_shell_attempt_upgrade): make sure the component is
activated before calling upgradeFromVersion.
svn path=/trunk/; revision=25400
2004-04-09 Chris Toshok <toshok@ximian.com>
* e-shell.c (e_shell_attempt_upgrade): use BASE_VERSION to supply
the major/minor version, and use UPGRADE_REVISION for the
revision.
(attempt_upgrade): store the key based on BASE_VERSION and
UPGRADE_REVISION.
svn path=/trunk/; revision=25386
* e-user-creatable-items-handler.c: Change this a lot. Now each
component will maintain its own EUserCreatableItemsHandler and
merge the button and menus in and out of the UI as its controls
are activated and deactivated. (This lets the connector component
display the correct default for the New button). Also, update to
the Product Design Team's new organization (separating object
types from folder types)
* e-shell.c: Remove all creatable_items_handler references
* e-shell-window.c (e_shell_window_new): Remove
creatable_items_handler reference
* Makefile.am: Move e-user-creatable-items-handler from evolution
to libeshell, and make libeshell depend on libemiscwidgets (for
the combo button)
* Evolution-Component.idl: add another field to CreatableItemType
so we can distinguish object types from folder types.
svn path=/trunk/; revision=25379
2004-03-12 Not Zed <NotZed@Ximian.com>
* e-shell.c (detect_version): when we check the evolution dir
exists, check the evolution dir exists, not the config.xmldb file.
Move filename building/usage into the else condition so it can't
happen again. Fixes#53277.
svn path=/trunk/; revision=25040
2004-02-04 Not Zed <NotZed@Ximian.com>
** See bug #53683.
* Evolution-Component.idl: added EvolutionComponent::quit() call.
* main.c (quit_box_new): removed, dont show quit box anymore at
the end, we've already shutdown by now with the new shutdown
sequence.
* e-shell-window-commands.c (command_quit): call e_shell_quit to
quit.
* e-shell.c (e_shell_prepare_for_quit): renamed es_run_quit, now
internal, and a gtktimeout function, so return code inverted.
(e_shell_quit): new public entry, find out if we can shutdown, if
so, then trigger a shutdown.
(e_shell_request_close_window): just call e_shell_quit to exit
when we've run out of windows.
(e_shell_quit): desensitise all of the app windows before running
shutdown. looks a bit weird, but not doing so looks worse.
svn path=/trunk/; revision=24609
2004-01-21 Not Zed <NotZed@Ximian.com>
* e-shell.c (attempt_upgrade, detect_version, e_shell_construct):
attempt the upgrade before trying to startup the wizard.
* main.c (detect_version, attempt_upgrade): move to e-shell.c
(idle_cb): remove call to attempt_upgrade.
svn path=/trunk/; revision=24461
2004-01-13 JP Rosevear <jpr@ximian.com>
* main.c (attempt_upgrade): detect the version more completely
with the new util routine
(main): don't upgrade the config db here
* e-shell.h: update proto
* e-shell.c (e_shell_attempt_upgrade): take the current version as
numerical params
* e-config-upgrade.h: update prototypes
* e-config-upgrade.c (e_config_upgrade): remove version detection
and saving code
(e_upgrade_detect_version): routine to do the version detection
* e-config-upgrade.c: drop my-evolution upgrade code
svn path=/trunk/; revision=24205
2003-12-30 JP Rosevear <jpr@ximian.com>
* e-setup.[hc]: these just handle creating the ~/evolution dir and
so are no longer needed
* main.c (main): don't setup the old ~/evolution dir
* Makefile.am: don't build dead files
* e-shell.c (e_shell_go_online): get the id from the component
info
svn path=/trunk/; revision=24024
* e-shell.c (e_shell_prepare_for_quit): Implement.
* Evolution-Component.idl (Component::requestQuit): Make sync
[i.e. just return a boolean instead of using a BonoboListener].
svn path=/trunk/; revision=23639
* e-shell.c (impl_Shell_createNewWindow): If component_id is the
empty string, pass NULL for it to e_shell_create_window() so we
get the default.
* main.c (idle_cb): Pass an empty string for component_id to
createNewWindow() if the default_component_id is NULL.
svn path=/trunk/; revision=23620
* gui/component/addressbook-component.c (impl_createControls):
Pass a label for the status bar control for now.
* gui/calendar-component.c (impl_createControls): Pass a label for
the status bar control for now.
* gui/tasks-component.c (impl_createControls): Pass a label for
the status bar control for now.
* mail-component.c (impl_createControls): Pass a label for the
status bar control for now.
* e-shell.c (struct _EShellPrivate): Remove member
activity_handler.
(setup_activity_interface): Remove.
(e_shell_init): Don't call.
(create_window): Don't attach the task bar to the activity
handler.
* e-shell-window.c (struct _ComponentView): New member
statusbar_widget.
(struct _EShellWindowPrivate): Remove member task_bar.
(init_view): Get the status bar control from createControls and
put it in the ComponentView struct.
(setup_task_bar): New.
(setup_statusbar_notebook): New.
(switch_view): Switch the statusbar notebook too.
(impl_dispose): Add missing GTK_OBJECT() cast.
(e_shell_window_peek_task_bar): Remove.
* Evolution-Component.idl (Component::createControls): New out arg
"statusbar_control"; this way components can provide their own
status bar.
* e-activity-handler.c, e-activity-handler.h: Turn into a plain
GObject; translate all the CORBA methods into plain C methods.
* Makefile.am: Move e-activity-handler to libeshell instead of it
being in the shell.
svn path=/trunk/; revision=23555
* e-shell.c (struct _EShellPrivate): New member offline_handler.
(offline_procedure_started_cb): New.
(offline_procedure_finished_cb): New.
(e_shell_go_offline): Implement (putting back the code that we had
#if 0'ed out).
(e_shell_go_online): Likewise.
* e-shell-offline-handler.c, e-shell-offline-handler.h: Put back
in, massage for the changes in the Offline interface.
* e-shell-offline-sync.c, e-shell-offline-sync.h: Remove from CVS.
* Evolution-Offline.idl (SyncFolderProgressListener): Remove.
(Offline::SyncFolder): Remove.
svn path=/trunk/; revision=23505
* e-shell.c (impl_Shell_handleURI): Reimplemented using
EComponentRegistry.
* main.c (idle_cb): Create a new window even if we have a URI
list.
* e-component-registry.c
(e_component_registry_peek_info_for_uri_schema): New.
svn path=/trunk/; revision=23461
* e-shell-window.c (impl_dispose): Destroy the tooltips instead of
unreffing them.
* e-shell.c (struct _EShellPrivate): New member activity_handler.
(setup_activity_interface): New.
(impl_dispose): Add a comment about why we must not unref
activity_handler here.
(create_window): Attach the task bar to the new window.
* e-shell-window.c (e_shell_window_peek_task_bar): New.
svn path=/trunk/; revision=23439
* main.c (attempt_upgrade): New helper function.
(idle_cb): Call it if we have a local shell. Also, remove unused
variables.
* e-shell.c (e_shell_attempt_upgrade): New.
* Evolution-Component.idl (Component.upgradeFromeVersion): New.
svn path=/trunk/; revision=23403
* main.c: Added a new "-c" command-line arg.
(idle_cb): If the arg is specified, open the component with that
id/alias.
* e-shell.c (impl_Shell_createNewView): New, implementation for
the Shell::createNewView() CORBA method.
(e_shell_class_init): Install.
(e_shell_create_window): Get a component_id arg.
* e-shell-window.c (e_shell_window_new): Get a component_id arg
and create the window with that component activated if not NULL.
* Evolution-Shell.idl (createNewView): Remove.
(createNewWindow): New.
svn path=/trunk/; revision=23274
* main.c (idle_cb): Create a new EShellWindow and show it.
* e-storage.c: New signal "async_open_folder".
(impl_async_open_folder): Removed.
(class_init): Declare new signal.
* e-shell.c (setup_components): Don't actually activate any
components.
* e-storage-browser.c, e-storage-browser.h: New.
* e-shell-window.c, e-shell-window.h: New.
* e-shell-marshal.list: Add an entry for
NONE:STRING,POINTER,POINTER.
* Evolution.idl: Include Evolution-Component.idl.
* Evolution-Component.idl: New interface for Evolution components.
svn path=/trunk/; revision=21925
* e-shell.c (parse_default_uri): Protect against the component
name having slashes in it.
* e-shell-view.c (display_uri): Protect against invalid "default:"
URIs. [#43079]
svn path=/trunk/; revision=21194
2003-05-14 JP Rosevear <jpr@ximian.com>
* e-shell.c (save_settings_for_component): release the interface
if we got it
* e-shell-view.c: include bonobo-exception.h
(impl_dispose): release and unref the shell view corba interface
(init): init to CORBA_OBJECT_NIL
(e_shell_view_get_corba_interface): return the corba interface
(setup_corba_interface): release the existing shell view, add as
an interface and then query to get it back
(get_view_for_uri): release and unref the control once we create
the widget with it
* e-corba-storage.c (storage_listener_servant_new): don't ref
ourselves
(storage_listener_servant_free): don't unref ourselves
(impl_dispose): free the servant info
* e-corba-storage-registry.c
(impl_StorageRegistry_getStorageByName): we need to ref as well as
duplicate since we didn't create the storage here
svn path=/trunk/; revision=21176
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* e-setup.c (e_setup_check_config): Free the temporary string.
* e-shell-user-creatable-items-handler.c (append_xml_for_menu_item):
Free the icon xml string.
* e-shell.c (parse_default_uri): Free the component name, the
configuration path and the temporary path.
svn path=/trunk/; revision=20849
* evolution-folder-selector-button.c (clicked): Desensitize the
window's top-level container rather than desensitizing the window
itself, which causes strange problems [#40854]. Also fix up the
code that tries to watch for the parent window being destroyed.
* e-shell.c (impl_Shell_selectUserFolder): Use
e_dialog_set_transient_for_xid.
* e-shell-folder-selection-dialog.c (impl_response): Treat
GTK_RESPONSE_DELETE_EVENT the same as GTK_RESPONSE_CANCEL.
(e_shell_folder_selection_dialog_construct): No need to catch
"delete_event" signal.
svn path=/trunk/; revision=20729
2003-04-02 Not Zed <NotZed@Ximian.com>
[#39467]
* e-shell.c (e_shell_construct): Change the splash logic slightly,
so that if we can't create the splash, we dont try and cast/use
it.
* e-splash.c (e_splash_new): dont use a g_return* for what could
be a valid (tho incorrect) runtime condition.
svn path=/trunk/; revision=20629
* Evolution-ShellComponent.idl (interactive): add a "new_view_xid"
arg, so the component has a window id to make use of as a parent
if it needs to pop up a dialog.
* e-shell.c (set_interactive): Pass the new_view_xid when going
interactive.
(e_shell_set_interactive): Remove this since it wasn't being used,
and couldn't be used for anything except lying to the components.
* evolution-shell-component.c
(evolution_shell_component_class_init): Update "interactive"
signal definition
(impl_interactive): Update prototype and signal emission
* e-shell-marshal.list (NONE:BOOL,INT): add
svn path=/trunk/; revision=20493