Commit Graph

242 Commits

Author SHA1 Message Date
e03ebc5235 unref the component registry
* e-shell.c (impl_dispose): unref the component registry

svn path=/trunk/; revision=25398
2004-04-09 18:07:23 +00:00
65a076f8dc use BASE_VERSION to supply the major/minor version, and use
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
2004-04-09 17:20:51 +00:00
7f2badb024 Change this a lot. Now each component will maintain its own
* 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-04-09 15:46:00 +00:00
f61aa6b19c when we check the evolution dir exists, check the evolution dir exists,
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-03-12 07:58:20 +00:00
984ebf4e06 make this C89 compliant
2004-02-04  JP Rosevear <jpr@ximian.com>

	* e-shell.c (e_shell_quit): make this C89 compliant

svn path=/trunk/; revision=24617
2004-02-04 20:45:45 +00:00
3a96d74c2b ** See bug #53683.
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-02-04 10:55:25 +00:00
2cf803cfc6 attempt the upgrade before trying to startup the wizard.
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-27 12:31:22 +00:00
3bb08252f2 there is no splash screen any more
2004-01-26  JP Rosevear <jpr@ximian.com>

	* e-shell.c (e_shell_construct): there is no splash screen any
	more

svn path=/trunk/; revision=24438
2004-01-26 17:00:28 +00:00
f17f36a31e detect the version more completely with the new util routine (main): don't
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
2004-01-13 18:51:54 +00:00
f13d5385ff make sure we actually upgrade between revisions
2004-01-08  JP Rosevear <jpr@ximian.com>

	* e-shell.c (e_shell_attempt_upgrade): make sure we actually
	upgrade between revisions

svn path=/trunk/; revision=24124
2004-01-09 03:13:18 +00:00
391ca0f24d these just handle creating the ~/evolution dir and so are no longer needed
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
2003-12-30 15:09:35 +00:00
3270f7a07f Mark the settings dialog as transient for the main window
svn path=/trunk/; revision=24004
2003-12-22 18:32:13 +00:00
56ac1ec642 Implement.
* 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
2003-12-04 23:12:28 +00:00
9407166101 If component_id is the empty string, pass NULL for it to
* 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
2003-12-03 20:08:14 +00:00
ac0442e31c Pass a label for the status bar control for now.
* 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
2003-12-02 02:17:34 +00:00
5f2ba41078 New member offline_handler. (offline_procedure_started_cb): New.
* 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
2003-11-30 20:53:42 +00:00
ebc902721d Reimplemented using EComponentRegistry.
* 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
2003-11-20 17:51:07 +00:00
1003ebf619 Destroy the tooltips instead of unreffing them.
* 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
2003-11-19 09:43:17 +00:00
c6b3809b47 New helper function. (idle_cb): Call it if we have a local shell. Also,
* 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
2003-11-17 21:27:21 +00:00
8f502cffbc Do not #include "e-local-folder.h".
* e-setup.c: Do not #include "e-local-folder.h".

* Makefile.am: Don't build evolution-test-component for now since
it's all out of date.

* main.c (evolution_debug_log): Make static instead of extern.

* e-user-creatable-items-handler.c: #include
<bonobo/bonobo-control.h>.

* e-shell.h: Do not include "e-uri-schema-registry.h" or
"evolution-shell-component-client.h".
* e-shell.c: Likewise.

* e-shell.c (struct _EShellPrivate): Removed member
uri_schema_registry.
(impl_Shell_handleURI): #if 0 it out for now.
(e_shell_peek_uri_schema_registry): Disabled for now.

* e-corba-storage-registry.c: Remove.
* e-corba-storage-registry.h: Remove.
* e-corba-storage.c: Remove.
* e-corba-storage.h: Remove.
* e-folder-dnd-bridge.c: Remove.
* e-folder-dnd-bridge.h: Remove.
* e-folder-selection-dialog.c: Remove.
* e-folder-selection-dialog.h: Remove.
* e-folder-type-registry.c: Remove.
* e-folder-type-registry.h: Remove.
* e-local-folder.c: Remove.
* e-local-folder.h: Remove.
* e-local-storage.c: Remove.
* e-local-storage.h: Remove.
* e-shell-folder-selection-dialog.c: Remove.
* e-shell-folder-selection-dialog.h: Remove.
* e-shell-view.c: Remove.
* e-shell-view.h: Remove.
* e-storage-browser.c: Remove.
* e-storage-browser.h: Remove.
* e-storage-set-view.c: Remove.
* e-storage-set-view.h: Remove.
* e-storage-set.c: Remove.
* e-storage-set.h: Remove.
* e-storage.c: Remove.
* e-storage.h: Remove.
* evolution-shell-component-client.c: Remove.
* evolution-shell-component-client.h: Remove.
* evolution-shell-component-dnd.c: Remove.
* evolution-shell-component-dnd.h: Remove.
* evolution-storage-listener.c: Remove.
* evolution-storage-listener.h: Remove.
* evolution-storage-set-view-listener.c: Remove.
* evolution-storage-set-view-listener.h: Remove.

svn path=/trunk/; revision=23396
2003-11-17 19:12:04 +00:00
5880c00dd2 New.
* e-shell.c (e_shell_send_receive): New.

* Evolution-Component.idl (Component.sendAndReceive): New.

* evolution.xml: Add back send/receive command and toolbar button.

svn path=/trunk/; revision=23334
2003-11-13 21:32:39 +00:00
7a5ecfbb6c New signal "component_changed". (class_init): Install. (switch_view):
* e-shell-window.c: New signal "component_changed".
(class_init): Install.
(switch_view): Emit.
(e_shell_window_new): Call
e_user_creatable_items_handler_attach_menus() to attach the
"New..."  menus.
(e_shell_window_peek_current_component_id): New.
(e_shell_window_peek_shell): Add precondition.
(e_shell_window_peek_current_component_id): Likewise.
(e_shell_window_peek_bonobo_ui_component): Likewise.

* e-user-creatable-items-handler.c: New.
* e-user-creatable-items-handler.h: New.

* e-shell-window.h: #include <bonobo/bonobo-ui-component.h>.

* e-shell.c (struct _EShellPrivate): Add member
user_creatable_items_handler.
(e_shell_get_user_creatable_items_handler): Remove.
(e_shell_peek_user_creatable_items_handler): New.

* Evolution-Component.idl (GNOME.Evolution.RequestCreateItem): New
method.
(GNOME.Evolution.creatableItems): New attribute.

* e-shell-user-creatable-items-handler.c: Remove.
* e-shell-user-creatable-items-handler.h: Remove.

svn path=/trunk/; revision=23314
2003-11-13 05:56:14 +00:00
a99f0c4290 Added a new "-c" command-line arg. (idle_cb): If the arg is specified,
* 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
2003-11-11 01:01:11 +00:00
dc6bea5487 New member "component_registry". (e_shell_construct): Don't call
* e-shell.c (struct _EShellPrivate): New member
"component_registry".
(e_shell_construct): Don't call e_shell_unregister_all().
(e_shell_unregister_all): Removed.
(e_shell_init): Use g_new0(), removed a bunch of NULL/FALSE
assignments.
(e_shell_init): Initialize the component_registry.
(e_shell_peek_uri_schema_registry): Rename from
e_shell_get_uri_schema_registry.
(e_shell_peek_component_registry): New.
(setup_components): Remove.
(e_shell_construct): Don't call.

* main.c (no_windows_left_cb): Don't call e_shell_unregister_all().

* e-shell.c (parse_default_uri): Removed.
(parse_evolution_uri): Removed.
(e_shell_parse_uri): Removed.

* e-component-info.c: Remove.
* e-component-info.h: Remove.

svn path=/trunk/; revision=23017
2003-10-22 21:48:49 +00:00
0fb08f3ff8 Merge new-ui-branch to the trunk.
svn path=/trunk/; revision=22964
2003-10-21 18:28:34 +00:00
fa88a2c61f Ooops, revert changes: wrong branch.
svn path=/trunk/; revision=21926
2003-07-23 22:17:32 +00:00
a238c463dd Create a new EShellWindow and show it.
* 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
2003-07-23 21:58:28 +00:00
ca848e5756 Protect against the component name having slashes in it.
* 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-15 18:19:16 +00:00
74ee7fe6ae release the interface if we got it
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-05-14 18:39:22 +00:00
a693beaab4 Free the temporary string.
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
2003-04-15 21:27:08 +00:00
320484b37f Desensitize the window's top-level container rather than desensitizing the
* 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-07 20:20:00 +00:00
136cf86a7c [#39467]
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
2003-04-02 03:41:57 +00:00
b04bd957c7 Update for e_notice move. Likewise Likewise Likewise Likewise Likewise
* e-folder-dnd-bridge.c: Update for e_notice move.
	* e-setup.c: Likewise
	* e-shell-folder-commands.c: Likewise
	* e-shell-folder-creation-dialog.c: Likewise
	* e-shell-offline-sync.c: Likewise
	* e-shell-shared-folder-picker-dialog.c: Likewise
	* e-shell-view-menu.c: Likewise
	* e-shell.c: Likewise
	* evolution-shell-component-utils.c: Likewise

	* Makefile.am (libeshell_la_LIBADD): libeshell depends on
	libeutil.

	* e-corba-storage.c: Fix warnings

svn path=/trunk/; revision=20500
2003-03-25 15:48:33 +00:00
7733348dcc add a "new_view_xid" arg, so the component has a window id to make use of
* 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
2003-03-25 14:01:46 +00:00
ec3cf6dfcd If you can't get a pixbuf icon for the folder's type, do not crash.
* evolution-folder-selector-button.c (set_folder): If you can't
get a pixbuf icon for the folder's type, do not crash.  [#39599]

* e-shell.c (impl_Shell__get_displayName): Removed.  [#38974]
(e_shell_class_init): Do not install anymore.

* Evolution-Shell.idl: Remove displayName attribute.

svn path=/trunk/; revision=20359
2003-03-19 18:32:52 +00:00
647671b615 ** reverted the following patch from ettore, this is a gnome 2.2 api
2003-03-07  Not Zed  <NotZed@Ximian.com>

        ** reverted the following patch from ettore, this is a gnome 2.2
        api change, and shouldn't be used yet.

        * e-shell.c (impl_finalize): Use
        bonobo_activation_unregister_active_server() instead of
        bonobo_activatino_active_server_unregister().
        (e_shell_construct): Use
        bonobo_activation_register_active_server() instead of
        bonobo_activation_active_server_register().

svn path=/trunk/; revision=20214
2003-03-07 02:26:11 +00:00
8f3ca8febc (impl_Shell_selectUserFolder): At least for now,
disable the nasty XWMHints trick to fool WMs; it is not needed now
that everything is in-proc.

svn path=/trunk/; revision=20211
2003-03-06 19:44:13 +00:00
6681286707 (impl_finalize): Use
bonobo_activation_unregister_active_server() instead of
bonobo_activatino_active_server_unregister().
(e_shell_construct): Use
bonobo_activation_register_active_server() instead of
bonobo_activation_active_server_register().

svn path=/trunk/; revision=20198
2003-03-06 17:22:10 +00:00
6e61ef2ee4 fix the conf keys, currently unused.
2003-02-20  Not Zed  <NotZed@Ximian.com>

        * main.c (upgrade_from_1_0_if_needed): fix the conf keys, currently unused.

        * e-shell.c (save_settings_for_component): lower-case the config prefix.

svn path=/trunk/; revision=20021
2003-02-24 03:12:46 +00:00
8d5640e6ce (e_shell_construct): Use
bonobo_activation_server_register() instead of
bonobo_activation_register_active_server() again, since we want to
be able to build against bonobo-activation 2.0 and the latter is
2.2-specific.
(impl_finalize): Likewise, use
bonobo_activation_active_server_unregister() instead of
bonobo_activation_unregister_active_server().

svn path=/trunk/; revision=19668
2003-01-28 17:08:05 +00:00
8cf2b93847 Set GTK_RESPONSE_OK as the default response.
* e-shell-importer.c (choose_importer_from_list): Set
GTK_RESPONSE_OK as the default response.

* Makefile.am (INCLUDES): Add -DGNOME_DISABLE_DEPRECATED,
-DBONOBO_DISABLE_DEPRECATED.

* e-shortcuts.c (update_shortcut_and_emit_signal): Use
g_signal_emit() instead of gtk_signal_emit().

* e-shortcuts-view.c (destroy_group_cb): Port from GnomeMessageBox
to GtkMessageDialog.

* e-shell.c (get_icon_path_for_component_info): Use
gnome_program_locate_file() instead of gnome_pixmap_file().
(impl_finalize): Use bonobo_activation_unregister_active_server()
instead of bonobo_activation_active_server_register().
(e_shell_construct): Use
bonobo_activation_register_active_server() instead of
bonobo_activation_active_server_register().

* e-shell-view-menu.c (command_submit_bug): Use e_notice().
(launch_pilot_settings): Use g_find_program_in_path() instead of
gnome_is_program_in_path().
(command_submit_bug): Likewise.

* e-shell-utils.c (get_icon_path): Use g_file_test() instead of
g_file_exists().

* e-shell-startup-wizard.c (prepare_importer_page): Port from
GnomeMessageBox to GtkMessageDialog.

* e-shell-shared-folder-picker-dialog.c (show_dialog): Update for
GtkDialog.
(progress_dialog_close_callback): Removed.
(progress_dialog_clicked_callback): Removed.
(progress_dialog_response_callback): New.
(create_progress_dialog): Ported to GnomeDialog.

* e-shell-offline-sync.c: Add member parent_window to struct
SyncData.
(e_shell_offline_sync_all_folders): Set it from the parent_window
arg.
(progress_dialog_close_callback): Removed.
(progress_dialog_clicked_callback): Removed.
(progress_dialog_response_callback): New.
(setup_dialog): Create a GtkDialog instead of a GnomeDialog.
(sync_folder): Updated for GtkDialog.

* e-shell-offline-handler.c (dialog_handle_ok): Make it get a
GtkDialog instead of a GnomeDialog.
(dialog_handle_cancel): Likewise.
(dialog_clicked_cb): Removed.
(dialog_response_cb): New.
(pop_up_confirmation_dialog): Connect the new dialog_response_cb()
instead of the old dialog_clicked_cb().  Removed
gnome_dialog_set_default() call.

* e-shell-folder-creation-dialog.c (dialog_response_cb): Make
first arg a GtkDialog, not a GnomeDialog.

* e-shell-folder-commands.c (e_shell_command_delete_folder):
Expect delete_dialog() to return a GtkResponseType.
(delete_dialog): Ported to GtkMessageDialog; Return a
GtkResponseType.

* e-shell-config-default-folders.c
(e_shell_config_default_folders_create_widget): Removed unused
variable.

* e-setup.c (check_evolution_directory): Remove Evolution
directory installation message.
(e_setup): Remove check for the Executive-Summary directory.

* e-local-storage.c (create_folder_directory): Use g_file_test()
instead of g_file_exists().

* evolution-shell-component-utils.c (e_pixmaps_update): Use
g_build_filename() of g_concat_dir_and_file().
* e-folder-dnd-bridge.c (handle_data_received_path): Likewise.
* e-local-folder.c (construct_loading_metadata): Likewise.
(save_metadata): Likewise.
* e-local-storage.c (remove_folder_directory): Likewise.
(append_xfer_item_list): Likewise.
* e-setup.c (check_dir_recur): Likewise.
(e_shell_rm_dir): Likewise.
(setup_bonobo_conf_private_directory): Likewise.
* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback): Likewise.
(e_shell_command_rename_folder): Likewise.
* e-shell-folder-creation-dialog.c (dialog_response_cb): Likewise.
* e-shell-settings-dialog.c (load_pages): Likewise.
* e-shell-utils.c (get_icon_path): Likewise.
* e-shell.c (setup_local_storage): Likewise.
(get_icon_path_for_component_info): Likewise.
(e_shell_construct): Likewise.
* main.c (main): Likewise.

svn path=/trunk/; revision=19658
2003-01-27 21:09:56 +00:00
092ccc49c4 s/BonoboXObject/BonoboObject/ (for BONOBO_DISABLE_DEPRECATED)
* s/BonoboXObject/BonoboObject/ (for BONOBO_DISABLE_DEPRECATED)

svn path=/trunk/; revision=19427
2003-01-13 18:51:39 +00:00
b08b93d946 Make the view save its settings as the default ones if it's the last one.
* e-shell.c (e_shell_request_close_view): Make the view save its
settings as the default ones if it's the last one.

* e-shell-view-menu.c (command_quit): Make this view save its
settings as the defaults before quitting.

svn path=/trunk/; revision=19410
2003-01-10 20:43:48 +00:00
794ff9b527 (parse_default_uri): Remove bogus is_default check.
svn path=/trunk/; revision=19406
2003-01-10 18:18:25 +00:00
921933660b Properly reset activity_interface to NULL.
* evolution-shell-client.c (impl_dispose): Properly reset
activity_interface to NULL.
(evolution_shell_client_construct): Ref the shell object here.

* e-shell.c (view_weak_notify): Ref the shell since it's being
passed to notify_no_views_left_idle_cb as the data.
(notify_no_views_left_idle_cb): Only unref the shell here.

svn path=/trunk/; revision=19381
2003-01-09 23:59:39 +00:00
482cf3700a [With this commit, the shell compiles without deprecated
GLib/GTK+ functions, except for a couple of places were we use
GtkCList.]

* Makefile.am (INCLUDES): Add `-DG_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED'.

* evolution-test-component.c (create_new_folder_selector): No
gtk_window_set_policy().

* main.c (quit_box_new): gtk_window_set_resizable() instead of
gtk_window_set_policy().
(view_map_callback): g_signal_handlers_disconnect_by_func()
instead of gtk_signal_disconnect_by_func().
(main): No need to push the GdkRGB visual/cmap anymore.
(new_view_created_callback): Likewise.

* e-task-widget.c: Renamed member pixmap of ETaskWidgetPrivate to
`image'.
(init): Updated accordingly.
(e_task_widget_construct): Use GtkImage, not GtkPixmap.

* e-storage.c (class_init): Converted from gtk_signal_new() to
g_signal_new().

* e-storage-set.c (class_init): Converted from gtk_signal_new() to
g_signal_new().

* e-storage-set-view.c
(setup_folder_properties_items_if_corba_storage_clicked):
g_string_append_printf() instead of g_string_sprintfa().
(class_init): Converted from gtk_signal_new() to g_signal_new().
(setup_folder_changed_callbacks): Use
e_signal_connect_while_alive() and
e_signal_connect_full_while_alive().

* e-splash.c (e_splash_construct): gtk_window_set_resizable()
instead of gtk_window_set_policy().

* e-shortcuts.c: Do not #include e-unicode.h.
(shortcut_item_update): Use g_path_get_basename() instead of
g_basename().
(e_shortcuts_add_default_shortcuts): No need to de-utfize strings.
(e_shortcuts_add_default_group): Same here.

* e-shortcuts-view.c: Do not #include <e-unicode.h>.
(class_init): Converted from gtk_signal_new() to g_signal_new().
(destroy_group_cb): No need to convert the text from UTF8.

* e-shell.c (impl_dispose): g_signal_handlers_disconnect_by_func()
instead of gtk_signal_disconnect_by_func().
(class_init): Use g_signal_new() instead of gtk_signal_new().

* e-shell-view.c: Do not #include e-unicode.h.  Renamed member
offline_toggle_pixmap to offline_toggle_image in
EShellViewPrivate.
(update_folder_title_bar): No need to de-UTF8-ize the title.
(cleanup_delayed_selection):
g_signal_handlers_disconnect_by_func() instead of
gtk_signal_disconnect_by_func().
(ui_engine_add_hint_callback): gtk_label_set_text(), not
gtk_label_set().
(class_init): Use g_signal_new() instead of gtk_signal_new().
(update_for_current_uri): No need to convert the title from UTF8.
(setup_offline_toggle): Changed to set up a GtkImage, not a
GtkPixmap.
(update_offline_toggle_status): Accordingly (gtk_image* instead of
gtk_pixmap*).
(set_current_notebook_page): gtk_notebook_set_current_page(), not
gtk_notebook_set_page().
(get_storage_set_path_from_uri): g_ascii_strncasecmp() instead of
g_strncasecmp().
(folder_bar_popup_map_callback): Use
e_signal_connect_while_alive() instead of
gtk_signal_connect_while_alive().
(e_shell_view_construct): Likewise.
(display_uri): g_signal_connect_after() instead of
gtk_signal_connect_full().
(update_for_current_uri):
g_signal_handlers_{block,unblock}_by_func() instead of
gtk_signal_handler_{block,unblock}_by_func().

* e-shell-view-menu.c (command_about_box):
gtk_window_set_resizable() instead of gtk_window_set_policy().

* e-shell-utils.c (get_mini_name): g_path_get_basename() instead
of g_basename().

* e-shell-user-creatable-items-handler.c
(append_xml_for_menu_item): g_string_append_printf() instead of
g_string_sprintfa().
(create_menu_xml): Likewise.

* e-shell-shared-folder-picker-dialog.c: Do not #include
e-unicode.h.
(progress_bar_timeout_callback): Expect a GtkProgressBar data and
just use gtk_progress_bar_pulse().
(create_progress_dialog): gtk_window_set_resizable() instead of
gtk_window_set_policy().  No gtk_progress_set_activity_mode().
(setup_server_option_menu): Just use
gtk_menu_item_new_with_label() instead of
e_utf8_gtk_menu_item_new_with_label().

* e-shell-settings-dialog.c (set_dialog_size): Ported to Pango.

* e-shell-offline-sync.c
(impl_SyncFolderProgressListener_updateProgress):
gtk_progress_set_fraction() instead of
gtk_progress_bar_set_percentage().
(sync_folder): Likewise.
(setup_dialog): gtk_window_set_resizable() instead of
gtk_window_set_policy().
(sync_folder): No gtk_progress_set_activity_mode().

* e-shell-offline-handler.c: #undef {G,GTK}_DISABLE_DEPRECATED
here for now (need to port from GtkCList).
(class_init): Use g_signal_new()

* e-shell-importer.c: #undef {G,GTK}_DISABLE_DEPRECATED here for
now (need to port from GtkCList).

* e-shell-folder-title-bar.c (create_image_widget_from_xpm):
Renamed from create_pixmap_widget_from_xpm(); handle GtkImage
instead of GtkPixmap.
(new_empty_image_widget): Renamed from new_empty_pixmap_widget();
return a GtkImage instead of a GtkPixmap.
(add_navigation_buttons): Updated accordingly; so use GtkImages
instead of GtkPixmaps.
(e_shell_folder_title_bar_construct): Likewise.
(e_shell_folder_title_bar_set_icon): Use gtk_image_* instead of
gtk_pixmap_* on the image widgets.
(class_init): Converted to use g_signal_new() instead of
gtk_signal_new().
(e_shell_folder_title_bar_new): No need for pushing the GdkRGB
visual/cmap anymore.

* e-shell-folder-selection-dialog.c (check_folder_type_valid):
Just use strcmp instead of strcasecmp().
(class_init): g_signal_new() instead of gtk_signal_new().
(e_shell_folder_selection_dialog_construct): Removed call to
gtk_window_set_policy().

* e-shell-folder-creation-dialog.c
(type_with_display_name_compare_func): Changed to use
g_utf8_casefold().

* e-shell-folder-commands.c: Do not #include e-unicode.h.
(e_shell_command_rename_folder): g_path_get_dirname() instead of
g_dirname().
(folder_selection_dialog_folder_selected_callback):
g_path_get_basename() instead of g_basename().
(rename_cb): Likewise.
(delete_dialog): Do not convert from UTF8 for display purposes.
(e_shell_command_rename_folder): Likewise.

* e-shell-about-box.c (timeout_callback): Ported to Pango and use
gdk_window_invalidate_rect() instead of gtk_widget_draw().

* e-setup.c (check_evolution_directory): Use
gtk_window_set_resizable() instead of gtk_window_set_policy().

* e-local-storage.c: Do not include e-unicode.h.
(create_folder): Use g_path_get_basename() instead of
g_basename().
(create_folder_directory): Likewise.
(remove_folder_directory): Likewise.
(append_xfer_item_list): Likewise.

* e-local-folder.c (construct_loading_metadata): Use
g_path_get_basename() instead of g_basename().

* e-folder-dnd-bridge.c (handle_evolution_path_drag_motion): Use
g_path_get_basename() instead of g_basename().

* e-corba-storage-registry.c: G_STRUCT_OFFSET instead of
GTK_STRUCT_OFFSET.

* e-corba-shortcuts.c: G_STRUCT_OFFSET instead of
GTK_STRUCT_OFFSET.

* e-component-registry.c
(sleep_with_g_main_loop_timeout_callback): g_main_loop_* instead
of g_main_*.
(sleep_with_g_main_loop): Likewise.

* e-activity-handler.c: G_STRUCT_OFFSET instead of
GTK_STRUCT_OFFSET.

* evolution-wizard.c (evolution_wizard_class_init): g_signal_new()
instead of gtk_signal_new().

* evolution-storage-listener.c (class_init): g_signal_new()
instead of gtk_signal_new().

* evolution-shell-view.c (class_init): g_signal_new() instead of
gtk_signal_new().

* evolution-shell-component-dnd.c: G_STRUCT_OFFSET instead of
GTK_STRUCT_OFFSET.

* evolution-shell-component.c: G_STRUCT_OFFSET instead of
GTK_STRUCT_OFFSET.

* evolution-session.c: G_STRUCT_OFFSET instead of
GTK_STRUCT_OFFSET.

* evolution-folder-selector-button.c: Do not include e-unicode.h.
(set_folder): No need to convert from UTF8 to locale encoding
anymore.  Removed unused variable.

* evolution-config-control.c (class_init): Use g_signal_new()
instead of gtk_signal_new().

* evolution-activity-client.c (class_init): Use g_signal_new()
instead of gtk_signal_new().

* e-folder-list.c: Do not include e-unicode.h.  Use E_MAKE_TYPE().
(e_folder_list_get_type): Removed explicit implementation of this.
(e_folder_list_set_arg): Removed.
(e_folder_list_get_arg): Removed.
(e_folder_list_set_property): New.
(e_folder_list_get_property): New.
(e_folder_list_destroy): Removed.
(e_folder_list_dispose): New.
(e_folder_list_class_init): Updated accordingly.

* e-folder.c (impl_save_info): Use G_OBJECT_TYPE_NAME() instead of
gtk_type_name().
(impl_load_info): Likewise.
(impl_remove): Likewise.
(class_init): Use g_signal_new() instead of gtk_signal_new().

svn path=/trunk/; revision=19170
2002-12-19 22:03:40 +00:00
9d77b85ae3 changed to use a gtkdialog instead of a gnome one.
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * main.c (show_development_warning): changed to use a gtkdialog
        instead of a gnome one.
        (warning_dialog_response_callback): clicked->response.

        * e-shell-folder-selection-dialog.c: Include gtk/gtkstock.h

        * e-shell-folder-creation-dialog.c: include gnome-dialog.h
        (dialog_response_cb): gtk_entry_get_text now returns const.  Dont
        free result.

        * e-setup.c: include gnome-messagebox.h

        * *.c: (re)run fix.sh over all, for e_notice changes & pick up
        some deprecated functions.

        * e-shell-shared-folder-picker-dialog.c
        (shared_folder_discovery_callback): reformat e_notice call for
        script.

        * e-shell-offline-sync.c
        (impl_SyncFolderProgressListener_reportFailure): Fix e_notice
        call, we weren't passing type in.

        * e-shell-folder-commands.c (xfer_result_callback): changed around
        slightly to save some processing & allow a script to run.
        (e_shell_command_rename_folder): reformat e_notice call to help script.
        Include gnome-messagebox.h

svn path=/trunk/; revision=18977
2002-12-02 03:23:57 +00:00
69dd24294f use e_shell_ marshallers, and make sure STRING parameters map to *_STRING*
2002-11-20  Chris Toshok  <toshok@ximian.com>

	* e-folder-list.c (e_folder_list_class_init): use e_shell_
	marshallers, and make sure STRING parameters map to *_STRING*
	marshallers.

	* evolution-wizard.c (evolution_wizard_class_init): same.

	* evolution-storage.c (class_init): same.

	* evolution-storage-set-view-listener.c (class_init): same.

	* evolution-storage-listener.c (class_init): same.

	* evolution-shell-view.c (class_init): same.

	* evolution-session.c (class_init): same.

	* evolution-folder-selector-button.c (class_init): same.

	* evolution-config-control.c (class_init): same.

	* evolution-activity-client.c (class_init): same.

	* e-storage-set.c (class_init): same.

	* e-shortcuts.c (class_init): same.

	* e-shortcuts-view.c (class_init): same.

	* e-shell.c (class_init): same.

	* e-shell-view.c (class_init): same.

	* e-shell-offline-handler.c (class_init): same.

	* e-shell-folder-title-bar.c (class_init): same.

	* e-shell-folder-selection-dialog.c (class_init): same.

	* e-folder.c (class_init): same.

	* e-shell-marshal.list: add all the STRING marshallers.

svn path=/trunk/; revision=18857
2002-11-20 08:41:11 +00:00
8b3091dea7 Disabled for now.
* main.c (upgrade_from_1_0_if_needed): Disabled for now.

* e-shell-startup-wizard.c: Removed member config_listener from
struct SWData.
(e_shell_startup_wizard_create): Updated accordingly, just use
GConf, checking the /apps/evolution/mail/account-list key.
(finish_func): Use GConf.

* e-shell-config-default-folders.c: Removed member config_listener
in struct EvolutionDefaultFolderConfig.
(e_shell_config_default_folders_create_widget): Do not initialize
here.  GConfified the paths.
(config_control_destroy_notify): No unref of the config_listener
anymore.
(config_control_apply_cb): Use GConf.
(setup_folder_selector): Likewise.

* e-shell-config-autocompletion.c: Removed member config_listener
from EvolutionAutocompletionConfig.
(config_control_destroy_notify): Do not unref.
(config_control_apply_callback): Use a GConfClient.

* e-folder-list.c (e_folder_list_init): Add missing cast.

* main.c (show_development_warning): Use GConf.

* e-setup.c (e_setup_check_config): Removed arg @listener.
GConfified.

* e-shell-view.c (e_shell_view_save_defaults): New.
(e_shell_view_save_settings): Removed.
(e_shell_view_load_settings): Removed.
(setup_defaults): New helper function.
(e_shell_view_construct): New arg @uri.
(e_shell_view_new): New arg @uri.

* e-shell.c: Removed member config_listener in struct
EShellPrivate.
(impl_dispose): Do not unref.
(init): Do not initialize.
(get_config_start_offline): New helper function.
(e_shell_construct): Use this to get the startup mode in case
E_SHELL_STARTUP_LINE_MODE_CONFIG.
(save_misc_settings): Changed to use GConfClient instead of
EConfigListener.
(e_shell_create_view_from_settings): Removed.
(e_shell_restore_from_settings): Removed.
(e_shell_get_config_listener): Removed.
(e_shell_disconnect_db): Removed.
(parse_default_uri): Use GConf.

* main.c (idle_cb): Simplified the logic here.  Always assume that
the view will be created with the default folder open by just
using e_shell_create_view().

svn path=/trunk/; revision=18844
2002-11-19 21:25:37 +00:00
44f482262c Added rule to generate GNOME_Evolution_Shell.server.in from
* Makefile.am: Added rule to generate
GNOME_Evolution_Shell.server.in from
GNOME_Evolution_Shell.server.in.in, substituting @BINDIR@.

* GNOME_Evolution_Shell.server.in.in: Renamed from
GNOME_Evolution_Shell.server.in.  Prepend @BINDIR@ to the location
of the executable.

svn path=/trunk/; revision=18792
2002-11-15 22:06:22 +00:00