Commit Graph

848 Commits

Author SHA1 Message Date
bfe2921eb8 Use right_click_row_path rather than selected_row_path, so clients get the
2002-01-30  Not Zed  <NotZed@Ximian.com>

        * e-storage-set-view.c (popup_folder_menu): Use
        right_click_row_path rather than selected_row_path, so clients get
        the uri that was actually clicked on.

svn path=/trunk/; revision=15522
2002-01-30 07:02:01 +00:00
79a377ddf2 Final cleanup for the CFLAGS and LIBS in the Makefiles.
svn path=/trunk/; revision=15486
2002-01-27 17:21:36 +00:00
f5a654d71a Just use BONOBO_HTML_GNOME_CFLAGS and BONOBO_HTML_GNOME_LIBS for
* Makefile.am: Just use BONOBO_HTML_GNOME_CFLAGS and
BONOBO_HTML_GNOME_LIBS for compiling/linking; we don't need the
other ones.

svn path=/trunk/; revision=15458
2002-01-24 20:33:18 +00:00
4eb4ae3be8 [Implement an Outlook-style "New" dropdown button. It is basically
done but it needs pretty icons so I am leaving it disabled for now.]

* e-combo-button.c: Remove member `separator' from
`EComboButtonPrivate'.  New members `icon', `label'.
(init): There shall be no separator no more.  Init `icon' and
`label' to %NULL.
(e_combo_button_construct): Set no relief.
(e_combo_button_new): Don't get a @menu arg anymore.
(e_combo_button_construct): Likewise.
(e_combo_button_set_icon): New.
(e_combo_button_set_label): New.
(e_combo_button_set_menu): New.
(impl_clicked): New, overriding the "clicked" method for
GtkButton.
(class_init): Install.
(impl_button_release_event): Removed.
(class_init): No need to override ::release_event with this
anymore.
(impl_released): New, override for the GtkButton::released method.
(class_init): Install.

* e-shell-user-creatable-items-handler.c: New member `id' in
struct `Component'.  New member `icon' in struct `MenuItem'.
(component_free): Free ->id.
(component_new): Renamed from `component_new_from_client'.  Get an
@id arg and set ->id accordingly.
(e_shell_user_creatable_items_handler_add_component): New arg @id.
Pass it to `component_new'.
(e_shell_user_creatable_items_handler_setup_menus): New arg
@current_component_id.
(e_shell_user_creatable_items_handler_update_menus): New.
(set_current_component): New helper function.
(get_component_by_id): New helper function.
(add_verbs): Renamed from `add_verbs_to_ui_component()'.  Get a
@shell_view instead of a @ui_component.  Set the SHELL_VIEW_KEY on
the ui_component of the shell_view to point to the shell_view
itself.
(ensure_menu_items): Set item->icon to NULL.
(free_menu_items): Unref item->icon.
(ensure_menu_xml): Set the icon as well.
(get_default_action_for_view): New helper function.
(find_menu_item_for_verb): New helper function.
(shell_view_view_changed_callback): New callback, set up the label
on the "New" button depending on the current component.
(e_shell_user_creatable_items_handler_attach_menus): New.  For
now, do not display the toolbar button yet.
(execute_verb): New helper function, splitting out code from
`verb_fn'.
(verb_fn): Use `execute_verb'.
(combo_button_activate_default_callback): Callback for the
"activate_default" signal on the EComboButton.
(setup_toolbar_button): Connect.

* evolution-shell-component.c: New member `icon' in
`UserCreatableItemType'.
(impl__get_userCreatableItemTypes): Put the ->icon in the
corba_type as well.
(user_creatable_item_type_new): Get a new @icon argument.
(evolution_shell_component_add_user_creatable_item): New arg
@icon.

* Evolution-ShellComponent.idl: New member `icon' in struct
`UserCreatableItemType'.

* evolution-test-component.c (register_component): Pass a NULL
@icon to `evolution_shell_component_add_user_creatable_item()'.

* e-shell-view.c (class_init): Add the signal to the class.
(e_shell_view_display_uri): Emit "view_changed".
(e_shell_view_get_current_component_id): New.

* evolution-shell-component-client.c: New member `id' in
EvolutionShellComponentClientPrivate.
(init): Init to NULL.
(impl_destroy): Free.
(evolution_shell_component_client_new_for_objref): Removed.
(evolution_shell_component_client_construct): New arg @id.
Initialize ->id from it.
(evolution_shell_component_client_get_id): New.

* e-shell-view.h: New signal "view_changed".

* evolution-activity-client.c (create_icon_from_pixbuf): Removed.
(create_corba_animated_icon_from_pixbuf_array): Removed.
(evolution_activity_client_construct): Use
`e_new_corba_animated_icon_from_pixbuf_array()' instead.

svn path=/trunk/; revision=15438
2002-01-23 22:21:24 +00:00
f7468e0d26 [Patch by Michael Meeks <michael@ximian.com>.]
* e-splash.c (e_splash_set_icon_highlight): g_return if there is
no num-th icon.

svn path=/trunk/; revision=15433
2002-01-23 17:57:32 +00:00
fa21c59a5f Stop the importer dialog going behind the main window
svn path=/trunk/; revision=15413
2002-01-21 14:44:16 +00:00
33748a6445 [Fix #17441, Crash trying to import Multiple VCard file into LDAP
folder.]

* e-shell-importer.c (show_error): Add a NULL in the call to
`gnome_message_box_new()'.

svn path=/trunk/; revision=15333
2002-01-15 22:31:45 +00:00
885d0b6bd7 re-order activate / de-activate to minimise flicker switching between
2001-12-14  Michael Meeks  <michael@ximian.com>

	* e-shell-view.c (set_current_notebook_page): re-order
	activate / de-activate to minimise flicker switching between
	identical components.

svn path=/trunk/; revision=15316
2002-01-14 16:19:08 +00:00
ffe29891a4 updated
svn path=/trunk/; revision=15306
2002-01-12 00:31:48 +00:00
a33720dba7 -- Merging patches from evolution-1-0-branch.
* e-shell-about-box.c: Add Michael MacDonald.

[Fixes #17377, Evolution doesn't work on multi-depth displays.]

* main.c (main): Push GdkRGB visual and colormap.

[Fix #16693.  What happens there is that the user closed the
dialog before the async operation was completed, so when the
notification was received the shell crashed.]

* e-shell-folder-creation-dialog.c: New member
`creation_in_progress' in `DialogData'.
(e_shell_show_folder_creation_dialog): Init to %FALSE.
(async_create_cb): Set to %FALSE.  Also, if the
dialog_data->dialog is %NULL, free the dialog_data before
returning.
(dialog_clicked_cb): Set to %TRUE.
(dialog_destroy_cb): If a creation is in progress, just set the
widget pointers in the DialogData struct to %NULL instead of
freeing the whole struct.
(async_create_cb): Make the OK and Cancel buttons sensitive.
(dialog_clicked_cb): Make them insensitive here.

svn path=/trunk/; revision=15192
2001-12-20 06:05:51 +00:00
5b050b30a9 [Fix #17258, shell displays splash even if Evolution is already
running.]

* e-shell.c (e_shell_construct): Display the splash screen only if
the registration succeeds.

svn path=/trunk/; revision=15078
2001-12-14 18:51:06 +00:00
8a2afc3517 New helper function to create the `~/evolution/private' directory.
* e-setup.c (setup_bonobo_conf_private_directory): New helper
function to create the `~/evolution/private' directory.
(e_setup): Call it.

svn path=/trunk/; revision=15012
2001-12-13 00:45:09 +00:00
bf506d1aef Add missing comma.
svn path=/trunk/; revision=14898
2001-12-05 22:57:18 +00:00
225f981218 [Fix #7827, Switching desktops leaves the folder bar popped up.]
* e-shell-view.c (folder_bar_popup_map_callback): And grab the
keyboard as well.
(popdown_transient_folder_bar): Ungrab the keyboard as well.
(switch_on_folder_tree_click): Likewise.

[Fix #16507, Right Click -> View does nothing.]

* e-shell-view-menu.c: New verb "ActivateView".
(command_activate_view): New, callback for the "ActivateView"
verb.

svn path=/trunk/; revision=14897
2001-12-05 22:56:54 +00:00
b82997411c Convert folder name to locale's encoding before using it as part of the
2001-11-15  Zbigniew Chyla  <cyba@gnome.pl>

	* e-shell-folder-commands.c (e_shell_command_rename_folder): Convert
	folder name to locale's encoding before using it as part of the prompt.

svn path=/trunk/; revision=14849
2001-12-03 17:15:12 +00:00
8f5cd24b3e Fixes bug #3290.
2001-11-28  Federico Mena Quintero  <federico@ximian.com>

	Fixes bug #3290.

	* e-shell-folder-selection-dialog.c
	(e_shell_folder_selection_dialog_construct): Use our own filename
	for the collapsation state of the tree, instead of sharing the one
	of shell view number 0.
	(save_expanded_state): New function, saves the collapsation state
	of the tree.
	(impl_destroy): Call save_expanded_state().

2001-11-14  Ettore Perazzoli  <ettore@ximian.com>

svn path=/trunk/; revision=14820
2001-11-30 01:41:27 +00:00
dff44718d9 Add more contributors to the box.
* e-shell-about-box.c: Add more contributors to the box.

svn path=/trunk/; revision=14704
2001-11-14 21:06:52 +00:00
21a7225dbc make timezone default to "UTC" rather than "".
2001-11-14  Damon Chaplin  <damon@ximian.com>

	* e-shell-startup-wizard.c (finish_func): make timezone default to
	"UTC" rather than "".

svn path=/trunk/; revision=14700
2001-11-14 20:29:39 +00:00
8f9de35672 Check for exceptions.
Fix a memory leak

svn path=/trunk/; revision=14680
2001-11-13 01:10:49 +00:00
b45618e877 Get the storage name if we are dragging a storage instead of a folder.
* e-storage-set-view.c (set_e_shortcut_selection): Get the storage
name if we are dragging a storage instead of a folder.

svn path=/trunk/; revision=14604
2001-11-06 00:33:51 +00:00
2a716127b6 Fixed spacing and alignment probelms. (See bug #14281)
2001-11-05  Anna Marie Dirks  <anna@ximian.com>

	* e-shell-importer.c (prepare_intelligent_page): Fixed spacing and
	alignment probelms. (See bug #14281)

	* e-shell-startup-wizard.c (prepare_importer_page): Fixed
	spacing and alignment problems. (See bug #14281)

svn path=/trunk/; revision=14599
2001-11-05 23:15:30 +00:00
35eedfd6a1 Set the shortcut name to be the folder name, not just the last component
* e-storage-set-view.c (set_e_shortcut_selection): Set the
        shortcut name to be the folder name, not just the last component
        of its path, which may be different.

svn path=/trunk/; revision=14589
2001-11-05 18:38:22 +00:00
18fedea069 Fix for #14281 (missing icons in the druids).
svn path=/trunk/; revision=14576
2001-11-03 00:42:21 +00:00
e19db28c90 Changed the welcome message and the finishing message to be more
2001-11-01  Anna Marie Dirks  <anna@ximian.com>

	* glade/evolution-startup-wizard.glade: Changed the welcome
	message and the finishing message to be more descriptive. Also
	changed the window title to be "Evolution Setup Assistant". Finally,
	fixed a misnamed icon (replaced timezone.png with timezone-48.png).
	Partially fixes bug #14281 and totally fixes #14286.

svn path=/trunk/; revision=14567
2001-11-02 00:56:57 +00:00
49bad8cf37 Don't do operations on a NULL path. (updated_folder_cb,
2001-10-31  Christopher James Lahey  <clahey@ximian.com>

	* e-storage-set-view.c (cursor_activated): Don't do operations on
	a NULL path.
	(updated_folder_cb, folder_changed_cb): Send pre_change signal
	here.

svn path=/trunk/; revision=14558
2001-10-31 23:46:10 +00:00
895bbf9611 If the source folder is stock and the operation is GDK_ACTION_MOVE, always
* e-storage-set-view.c (handle_evolution_path_drag_motion): If the
source folder is stock and the operation is GDK_ACTION_MOVE,
always return %FALSE as we don't want that to be allowed ever.

svn path=/trunk/; revision=14543
2001-10-31 16:59:43 +00:00
641ac2a168 Removed. (show_existing_view): Don't call it.
* e-shell-view.c (bonobo_widget_is_dead): Removed.
(show_existing_view): Don't call it.

svn path=/trunk/; revision=14494
2001-10-30 22:48:22 +00:00
47843d5fe0 New utility function. (sleep_with_g_main_loop_timeout_callback): Callback
* e-component-registry.c (sleep_with_g_main_loop): New utility
function.
(sleep_with_g_main_loop_timeout_callback): Callback function for
`sleep_with_g_main_loop()'.
(wait_for_corba_object_to_die): Use `sleep_with_g_main_loop()'
instead of `sleep()'.

svn path=/trunk/; revision=14493
2001-10-30 22:29:08 +00:00
ac29afba0d Removed. (idle_cb): Don't call it. (warning_dialog_clicked_callback):
* main.c (development_warning): Removed.
(idle_cb): Don't call it.
(warning_dialog_clicked_callback): Removed.

svn path=/trunk/; revision=14490
2001-10-30 22:16:43 +00:00
43f8a506b6 If the display uri is NULL, set the view to the default.
2001-10-30  Iain Holmes  <iain@ximian.com>

	* e-shell-view.c (e_shell_view_load_settings): If the display uri is
	NULL, set the view to the default.

svn path=/trunk/; revision=14489
2001-10-30 22:15:05 +00:00
54ea765e75 Duplicate the owner before pinging it. Fixes #13802.
* evolution-shell-component.c (owner_ping_callback): Duplicate the
owner before pinging it.  Fixes #13802.

svn path=/trunk/; revision=14488
2001-10-30 22:11:08 +00:00
8ab23573e7 New. (class_init): Install it. (impl_unsetOwner): Just emit the
* evolution-shell-component.c (impl_owner_unset): New.
(class_init): Install it.
(impl_unsetOwner): Just emit the "owner_unset" signal as the
default implementation for that signal does all the work now.
(impl_owner_died): Set the owner_client to %NULL before unreffing
it.
(destroy): Likewise.
(impl_owner_unset): Likewise.

svn path=/trunk/; revision=14484
2001-10-30 21:57:15 +00:00
d42a48e07c Connect to the "removed_folder" signal with
* e-shell-view.c (e_shell_view_construct): Connect to the
"removed_folder" signal with gtk_signal_connect_while_alive() so
we don't crash if the view gets destroyed.  Fixes #13285.

svn path=/trunk/; revision=14478
2001-10-30 20:34:49 +00:00
0
31939ff347 If we're not at the end of the druid list, tell the druid we're going to
2001-10-30    <NotZed@Ximian.com>

        * e-shell-startup-wizard.c (next_func): If we're not at the end of
        the druid list, tell the druid we're going to change the page.
        (back_func): Same for going back a page.  This way we can properly
        synchronise with the druid object and not race with the wizard
        object to set the right page.  Part of fix for #12127.

svn path=/trunk/; revision=14450
2001-10-30 11:11:22 +00:00
2d8615531c Slightly change the debugigng message for when the shell has disappeared.
* evolution-shell-component.c (owner_ping_callback): Slightly
change the debugigng message for when the shell has disappeared.

svn path=/trunk/; revision=14413
2001-10-30 03:35:29 +00:00
b11817f3a8 Remove ping debugging messages.
* evolution-shell-component.c (owner_ping_callback): Remove
ping debugging messages.

svn path=/trunk/; revision=14408
2001-10-30 03:05:19 +00:00
17c21c849e Remove debugging message.
* e-shell.c (set_interactive): Remove debugging message.

svn path=/trunk/; revision=14403
2001-10-30 02:36:53 +00:00
a051510f6f use libical-evolution.la
2001-10-29  Damon Chaplin  <damon@ximian.com>

	* Makefile.am (evolution_LDADD): use libical-evolution.la

svn path=/trunk/; revision=14399
2001-10-30 01:50:37 +00:00
5054beec45 Ref the shell. (destroy): Unref the shell. (destroy): Free the
* e-shell-view.c (e_shell_view_construct): Ref the shell.
(destroy): Unref the shell.
(destroy): Free the delayed_selection.  No need to call
`cleanup_delayed_selection()' as the signal handler will have
already be disconnected at this point [as we are using
connect_while_alive()'].

svn path=/trunk/; revision=14325
2001-10-29 08:07:23 +00:00
fa6339027d Call `cleanup_delayed_selection()' as there is a slight chance that the
* e-shell-view.c (destroy): Call `cleanup_delayed_selection()' as
there is a slight chance that the callback gets invoked during the
cleanup phase.
(e_shell_view_display_uri): For extra safety, make sure we don't
get invoked on a dead object by connecting the "new_folder" signal
with `e_gtk_signal_connect_full_while_alive()' instead of using
plain `gtk_signal_connect_after()'.

svn path=/trunk/; revision=14320
2001-10-29 04:08:03 +00:00
815ed53e5a Don't do the `gtk_signal_disconnect_by_func()' as it's already done in
* e-shell-view.c (new_folder_cb): Don't do the
`gtk_signal_disconnect_by_func()' as it's already done in
`cleanup_delayed_selection()'.
(e_shell_view_construct): Set the ->shell member as the first
thing.
(set_current_notebook_page): Add a cast to make the compiler
happy.
(new_folder_cb): Don't set priv->uri before calling
`e_shell_view_display_uri()', because the latter does it anyways,
and also if you set it before calling it, the selection in the
folder tree doesn't get updated properly.

svn path=/trunk/; revision=14319
2001-10-29 03:32:26 +00:00
9
3b397a352f Set the return type of the signal handlers to GTK_TYPE_NONE.
2001-10-29    <NotZed@Ximian.com>

	* evolution-storage.c (class_init): Set the return type of the
	signal handlers to GTK_TYPE_NONE.

svn path=/trunk/; revision=14314
2001-10-29 01:57:47 +00:00
a2f5e5b0f4 [The following should fix #13802, crash on exit.]
* evolution-shell-component.c (impl_unsetOwner): Set the ping
timeout ID to -1 when removing the source.
(impl_destroy): Likewise.
(impl_unsetOwner): Remove the timeout before unreffing, not after
unreffing.

svn path=/trunk/; revision=14304
2001-10-28 22:30:59 +00:00
2fb3703a51 Distribute credit equally.
2001-10-28  Jon Trowbridge  <trow@ximian.com>

	* e-shell-about-box.c: Distribute credit equally.

svn path=/trunk/; revision=14280
2001-10-28 05:54:51 +00:00
7
128d15489f We want XFER_FOLDER not REMOVE_FOLDER!
2001-10-27    <NotZed@Ximian.com>

        * evolution-storage.c (impl_Storage_async_xfer_folder): We want
        XFER_FOLDER not REMOVE_FOLDER!

svn path=/trunk/; revision=14193
2001-10-27 01:35:45 +00:00
a590fb65bf Remove debugging messages. (finalize_offline_hash_foreach): Likewise.
* e-shell-offline-handler.c (prepare_for_offline): Remove
debugging messages.
(finalize_offline_hash_foreach): Likewise.

svn path=/trunk/; revision=14184
2001-10-26 23:42:48 +00:00
c944779866 New member finished' in EShellOfflineHandlerPrivate'.
* e-shell-offline-handler.c: New member `finished' in
`EShellOfflineHandlerPrivate'.
(finalize_offline): Ref the handler as we might get destroyed
while putting every component offline.
(impl_OfflineProgressListener_updateProgress): Don't emit
::offline_procedure_finished if ->finished is %TRUE.  Also, set it
to %TRUE after emitting the signal.
(cancel_offline): Likewise.
(finalize_offline): Likewise.
(update_dialog_clist): Guard against NULL ->dialog_gui.

svn path=/trunk/; revision=14182
2001-10-26 23:14:46 +00:00
a8dc6d1f7c Implement. (class_init): Add the signal "xfer_folder" signal.
* evolution-storage.c (impl_Storage_async_xfer_folder): Implement.
(class_init): Add the signal "xfer_folder" signal.

* evolution-storage.h: New signal "xfer_folder".

svn path=/trunk/; revision=14177
2001-10-26 22:41:11 +00:00
c26da3acf5 New, implementation for the ::async_xfer_folder method. (class_init):
* e-corba-storage.c
(async_xfer_folder): New, implementation for the
::async_xfer_folder method.
(class_init): Install it.

svn path=/trunk/; revision=14173
2001-10-26 21:51:43 +00:00
82a4a84c7a Set ->is_initialized to %FALSE. (e_shell_unregister_all): Same here.
* e-shell.c (destroy): Set ->is_initialized to %FALSE.
(e_shell_unregister_all): Same here.

svn path=/trunk/; revision=14170
2001-10-26 21:00:36 +00:00