aboutsummaryrefslogtreecommitdiffstats
path: root/shell
Commit message (Collapse)AuthorAgeFilesLines
* Purify run. All small leaks.Dan Winship2001-09-1010-22/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-folder-commands.c (folder_selection_dialog_folder_selected_callback): Free the folder_command_data when destroying the dialog. * e-local-storage.c (remove_folder): Free physical_uri if we allocated it. * e-shortcuts-view.c (pop_up_right_click_menu_for_group): Unref the popup menu, don't destroy it. (destroy_group_cb): Free the question string. (rename_group_cb): Free the new_name. * e-shell-importer.c (create_plugin_menu): Free the list of importers. (get_iid_for_filetype): Likewise. (import_druid_finish): #ifdef out some g_strdups that are only used by other #ifdef'ed-out code. * e-shell-view.c: Make sure the keys in the uri_to_view hash get freed. * e-shell-folder-title-bar.c (set_title_bar_label_style): Unref the style after setting it on the widget. * e-shell-offline-handler.c (impl_destroy): free priv. * e-storage-set-view.c (tree_drag_data_received): Make sure target_type always gets freed. * e-shell-folder-creation-dialog.c (add_folder_types): Don't leak the type names. svn path=/trunk/; revision=12715
* New designIain Holmes2001-09-082-73/+37
| | | | svn path=/trunk/; revision=12690
* Changed this to use the new ETable/ETree drag stuff.Christopher James Lahey2001-09-082-84/+18
| | | | | | | | | 2001-09-07 Christopher James Lahey <clahey@ximian.com> * e-storage-set-view.c (tree_start_drag): Changed this to use the new ETable/ETree drag stuff. svn path=/trunk/; revision=12686
* Remove the "see previous error messages?" comment from the error messageDan Winship2001-09-072-2/+9
| | | | | | | | | | * evolution-shell-component-client.c (evolution_shell_component_client_new): Remove the "see previous error messages?" comment from the error message when starting a component, since oafd eats the output of the components it launches now, so it's just misleading. svn path=/trunk/; revision=12673
* change to match create_folder. (e_marshal_NONE__POINTER_POINTER_POINTER):Chris Toshok2001-09-073-49/+52
| | | | | | | | | | | | | | | | | | | 2001-09-06 Chris Toshok <toshok@ximian.com> * evolution-storage.c (impl_Storage_async_remove_folder): change to match create_folder. (e_marshal_NONE__POINTER_POINTER_POINTER): new marshaller for remove_folder. (class_init): make sure to use the right marshaller for create/remove_folder. * evolution-storage.h: change the signature of both the create_folder and remove_folder signals to be more in line with what's in evolution-storage.c. They both take a Bonobo_Listener which the signal func notifies, instead of synchronously returning the result. svn path=/trunk/; revision=12667
* Allow a value of -1.0 for @progress [which means "unknown progress"].Ettore Perazzoli2001-09-072-1/+7
| | | | | | | | * evolution-activity-client.c (evolution_activity_client_update): Allow a value of -1.0 for @progress [which means "unknown progress"]. svn path=/trunk/; revision=12659
* [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-063-30/+23
| | | | | | | | | | | | | | the test component.] * GNOME_Evolution_TestComponent.oaf: Remove the factory. * evolution-test-component.c (COMPONENT_FACTORY_ID): Removed. (component_factory_init): Removed. (register_component): Rename from `component_fn'. No args, no return value. Register the thing on OAF by yourself instead of using a factory. svn path=/trunk/; revision=12639
* New. (get_efolder_from_shortcut): Removed. (impl_shortcut_dropped): UseEttore Perazzoli2001-09-062-13/+40
| | | | | | | | * e-shortcuts-view.c (get_shortcut_info): New. (get_efolder_from_shortcut): Removed. (impl_shortcut_dropped): Use `get_shortcut_info()' instead. svn path=/trunk/; revision=12628
* Replace "Evolution" with "Ximian Evolution" in a bunch of user-visibleEttore Perazzoli2001-09-065-15/+30
| | | | | | places. svn path=/trunk/; revision=12625
* [Fix #6474 and friends, crash when selecting things from theEttore Perazzoli2001-09-062-2/+29
| | | | | | | | | | | | | | | | | context activity context menu.] * e-activity-handler.c: New member `menu' in struct `ActivityInfo'. (activity_info_new): Init to NULL. (show_cancellation_popup): Set the `menu' member to point to this newly created pop-up, use `gnome_popup_menu_do_popup_modal()' instead of `gnome_popup_menu_do_popup()', and set the `menu' member to NULL when the menu is gone. (activity_info_free): Destroy `menu' member. (impl_requestDialog): Return `GNOME_Evolution_Activity_DIALOG_ACTION_ERROR' instead of nothing. svn path=/trunk/; revision=12624
* [Fix #6971, Default folder should be the Summary.]Ettore Perazzoli2001-09-056-7/+27
| | | | | | | | | | | | | | | | | | | | * main.c (idle_cb): s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/. * e-shell.c (e_shell_create_view): s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/. * e-shell-view.c (socket_destroy_cb): s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/. (e_shell_view_save_settings): Likewise. * e-shell-folder-commands.c (e_shell_command_delete_folder): s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/. * e-shell-view.h (DEFAULT_URI): Rename to `E_SHELL_VIEW_DEFAULT_URI'. Change from "evolution:/local/Inbox" to be "evolution:/summary". svn path=/trunk/; revision=12618
* [Fix ^#7675, Crashes trying to empty trash folder.]Ettore Perazzoli2001-09-052-5/+15
| | | | | | | | * e-shortcuts.c (e_shortcuts_construct): Use `gtk_signal_connect_while_alive()' so we don't invoke the callbacks on dead EShortcuts objects. svn path=/trunk/; revision=12612
* Report errors in the dialogIain Holmes2001-09-052-0/+6
| | | | svn path=/trunk/; revision=12611
* Just ignore the request if the activity handler has theEttore Perazzoli2001-09-052-0/+30
| | | | | | | | | | | | | * e-activity-handler.c (impl_operationProgressing): Just ignore the request if the activity handler has the GTK_OBJECT_DESTROYED() flag set. This should prevent crashes like #7542 and friends when the components are not well-behaved enough to respect the Bonobo refcounting. (impl_operationStarted): Likewise. (impl_operationFinished): Likewise. (impl_requestDialog): Likewise. svn path=/trunk/; revision=12609
* Check the file exists before trying to import itIain Holmes2001-09-052-0/+20
| | | | svn path=/trunk/; revision=12603
* Shut down other components correctly when cancelling the first time startup ↵Iain Holmes2001-09-052-1/+8
| | | | | | dialog svn path=/trunk/; revision=12600
* Remove debugging message. (tree_drag_motion): Likewise.Ettore Perazzoli2001-09-052-3/+6
| | | | | | | | * e-storage-set-view.c (tree_drag_motion): Remove debugging message. (tree_drag_motion): Likewise. svn path=/trunk/; revision=12598
* Add the root node to the hash. (e_storage_set_view_set_show_folders):Ettore Perazzoli2001-09-052-0/+11
| | | | | | | | * e-storage-set-view.c (e_storage_set_view_construct): Add the root node to the hash. (e_storage_set_view_set_show_folders): Likewise. svn path=/trunk/; revision=12594
* Remove the folder from the EvolutionStorage as well as the EStorage.Peter Williams2001-09-045-13/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-30 Peter Williams <peterw@ximian.com> * e-local-storage.c (async_xfer_folder_complete): Remove the folder from the EvolutionStorage as well as the EStorage. 2001-08-29 Peter Williams <peterw@ximian.com> * e-storage-set-view.c (etree_node_destroy_func): Only call remove_node_from_hash if it's not the root node. (removed_storage_cb): Don't remove the node from the hash here, because it will be removed in the node_destroyed callback. (removed_folder_cb): Same. * e-shell-view.c (e_shell_view_remove_control_for_uri): Disconnect from the destroy signal so as not to confuse ourselves. Also, the page remove in the notebook destroys the control and the socket, so don't do that explicitly. * e-shell-folder-commands.c (folder_selection_dialog_folder_selected_callback): Remove the control for the source view if we're moving. svn path=/trunk/; revision=12578
* Don't convert folder name to UTF-8 manually... (setup_stock_folders): ...Chyla Zbigniew2001-09-014-19/+33
| | | | | | | | | | | | | | | | * e-local-storage.c (setup_folder_as_stock): Don't convert folder name to UTF-8 manually... (setup_stock_folders): ... just use U_() here. (impl_get_display_name): Marked string for translation (with U_). * e-storage-set-view.c (storage_sort_callback): s/strcasecmp/g_utf8_collate/ (folder_sort_callback): ditto * e-summary-storage.c (impl_get_display_name): Marked string for translation (with U_). svn path=/trunk/; revision=12546
* Fix the Pine and Netscape importers. Give them a nice progress reporting GUI.Iain Holmes2001-08-313-33/+96
| | | | | | Revert Jason's changes so that creating a folder works again. svn path=/trunk/; revision=12536
* Check for \r in the folder name, this is an invalid char. Also take aJeffrey Stedfast2001-08-312-13/+33
| | | | | | | | | | | | 2001-08-30 Jeffrey Stedfast <fejj@ximian.com> * e-shell-folder-creation-dialog.c (entry_name_is_valid): Check for \r in the folder name, this is an invalid char. Also take a "reason" argument so we can inform the user why his folder name is invalid. (dialog_clicked_cb): Tell the user why the folder name is invalid. svn path=/trunk/; revision=12533
* Handle the case when there is no URI without crashing. Only add shortcutsEttore Perazzoli2001-08-292-6/+14
| | | | | | | | * e-shortcuts.c (load_shortcuts): Handle the case when there is no URI without crashing. Only add shortcuts when they are evolution: URIs. svn path=/trunk/; revision=12506
* Studlycapsize all the IDs that are not. Likewise. Updated accordingly.Ettore Perazzoli2001-08-2816-77/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Evolution-ShellComponent.idl: Studlycapsize all the IDs that are not. * Evolution-common.idl: Likewise. * evolution-activity-client.c: Updated accordingly. * evolution-shell-component.c: Likewise. * evolution-storage.c: Likewise. * e-activity-handler.c: Likewise. * e-component-registry.c: Likewise. * e-corba-storage.c: Likewise. * e-shell-user-creatable-items-handlers.c: Likewise. * e-local-storage.c (remove_folder): Remove unused variable. * e-shell-view.c (update_for_current_uri): Assign zero to `unread_count', not NULL. * e-shell-importer.c (import_druid_finish): Remove unused variable. * e-shell-user-creatable-items-handler.c: #include "e-corba-utils.h". * e-shell-startup-wizard.c: #include "e-shell-startup-wizard.h". * e-shell-startup-wizard.h: #include <glib.h> * e-summary-weather.c (weather_make_html): Make local variable `icon_name' const. Remove unused variable `uri'. * e-summary.h: Reformatted in GTK+ style. (e_summary_remove_online_connection): Added prototype. * e-summary-preferences.c (fill_mail_shown_clist): Constify local variable `name'. * e-summary-mail.c: #include "e-util/e-path.h". Updated to match the new studlyCapsification in shell/Evolution*.idl. * mail-local.c: Match the studlyCapsification of shell/Evolution*.idl. * mail-config-druid.h: Change type of `event_source' from `Bonobo_EventSource *' to `Bonobo_EventSource'. * mail-accounts.c (mail_delete): Remove unused local variable `label'. * folder-info.c (do_get_info): `#if 0' unused variables. * gui/component/addressbook-component.c: Get rid of a warning by initializing the closing NULL element in folder_types correctly. * gui/component/select-names/e-select-names.c: Updated to match the studlyCapsification of attributes in shell/Evolution*.idl. svn path=/trunk/; revision=12495
* Remove the stupid "do you want me to initialize stuff?" dialog.Ettore Perazzoli2001-08-252-27/+5
| | | | | | | * e-setup.c (copy_default_stuff): Remove the stupid "do you want me to initialize stuff?" dialog. svn path=/trunk/; revision=12465
* Change the `selected_row_path' to be non-const. (destroy): Free it.Ettore Perazzoli2001-08-252-5/+21
| | | | | | | | | | | | * e-storage-set-view.c: Change the `selected_row_path' to be non-const. (destroy): Free it. (e_storage_set_view_set_current_folder): Set the selected_row_path to be this path. (tree_drag_begin): Free the selected_row_path and strdup() the value we assign. svn path=/trunk/; revision=12463
* Ooops. Save the pointer to the control for use after the view struct isEttore Perazzoli2001-08-252-8/+15
| | | | | | | | * e-shell-view.c (e_shell_view_remove_control_for_uri): Ooops. Save the pointer to the control for use after the view struct is freed. svn path=/trunk/; revision=12458
* New struct `View'. Replace `uri_to_control' in `EShellViewPrivate' withEttore Perazzoli2001-08-252-59/+110
| | | | | | | | | | | | | | | | | | | | * e-shell-view.c: New struct `View'. Replace `uri_to_control' in `EShellViewPrivate' with `uri_to_view'. (view_new): New. (hash_forall_destroy_view): New, replacing `hash_forall_destroy_control'. (destroy): Updated to match the uri_to_control -> uri_to_view changes. (socket_destroy_cb): Likewise. (get_view_for_uri): Renamed from `get_control_for_uri'. Return a View instead of a GtkWidget. (show_existing_view): Updated to use `get_view_from_uri', get a @view instead of a @control. (e_shell_view_display_uri): Updated to use `uri_to_view' instead of `uri_to_control'. (e_shell_view_remove_control_for_uri): Likewise. svn path=/trunk/; revision=12457
* Changed to get a @title and a @type. (update_for_current_uri): UpdatedEttore Perazzoli2001-08-252-48/+55
| | | | | | | | | | * e-shell-view.c (update_folder_title_bar): Changed to get a @title and a @type. (update_for_current_uri): Updated accordingly. (update_window_icon): Get a @type instead of a @folder. (update_for_current_uri): Updated accordingly. svn path=/trunk/; revision=12452
* [Fix #5978, "If a component dies, it's toolbar buttons remain".]Ettore Perazzoli2001-08-252-6/+26
| | | | | | | | | * e-shell-view.c (socket_destroy_cb): If the view belongs to a toplevel storage node, get the right type information with `e_storage_get_toplevel_node_uri()' instead of trying to get the [non-existing] folder for it. svn path=/trunk/; revision=12451
* Implement the rest of the Evolution_Wizard eventsIain Holmes2001-08-252-2/+27
| | | | svn path=/trunk/; revision=12449
* Added accelerators for the right-click shortcut menu.Ettore Perazzoli2001-08-252-4/+9
| | | | | | | * e-shortcuts-view.c: Added accelerators for the right-click shortcut menu. svn path=/trunk/; revision=12448
* Added the missing part of my patch:Chyla Zbigniew2001-08-251-0/+1
| | | | | | #include <gal/widgets/e-unicode.h> svn path=/trunk/; revision=12447
* Convert names of the default group and shortcuts to UTF-8.Zbigniew Chyla2001-08-252-6/+25
| | | | | | | | | 2001-08-23 Zbigniew Chyla <cyba@gnome.pl> * e-shortcuts.c (e_shortcuts_add_default_group): Convert names of the default group and shortcuts to UTF-8. svn path=/trunk/; revision=12441
* Convert the name of the group to GTK+ locale before displaying it in aZbigniew Chyla2001-08-252-3/+11
| | | | | | | | | 2001-08-23 Zbigniew Chyla <cyba@gnome.pl> * e-shortcuts-view.c (destroy_group_cb): Convert the name of the group to GTK+ locale before displaying it in a dialog. svn path=/trunk/; revision=12439
* If we get no data, don't notify the receiving component at all.Ettore Perazzoli2001-08-242-0/+8
| | | | | | | * e-storage-set-view.c (tree_drag_data_received): If we get no data, don't notify the receiving component at all. svn path=/trunk/; revision=12423
* [Fix #5736, crashing when copying a message with drag and drop.]Ettore Perazzoli2001-08-242-2/+17
| | | | | | | * e-storage-set-view.c (tree_drag_data_received): Handle NULL data gracefully. svn path=/trunk/; revision=12422
* If the remove_source is %TRUE and destination is a descendant of theEttore Perazzoli2001-08-233-0/+22
| | | | | | | | | | | * e-storage.c (e_storage_async_xfer_folder): If the remove_source is %TRUE and destination is a descendant of the parent, pass an `E_STORAGE_CANTMOVETODESCENDANT' error code to the callback. * e-storage.h: New value `E_STORAGE_CANTMOVETODESCENDANT' in `EStorageResult'. svn path=/trunk/; revision=12397
* Actually return if the folder is being moved into one of its descendants.Ettore Perazzoli2001-08-232-0/+7
| | | | | | | | * e-shell-folder-commands.c (folder_selection_dialog_folder_selected_callback): Actually return if the folder is being moved into one of its descendants. svn path=/trunk/; revision=12395
* `#if 0'ed out. (make_bold): Likewise.Ettore Perazzoli2001-08-233-7/+19
| | | | | | | | | | | | * e-shell-folder-title-bar.c (label_realize_callback): `#if 0'ed out. (make_bold): Likewise. (e_shell_folder_title_bar_construct): Don't call it. * e-local-storage.c (component_async_remove_folder_callback): Only remove the directory if the component succeeds. svn path=/trunk/; revision=12392
* Fix the improper construction of the new folder's physical URI.Peter Williams2001-08-232-2/+10
| | | | | | | | | 2001-08-22 Peter Williams <peterw@ximian.com> * e-local-storage.c (async_xfer_folder_callback): Fix the improper construction of the new folder's physical URI. svn path=/trunk/; revision=12391
* Don't remove the folder directory here.Ettore Perazzoli2001-08-232-37/+44
| | | | | | | | * e-local-storage.c (remove_folder): Don't remove the folder directory here. (component_async_remove_folder_callback): Remove it here instead. svn path=/trunk/; revision=12390
* [Fix #7775, crash trying to do New Task]Ettore Perazzoli2001-08-232-2/+10
| | | | | | | | * e-shell-user-creatable-items-handler.c (verb_fn): Make sure we don't pass NULL strings to `GNOME_Evolution_ShellComponent_userCreateNewItem()'. svn path=/trunk/; revision=12388
* unref the rc_style.Damon Chaplin2001-08-222-0/+5
| | | | | | | | 2001-08-21 Damon Chaplin <damon@ximian.com> * e-gray-bar.c (endarken_style): unref the rc_style. svn path=/trunk/; revision=12373
* #include "e-shell-startup-wizard.h".Ettore Perazzoli2001-08-224-0/+37
| | | | | | | | * e-shell.c: #include "e-shell-startup-wizard.h". * e-shell-startup-wizard.h: New. svn path=/trunk/; revision=12359
* Add `sgmldocs.make' to `EXTRA_DIST'.Ettore Perazzoli2001-08-221-1/+17
| | | | | | * Makefile.am: Add `sgmldocs.make' to `EXTRA_DIST'. svn path=/trunk/; revision=12358
* Show an error dialog when the Evolution Mailer Wizard interface cannot be ↵Iain Holmes2001-08-222-1/+9
| | | | | | created svn path=/trunk/; revision=12354
* Fix a leak: unref the EFont after we have used it. Also, don't crash ifEttore Perazzoli2001-08-222-2/+12
| | | | | | | | | * e-shell-folder-title-bar.c (label_realize_callback): Fix a leak: unref the EFont after we have used it. Also, don't crash if `e_font_to_gdk_font()' returns NULL. [This should fix #7666, Folder View crashes Evo.] svn path=/trunk/; revision=12353
* Don't print a NULL. Crashes on SolarisIain Holmes2001-08-222-2/+6
| | | | svn path=/trunk/; revision=12349
* Do the import correctly.Iain Holmes2001-08-214-38/+94
| | | | svn path=/trunk/; revision=12327
* Don't set the paneds' positions if the respective left-hand elements [i.e.Ettore Perazzoli2001-08-212-2/+18
| | | | | | | | | | | * e-shell-view.c (e_shell_view_load_settings): Don't set the paneds' positions if the respective left-hand elements [i.e. the shortcut bar and the folder bar] are hidden. (e_shell_view_show_folder_bar): Set the paned position to zero when hiding. (e_shell_view_show_shortcut_bar): Likewise. svn path=/trunk/; revision=12321
* Don't free the returned displayname.Ettore Perazzoli2001-08-212-4/+7
| | | | | | | * e-shell-startup-wizard.c (finish_func): Don't free the returned displayname. svn path=/trunk/; revision=12318
* Make sure we display a pin when we are popped up.Ettore Perazzoli2001-08-202-0/+8
| | | | | | | * e-shell-view.c (pop_up_folder_bar): Make sure we display a pin when we are popped up. svn path=/trunk/; revision=12259
* Don't set the paned tree position.Ettore Perazzoli2001-08-202-1/+5
| | | | | | | * e-shell-view.c (setup_widgets): Don't set the paned tree position. svn path=/trunk/; revision=12250
* fill the corba sequence for the accepted_dnd_types.Chris Toshok2001-08-202-0/+7
| | | | | | | | | 2001-08-19 Chris Toshok <toshok@ximian.com> * evolution-shell-component.c (impl__get_supported_types): fill the corba sequence for the accepted_dnd_types. svn path=/trunk/; revision=12249
* Don't show the vbox here. (setup_widgets): Don't show theEttore Perazzoli2001-08-202-2/+8
| | | | | | | | * e-shell-view.c (setup_storage_set_subwindow): Don't show the vbox here. (setup_widgets): Don't show the storage_set_view_box here. svn path=/trunk/; revision=12246
* Added display_name and description to the type.Ettore Perazzoli2001-08-2011-32/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * evolution-test-component.c: Added display_name and description to the type. * evolution-shell-component.c (impl__get_supported_types): Pass `display_name' and `description' here. (evolution_shell_component_construct): Likewise. * evolution-shell-component.h: New members `display_name', `description' in `EvolutionShellComponentFolderType'. * e-component-registry.c (register_type): New args @description and @display_name. Pass to `e_folder_type_registry_register_type()'. (register_component): Pass the values returned in the sequence from __get_supported_types. * e-folder-type-registry.c: New members `display_name' and `description' in `struct _FolderType'. (folder_type_new): New args @description and @display_name. Initialize the respective fields in the `FolderType' accordingly. (folder_type_free): Free `display_name' and `description'. (register_folder_type): New args @display_name, @description. (e_folder_type_registry_register_type): New args @display_name, @description. (e_folder_type_registry_get_description_for_type): New. (e_folder_type_registry_get_display_name_for_type): New. * Evolution-ShellComponent.idl: Added `display_name' and `description' fields to the `FolderType' struct. svn path=/trunk/; revision=12245
* Put the bonobo_object_release_unref() for the db at the top in an attemptEttore Perazzoli2001-08-202-3/+10
| | | | | | | * e-shell.c (destroy): Put the bonobo_object_release_unref() for the db at the top in an attempt to fix #7542. svn path=/trunk/; revision=12238
* Change type of toplevel node from "Summary" to "summary". [All the otherEttore Perazzoli2001-08-203-1/+6
| | | | | | | | | | | * e-summary-storage.c (e_summary_storage_new): Change type of toplevel node from "Summary" to "summary". [All the other folder types use lowercase names.] * e-shortcuts.c (load_shortcuts): Also use the display name for the storage. svn path=/trunk/; revision=12234
* Also use the display name for the storage.Ettore Perazzoli2001-08-202-7/+18
| | | | | | | * e-shortcuts.c (load_shortcuts): Also use the display name for the storage. svn path=/trunk/; revision=12233
* Use xmlMemStrdup() to override the type as it's expected to be allocatedEttore Perazzoli2001-08-205-43/+97
| | | | | | | | | | | | | | | | | | | * e-shortcuts.c (load_shortcuts): Use xmlMemStrdup() to override the type as it's expected to be allocated by libxml later on. Also, get the icon for the storage if the shortcut points to a storage. * e-storage-set-view.c (etree_icon_at): Don't special case the Summary storage. Rather, use `e_storage_get_toplevel_node_type()' for getting the type of the node. * e-shortcuts-view-model.c (get_icon_for_item): New helper function. (shortcuts_update_shortcut_cb): Use it. (shortcuts_new_shortcut_cb): Use it. (load_group_into_model): Use it. svn path=/trunk/; revision=12232
* New constant `MIN_POPUP_TREE_WIDTH'. (pop_up_folder_bar): Make sure theEttore Perazzoli2001-08-192-2/+14
| | | | | | | | | | * e-shell-view.c: New constant `MIN_POPUP_TREE_WIDTH'. (pop_up_folder_bar): Make sure the pop-up is always this size or more. (setup_widgets): Pass %FALSE for @shrink to `e_paned_pack1()'. (reparent_storage_set_view_box_and_destroy_popup): Likewise. svn path=/trunk/; revision=12211
* New, replacing `shortcut_bar_mode_changed_cb'.Ettore Perazzoli2001-08-194-167/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view-menu.c (shortcut_bar_visibility_changed_cb): New, replacing `shortcut_bar_mode_changed_cb'. (folder_bar_visibility_changed_cb): New, replacing `folder_bar_mode_changed_cb'. (command_toggle_folder_bar): Use `e_shell_view_show_folder_bar()' instead of `e_shell_view_set_folder_bar_mode()'. (command_toggle_shortcut_bar): Use `e_shell_view_show_shortcut_bar()' instead of `e_shell_view_set_shortcut_bar_mode()'. (e_shell_view_menu_setup): Updated for the "shortcut_bar_visibility_changed" and "folder_bar_visibility_changed" signals and the above changes. * e-shell-view.c: New member `folder_bar_popup' in `EShellViewPrivate'. Replaced `folder_bar_mode' and `shortcut_bar_mode' with `folder_bar_shown' and `shortcut_bar_shown', respectively. (init): Updated to initialize these correctly. (reparent): New helper function. (reparent_storage_set_view_box_and_destroy_popup): New helper function. (popdown_transient_folder_bar): Updated to use the `folder_bar_popup'. (folder_bar_popup_map_callback): Renamed from `storage_set_view_box_map_cb'. (e_shell_view_set_shortcut_bar_mode): Removed. (e_shell_view_set_folder_bar_mode): Removed. (e_shell_view_show_shortcut_bar): New. All the calls to `e_shell_view_set_shortcut_bar_mode()' replaced with calls to this one. (e_shell_view_show_folder_bar): New. All the calls to `e_shell_view_set_folder_bar_mode()' replaced with calls to this one. (e_shell_view_folder_bar_shown): New. All the calls to `e_shell_view_get_folder_bar_mode()' replaced with calls to this one. (e_shell_view_shortcut_bar_shown): New. All the calls to `e_shell_view_get_shortcut_bar_mode()' replaced with calls to this one. (class_init): Replace signal `folder_bar_mode_changed' with `folder_bar_visibility_changed' and `shortcut_bar_mode_changed' with `shortcut_visibility_changed'. (e_shell_view_save_settings): Use keys "ShortcutBarShown" and "FolderBarShown" instead of "ShortcutBarMode" and "FolderBarMode", respectively. (e_shell_view_load_settings): Likewise. * e-shell-view.h: Removed enum `EShellViewSubwindowMode'. Renamed signal `shortcut_bar_mode_changed' to `shortcut_bar_visibility_changed' and `folder_bar_mode_changed' to `folder_bar_visibility_changed'. svn path=/trunk/; revision=12203
* Build fixIain Holmes2001-08-182-0/+5
| | | | svn path=/trunk/; revision=12176
* Add a warning for EttoreIain Holmes2001-08-181-0/+1
| | | | svn path=/trunk/; revision=12174
* Changelog I forgotIain Holmes2001-08-181-0/+5
| | | | svn path=/trunk/; revision=12173
* Compile fixesIain Holmes2001-08-183-3/+8
| | | | svn path=/trunk/; revision=12172
* g_return_if_fail(), not g_return_val_if_fail().Ettore Perazzoli2001-08-182-2/+8
| | | | | | | | * evolution-shell-client.c (evolution_shell_client_set_line_status): g_return_if_fail(), not g_return_val_if_fail(). svn path=/trunk/; revision=12167
* Added some g_warnings for when we return CORBA_OBJECT_NIL; this might helpEttore Perazzoli2001-08-182-3/+16
| | | | | | | | | | * evolution-shell-client.c (evolution_shell_client_get_local_storage): Added some g_warnings for when we return CORBA_OBJECT_NIL; this might help to figure out what is wrong with bug #6625. Also, added a missing CORBA_exception_free(). svn path=/trunk/; revision=12165
* tedfast <fejj@ximian.com>Jeffrey Stedfast2001-08-181-0/+2
| | | | | | | | tedfast <fejj@ximian.com> * e-shell.c (e_shell_construct): Don't destroy the splash twice. svn path=/trunk/; revision=12161
* Don't destroy the splash twice.Jeffrey Stedfast2001-08-181-29/+26
| | | | | | | | 2001-08-17 Jeffrey Stedfast <fejj@ximian.com> * e-shell.c (e_shell_construct): Don't destroy the splash twice. svn path=/trunk/; revision=12160
* utf_name should not be const as e_utf8_from_locale_string() returns anJeffrey Stedfast2001-08-182-3/+10
| | | | | | | | | | 2001-08-17 Jeffrey Stedfast <fejj@ximian.com> * e-local-storage.c (setup_folder_as_stock): utf_name should not be const as e_utf8_from_locale_string() returns an allocated buffer. svn path=/trunk/; revision=12158
* Startup assistant stuffIain Holmes2001-08-1711-6/+1656
| | | | svn path=/trunk/; revision=12145
* I know what you did last summer!Jason Leach2001-08-172-0/+3
| | | | | | | | 2001-08-16 Jason Leach <jleach@ximian.com> * AUTHORS: I know what you did last summer! svn path=/trunk/; revision=12140
* Desensitize the move/copy/delete/rename in the menus (including rightJason Leach2001-08-173-23/+38
| | | | | | | | | | | | | 2001-08-16 Jason Leach <jleach@ximian.com> * e-shell-view.c (folder_selected_cb): Desensitize the move/copy/delete/rename in the menus (including right click) for stock folders. * Evolution-Icon.idl: Actually remove this file from CVS (its contents are now in Evolution-common.idl). svn path=/trunk/; revision=12139
* Remove the Help menu verbs and add a "HelpFAQ" verb. (command_help):Ettore Perazzoli2001-08-172-12/+12
| | | | | | | | | * e-shell-view-menu.c: Remove the Help menu verbs and add a "HelpFAQ" verb. (command_help): Removed. (command_help_faq): New, implementation for the "HelpFAQ" verb. svn path=/trunk/; revision=12127
* New callback for the realize signal. (make_bold): New. Hooks up theEttore Perazzoli2001-08-172-1/+44
| | | | | | | | | | * e-shell-folder-title-bar.c (label_realize_callback): New callback for the realize signal. (make_bold): New. Hooks up the label_realize_callback. (e_shell_folder_title_bar_construct): Make the name of the folder bold using it. svn path=/trunk/; revision=12114
* Evil GTK+ hackery. Of course if GTK+ made things easier, I wouldn'tEttore Perazzoli2001-08-173-28/+36
| | | | | | | | | | | | have to do this. * e-gray-bar.c (endarken_style): Just hardcode the colors. * e-shell-folder-title-bar.c (set_title_bar_label_style): New. (e_shell_folder_title_bar_construct): Call it on the labels here, so we get nice white labels. svn path=/trunk/; revision=12110
* s/the view for `%s' have/the views for `%s' have/.Ettore Perazzoli2001-08-172-1/+6
| | | | | | | * e-shell.c (e_shell_component_maybe_crashed): s/the view for `%s' have/the views for `%s' have/. svn path=/trunk/; revision=12107
* Remove debugging message.Ettore Perazzoli2001-08-172-1/+5
| | | | | | * e-storage-set-view.c (etree_icon_at): Remove debugging message. svn path=/trunk/; revision=12104
* Don't hardcode/build a help URI here, use gnome_help_display() instead,Jason Leach2001-08-162-9/+15
| | | | | | | | | | | | | 2001-08-15 Jason Leach <jleach@ximian.com> * e-shell-view-menu.c (command_help): Don't hardcode/build a help URI here, use gnome_help_display() instead, which will figure out what language the user needs, etc. (help_verbs): Adapt these menu items to above changes, they don't need to pass "evolution/foo.html" to command_help, just "foo.html". svn path=/trunk/; revision=12072
* forgot to commit thisJacob Leach2001-08-161-3/+10
| | | | svn path=/trunk/; revision=12064
* Emit a "changed" signal at the end of this function. Bug #7232.Jason Leach2001-08-162-2/+7
| | | | | | | | | 2001-08-15 Jason Leach <jleach@ximian.com> * e-folder.c (e_folder_set_child_highlight): Emit a "changed" signal at the end of this function. Bug #7232. svn path=/trunk/; revision=12063
* Changed help menus to point to evolution/ and not evolution-guide/.Aaron Weber2001-08-162-5/+10
| | | | | | | | | 2001-08-15 Aaron Weber <aaron@ximian.com> * e-shell-view-menu.c (command_about_box): Changed help menus to point to evolution/ and not evolution-guide/. svn path=/trunk/; revision=12062
* s/My Evolution/Summary/Iain Holmes2001-08-163-5/+12
| | | | svn path=/trunk/; revision=12058
* Add a new IDL function, Evolution::Shell::setLineStatus (in boolean). BugJason Leach2001-08-164-3/+58
| | | | | | | | | | | | | | | | | 2001-08-15 Jason Leach <jleach@ximian.com> * Evolution-Shell.idl: Add a new IDL function, Evolution::Shell::setLineStatus (in boolean). Bug #3030. * e-shell.c (impl_Shell_setLineStatus): Implementation of the above. * evolution-shell-client.c (evolution_shell_client_set_line_status): A wrapper function for the above, this is what a component can call to set the shell on/offline. svn path=/trunk/; revision=12057
* Use the passed-in unread_count.Dan Winship2001-08-153-1/+10
| | | | | | | | | | * evolution-storage.c (evolution_storage_new_folder): Use the passed-in unread_count. * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): Pass the passed-in unread_count to e_storage_new_folder. svn path=/trunk/; revision=12018
* Add missing entry for `endarken_style()'.Ettore Perazzoli2001-08-141-0/+1
| | | | svn path=/trunk/; revision=11979
* Chain to the parent class.Ettore Perazzoli2001-08-142-7/+12
| | | | | | * e-gray-bar.c (impl_style_set): Chain to the parent class. svn path=/trunk/; revision=11977
* Changed the "Evolution has found the following data sources" text in theAnna Marie Dirks2001-08-142-2/+10
| | | | | | | | | | | 2001-08-13 Anna Marie Dirks <anna@ximian.com> * importer/intelligent.c : Changed the "Evolution has found the following data sources" text in the import dialog to "Evolution can import data from the following files" in an attempt to increase user-friendliness. svn path=/trunk/; revision=11976
* Revert the previous e-gray-bar patch as it was, um, wrong.Ettore Perazzoli2001-08-142-13/+19
| | | | svn path=/trunk/; revision=11974
* Add some little padding to the title bar so it looks nicer.Ettore Perazzoli2001-08-142-1/+6
| | | | | | | * e-shell-view.c (setup_widgets): Add some little padding to the title bar so it looks nicer. svn path=/trunk/; revision=11970
* Removed. (class_init): Don't override that method anymore.Ettore Perazzoli2001-08-142-19/+13
| | | | | | | | * e-gray-bar.c (impl_style_set): Removed. (class_init): Don't override that method anymore. (e_gray_bar_new): Call `endarken_style()' here instead. svn path=/trunk/; revision=11967
* [Fix #7109, Evolution crashes when the splash screen dialog isEttore Perazzoli2001-08-142-1/+11
| | | | | | | | | killed by clicking the "X" button.] * e-shell.c (e_shell_construct): Connect `gtk_widget_hide_on_delete()' correctly. svn path=/trunk/; revision=11962
* Changed all instances of "druid" and "wizard" to "assistant".Anna Marie Dirks2001-08-142-18/+22
| | | | | | | | 2001-08-13 Anna Marie Dirks <anna@ximian.com> * importer/import.glade : Changed all instances of "druid" and "wizard" to "assistant". svn path=/trunk/; revision=11958
* Replaced the chained `if' statements with a `switch' statement forEttore Perazzoli2001-08-142-19/+35
| | | | | | | | * main.c (idle_cb): Replaced the chained `if' statements with a `switch' statement for clarity. Also, don't ref the created shell, and release the object reference properly. svn path=/trunk/; revision=11956
* set_release on the sequence, not the buffer.Ettore Perazzoli2001-08-142-2/+4
| | | | | | | * e-corba-shortcuts.c (shortcut_list_to_corba): set_release on the sequence, not the buffer. svn path=/trunk/; revision=11955
* Restore the shell reffing/unreffing here.Ettore Perazzoli2001-08-142-2/+4
| | | | | | | * e-shell.c (view_destroy_cb): Restore the shell reffing/unreffing here. svn path=/trunk/; revision=11954
* Restore the shell reffing/unreffing here.Ettore Perazzoli2001-08-141-0/+5
| | | | | | | * e-shell.c (view_destroy_cb): Restore the shell reffing/unreffing here. svn path=/trunk/; revision=11953
* Don't cause an abort if the shortcut group is empty.Peter Williams2001-08-142-1/+7
| | | | | | | | | 2001-08-13 Peter Williams <peterw@ximian.com> * e-corba-shortcuts.c (shortcut_list_to_corba): Don't cause an abort if the shortcut group is empty. svn path=/trunk/; revision=11952
* Add `Evolution-common.idl'.Ettore Perazzoli2001-08-142-1/+6
| | | | | | * Makefile.am (IDLS): Add `Evolution-common.idl'. svn path=/trunk/; revision=11947
* Initialize priv->user_creatable_item_types. (Score: g_new: 0, g_new0: 2)Dan Winship2001-08-142-0/+6
| | | | | | | * evolution-shell-component.c (init): Initialize priv->user_creatable_item_types. (Score: g_new: 0, g_new0: 2) svn path=/trunk/; revision=11946
* Remove unused variable @folder.Jason Leach2001-08-143-3/+15
| | | | | | | | | | | | | 2001-08-13 Jason Leach <jleach@ximian.com> * e-local-storage.c (remove_folder_directory): Remove unused variable @folder. * e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar): Give icons to shortcuts added via Right-click->Add to Shortcut Bar. svn path=/trunk/; revision=11944
* Grab focus on the storage set view.Ettore Perazzoli2001-08-132-1/+9
| | | | | | | | * e-shell-folder-selection-dialog.c (e_shell_folder_selection_dialog_construct): Grab focus on the storage set view. svn path=/trunk/; revision=11937
* Use utf 8 to set the name.Ettore Perazzoli2001-08-132-1/+10
| | | | | | | * e-local-storage.c (setup_folder_as_stock): Use utf 8 to set the name. svn path=/trunk/; revision=11936
* Remove debugging message.Ettore Perazzoli2001-08-122-2/+4
| | | | | | * e-storage-set-view.c (etree_value_at): Remove debugging message. svn path=/trunk/; revision=11934
* *** empty log message ***Ettore Perazzoli2001-08-121-3/+3
| | | | svn path=/trunk/; revision=11933
* Put the folder title bar into an EGrayBar.Ettore Perazzoli2001-08-125-4/+201
| | | | | | | | | | * e-shell-view.c (setup_widgets): Put the folder title bar into an EGrayBar. * e-gray-bar.c: New. * e-gray-bar.h: New. svn path=/trunk/; revision=11932
* [Finally! Fix #413, "Support for stock folders", and #786, "i18n:Ettore Perazzoli2001-08-1214-18/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | default folder names are not translated".] * e-local-storage.c (setup_folder_as_stock): New helper function. (setup_stock_folders): Use it to set the default folders as "stock" folders. This will give them a translated name and also make them unmodifiable. (load_all_folders): Call `setup_stock_folders()' here. * e-shell-folder-commands.c (delete_cb): Display an error dialog if the deletion fails. (e_shell_command_delete_folder): Pass the shell view to the delete callback. * e-storage.c (e_storage_result_to_string): Add a string for `E_STORAGE_CANTCHANGESTOCKFOLDER' as well. * e-local-storage.c (remove_folder): Don't allow a stock folder to be removed. (impl_async_xfer_folder): Don't allow a stock folder to be moved. * e-corba-storage.c (async_remove_folder): Don't allow a stock folder to be removed. * e-storage.h: New enum value `E_STORAGE_CANTCHANGESTOCKFOLDER' in `EStorageResult'. * e-folder.c: Make member `self_highlight' a :1 int. New :1 int member `is_stock'. (init): Init `is_stock' to %FALSE. (e_folder_set_is_stock): New. (e_folder_get_is_stock): New. * e-local-storage.c (bonobo_interface_update_folder_cb): For now, don't set the display name. svn path=/trunk/; revision=11931
* `#if 0'ed out. (rename_cb): Likewise.Ettore Perazzoli2001-08-103-2/+15
| | | | | | | | | | * e-shell-folder-commands.c (rename_clicked): `#if 0'ed out. (rename_cb): Likewise. * evolution-shell-component.c (destroy): Fixed a confusion between GList and GSList. svn path=/trunk/; revision=11876
* Only free the `type_list' if not NULL. (setup_menu_xml): Deal with theEttore Perazzoli2001-08-102-16/+35
| | | | | | | | | | | * e-shell-user-creatable-items-handler.c (component_free): Only free the `type_list' if not NULL. (setup_menu_xml): Deal with the case of `type_list' being NULL gracefully. (verb_fn): Same here. (add_verbs_to_ui_component): Likewise. svn path=/trunk/; revision=11873
* [Fix #6787, Removing a storage with children and then re-adding itEttore Perazzoli2001-08-102-23/+27
| | | | | | | | | | | | causes a crash.] * e-storage-set-view.c (convert_corba_drag_action_set_to_gdk): Removed `#if 0'ed function. (etree_node_destroy_func): New destroy function. (e_storage_set_view_construct): Set this as the new destroy function on the ETreeMemory. svn path=/trunk/; revision=11869
* Updated to display the parent folder's URI and its type as well.Ettore Perazzoli2001-08-109-20/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * evolution-test-component.c (user_create_new_item_callback): Updated to display the parent folder's URI and its type as well. * evolution-shell-component.c (impl_userCreateNewItem): Updated to get the @parent_folder_physical_uri and the @parent_folder_type. (class_init): Update the "user_create_new_item" signal to have @parent_folder_physical_uri and @parent_folder_type args. * e-shell-view.c (get_type_for_folder): Don't bork on a NULL @physical_uri_return. (e_shell_view_get_current_physical_uri): New. (e_shell_view_get_current_folder_type): New. * e-shell-user-creatable-items-handler.c (e_shell_user_creatable_items_handler_setup_menus): Replace @ui_component arg with a @shell_view arg. Set it on the UIComponent using gtk_object_set_data(). (verb_fn): Pass the type and physical URI of the current folder; retrieve that from the shell_view got with gtk_object_get_data(). * Evolution-ShellComponent.idl (userCreateNewItem): New args @parent_folder_uri, @parent_folder_type. svn path=/trunk/; revision=11863
* Cast the toplevel to be passed to `e_request_string()' to GtkWindow, notEttore Perazzoli2001-08-103-32/+14
| | | | | | | | | | | | | * e-shortcuts-view.c (show_new_group_dialog): Cast the toplevel to be passed to `e_request_string()' to GtkWindow, not GtkWidget. Also, remove unused variables. (get_efolder_from_shortcut): Constify @item_url. (get_storage_set_path_from_uri): Removed. * evolution-shell-component.c (destroy): `p' shall be a GList, not a GSList. svn path=/trunk/; revision=11857
* Add the menu items using the EShellUserCreatableItemsHandler.Ettore Perazzoli2001-08-1012-38/+804
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view.c (e_shell_view_construct): Add the menu items using the EShellUserCreatableItemsHandler. * e-shell-user-creatable-items-handler.c: New. * e-shell-user-creatable-items-handler.h: New. * e-shell.c: New member `user_creatable_items_handler' in `EShellPrivate'. (init): Initialize to NULL. (destroy): Unref. (e_shell_construct): Create here. (e_shell_get_user_creatable_items_handler): New accessor. (setup_components): Add the registered components to the user_creatable_items_handler. * evolution-test-component.c (factory_fn): Add a couple sample user-creatable items. (user_create_new_item_callback): New callback for the "user_create_new_item" signal on the EvolutionShellComponent. (factory_fn): Connect. * e-shell.c (e_shell_get_component_registry): New. * evolution-shell-component.c: New enum value `USER_CREATE_NEW_ITEM'. New member `user_create_item_types' in `_EvolutionShellComponentPrivate'. (init): Init to NULL. (impl_destroy): Free it. (user_creatable_item_type_free): New helper function. (user_creatable_item_type_new): New helper function. (impl_userCreateNewItem): New, implementation for ::userCreateNewItem. (class_init): Install the "user_create_new_item" signal and the userCreateNewItem impl. (impl__get_external_uri_schemas): Renamed from `impl_ShellComponent__get_external_uri_schemas'. (impl___get_supported_types): Renamed from `impl_ShellComponent__get_supported_types'. (impl__get_user_creatable_item_types): New, implementation for the `user_creatable_item_types' attribute. (class_init): Install it. (evolution_shell_component_add_user_creatable_item): New. * evolution-shell-component.h: Added signal `user_create_new_item'. * Evolution-ShellComponent.idl: Added typedefs `UserCreatableItemType', `UserCreatableItemTypeList'. New attribute `user_creatable_item_types'. (userCreateNewItem): New. svn path=/trunk/; revision=11849
* Chain to the destroy handler in the parent class!Federico Mena Quintero2001-08-093-0/+13
| | | | | | | | | | | 2001-08-09 Federico Mena Quintero <federico@ximian.com> * e-component-registry.c (destroy): Chain to the destroy handler in the parent class! * e-shortcuts-view-model.c (impl_destroy): Likewise. Sigh. svn path=/trunk/; revision=11818
* [Fixes, among other things, #5705, "Ampersands not handledEttore Perazzoli2001-08-083-3/+16
| | | | | | | | | | | | | correctly in drag + drop". Thanks to Nat for actually discovering the problem.] * e-shortcuts.c (save_shortcuts): Use `xmlNewTextChild()' instead of `xmlNewChild()'. * e-local-folder.c (save_metadata): Use `xmlNewTextChild' instead of `xmlNewChild()'. svn path=/trunk/; revision=11783
* Set the release flag on the sequence, and CORBA_string_dup() the stringsEttore Perazzoli2001-08-082-4/+9
| | | | | | | | | * evolution-shell-component.c (fill_corba_sequence_from_null_terminated_string_array): Set the release flag on the sequence, and CORBA_string_dup() the strings anyway. svn path=/trunk/; revision=11781
* Set the release flag on the returned folder type list too.Ettore Perazzoli2001-08-083-1/+12
| | | | | | | | | | | * evolution-shell-component.c (impl_ShellComponent__get_supported_types): Set the release flag on the returned folder type list too. * evolution-activity-client.c (create_icon_from_pixbuf): Set the release flag on the sequence, not the struct that contains it. svn path=/trunk/; revision=11779
* Set the release flag for the newly allocated sequence.Ettore Perazzoli2001-08-084-0/+16
| | | | | | | | | | | | * e-corba-shortcuts.c (shortcut_list_to_corba): Set the release flag for the newly allocated sequence. * e-activity-handler.c (impl_operationStarted): Unref the icon_pixbuf. * e-task-widget.c (impl_destroy): g_free the private struct. svn path=/trunk/; revision=11778
* clarify last entryJacob Leach2001-08-081-2/+2
| | | | svn path=/trunk/; revision=11776
* Set the icon for the folder tree correctly.Jason Leach2001-08-082-1/+6
| | | | | | | | | 2001-08-08 Jason Leach <jleach@ximian.com> * e-storage-set-view.c (etree_icon_at): Set the icon for the folder tree correctly. svn path=/trunk/; revision=11775
* Fill the CORBA sequence once.Ettore Perazzoli2001-08-083-2/+9
| | | | | | | | | | * evolution-shell-component.c (impl_ShellComponent__get_supported_types): Fill the CORBA sequence once. * e-activity-handler.c (activity_info_free): Unref the icon. svn path=/trunk/; revision=11773
* Sigh. If the function says "prepend", of course the function to call isEttore Perazzoli2001-08-082-1/+7
| | | | | | | | * e-task-bar.c (e_task_bar_prepend_task): Sigh. If the function says "prepend", of course the function to call is `g_list_prepend()', not `g_list_append()'. You dumbass. svn path=/trunk/; revision=11771
* Small stylistical/aesthetical fix.Ettore Perazzoli2001-08-081-2/+2
| | | | svn path=/trunk/; revision=11770
* Set the sensitivity for the OK button when a storage is selected too. BugJason Leach2001-08-082-0/+21
| | | | | | | | | | 2001-08-08 Jason Leach <jleach@ximian.com> * e-shell-folder-creation-dialog.c (storage_set_view_storage_selected_cb): Set the sensitivity for the OK button when a storage is selected too. Bug #6473. svn path=/trunk/; revision=11765
* Set the release flag on the returned icon to %TRUE.Ettore Perazzoli2001-08-082-0/+7
| | | | | | | * evolution-activity-client.c (create_icon_from_pixbuf): Set the release flag on the returned icon to %TRUE. svn path=/trunk/; revision=11764
* If the shortcut points to some folder in the storage set, get the typeEttore Perazzoli2001-08-083-3/+65
| | | | | | | | | | | | | | | * e-shortcuts.c (load_shortcuts): If the shortcut points to some folder in the storage set, get the type from it. * e-storage-set.c (signal_new_folder_for_all_folders_under_paths): New helper function. (signal_new_folder_for_all_folders_in_storage): New helper function. (e_storage_set_add_storage): Call the latter to emit a "new_folder" signal for all the folders contained in the newly added storage. svn path=/trunk/; revision=11750
* [This should fix #5407, application crash on re-opening.]Ettore Perazzoli2001-08-083-8/+17
| | | | | | | | | | | | * e-shell.c (e_shell_construct): Call `gtk_widget_hide_on_delete()' on the splash. * e-splash.c (e_splash_add_icon): Don't check for destruction here. (e_splash_set_icon_highlight): Not even here. (button_press_event): Use a GTK+ cast. svn path=/trunk/; revision=11743
* [Updated the shortcuts view implementation to set the icons on aEttore Perazzoli2001-08-083-43/+37
| | | | | | | | | | | | | | | per-shortcut basis (instead of a per-URL basis) according to the changes in the EShortcutBar API.] * e-shortcuts-view-model.c (load_group_into_model): Get the icon from the folder type registry. (shortcuts_new_shortcut_cb): Likewise. (shortcuts_update_shortcut_cb): Likewise. * e-shortcuts-view.c (icon_callback): Removed. (e_shortcuts_view_construct): Don't set the icon callback anymore. svn path=/trunk/; revision=11741
* Don't use a leaky hash to get folder names with unread count, useJason Leach2001-08-082-32/+27
| | | | | | | | | | | | | 2001-08-07 Jason Leach <jleach@ximian.com> * e-storage-set-view.c (etree_value_at): Don't use a leaky hash to get folder names with unread count, use gtk_object_set_data_full and gtk_object_get_data on the EFolder. (etree_icon_at): Give the "My Evolution" storage an icon through a non-generic way. Will be replaced by a generic method when other storages get icons too. svn path=/trunk/; revision=11735
* Free the CORBA version of the animated icon.Ettore Perazzoli2001-08-082-1/+13
| | | | | | | | * evolution-activity-client.c (evolution_activity_client_construct): Free the CORBA version of the animated icon. svn path=/trunk/; revision=11731
* Unref the listener when done.Not Zed2001-08-072-0/+8
| | | | | | | | | 2001-08-07 Not Zed <NotZed@Ximian.com> * evolution-activity-client.c (impl_destroy): Unref the listener when done. svn path=/trunk/; revision=11725
* Remove member `hbox' from `struct _EShellFolderTitleBarPrivate'.Ettore Perazzoli2001-08-073-163/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-folder-title-bar.c: Remove member `hbox' from `struct _EShellFolderTitleBarPrivate'. (make_icon_pixmap): Removed. (rgb_from_gdk_color): Removed. (endarken_style): Removed. (set_style_cb): Removed. (create_arrow_pixmap): Renamed from `create_icon_pixmap'. (get_max_clipped_label_width): New helper function. (size_allocate_icon): New helper function. (size_allocate_button): New helper function. (size_allocate_label): New helper function. (add_icon_widget): New helper function. (realize): Changed to use `add_icon_widget()'. (size_allocate): New function, handler for the ::size_allocate method. (class_init): Install it. (e_shell_folder_title_bar_construct): Changed so that the widget get added to this widget instead of adding an hbox to it and adding the widgets to the hbox. (e_shell_folder_title_bar_set_icon): Changed to use `add_icon_widget()'. * e-shell-folder-title-bar.h, e-shell-folder-title-bar.c: Changed to derive from GtkHBox, not GtkEventBox. svn path=/trunk/; revision=11718
* Turn on highlighting on a row by row basis.Christopher James Lahey2001-08-072-0/+20
| | | | | | | | | 2001-08-06 Christopher James Lahey <clahey@ximian.com> * e-storage-set-view.c (tree_drag_motion): Turn on highlighting on a row by row basis. svn path=/trunk/; revision=11715
* Add some padding to the label so that the title doesn't move around whenEttore Perazzoli2001-08-0515-94/+734
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-folder-title-bar.c (e_shell_folder_title_bar_construct): Add some padding to the label so that the title doesn't move around when you switch between pop-up and non-pop-up folder bar. Also, change all the GtkLabels to be GtkClippedLabels instead. (e_shell_folder_title_bar_set_title): Updated to use EClippedLabels instead of GtkLabels. (e_shell_folder_title_bar_set_folder_bar_label): Likewise. * e-shell.c (impl_Shell__get_displayName): New, implementation for the `displayName' attribute. * Evolution-Shell.idl: Added readonly attribute `displayName' to get the canonicalized X11 display name for the shell. * e-shell.c (e_shell_construct): Ooops. Return `E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER' if the OAF registration fails, not `E_SHELL_CONSTRUCT_RESULT_GENERICERROR'. * e-shortcuts-view.c (rename_group_cb): Get the toplevel from the shortcuts view, not the widget. (rename_shortcut_cb): Likewise. (show_new_group_dialog): Changed to use `e_request_string()'. * evolution-test-component.c: Add the %FALSE value for the `user_creatable' field in the `folder_types' entry. * evolution-shell-client.c: New member `shortcuts_interface' in `EvolutionShellClientPrivate'. (destroy): Unref it if not CORBA_OBJECT_NIL. (init): Init to CORBA_OBJECT_NIL. (query_shell_interface): New helper function to query an interface on the shell and spit out warnings if it fails. (evolution_shell_client_construct): Use it to query the ::Activity interface. Also query the ::Shortcuts interface and set the `shortcuts_interface' member to point to it. * e-shell.c: New member `corba_shortcuts' in `EShellPrivate'. (init): Init to NULL. (setup_shortcuts_interface): Helper function to add the ::Shortcuts CORBA interface to the shell. (e_shell_construct): Call it. * e-corba-shortcuts.c, e-corba-shortcuts.h: New objects implementing the `Evolution::Shortcuts' CORBA interface. * Evolution-Shortcuts.idl: New interface for accessing the shortcuts in the shell. * e-shell.c (e_shell_get_config_db): Moved down. svn path=/trunk/; revision=11689
* Some paths here don't set handled properly so lets initialize it to FALSE.Christopher James Lahey2001-08-042-6/+15
| | | | | | | | | | | | 2001-08-03 Christopher James Lahey <clahey@ximian.com> * e-storage-set-view.c (tree_drag_data_received): Some paths here don't set handled properly so lets initialize it to FALSE. (update_folder_with_unread_hash, etree_value_at): constified folder_name here. (init): Initialize priv->drag_path here to NULL. svn path=/trunk/; revision=11648
* yeah, and that last fix to :-)Jacob Leach2001-08-041-3/+3
| | | | svn path=/trunk/; revision=11640
* oops, should have tested that warning fix.Jacob Leach2001-08-041-1/+1
| | | | svn path=/trunk/; revision=11639
* warning fix.Jacob Leach2001-08-041-1/+0
| | | | svn path=/trunk/; revision=11638
* build fixJacob Leach2001-08-041-0/+2
| | | | svn path=/trunk/; revision=11637
* [Removing Evolution::LocalStorage interface, abstracting the unread countsJason Leach2001-08-0431-493/+560
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-03 Jason Leach <jleach@ximian.com> [Removing Evolution::LocalStorage interface, abstracting the unread counts from a folder's name, also abstract unread counts from a shortcut's name. Fixes #4489 and #5497] * e-shortcuts.c (shortcut_item_new): Take an unread_count argument now. (shortcut_item_update): Ditto. * e-shortcuts-view-model.c (get_name_with_unread): Get a string containing a shortcut name and it's unread, because these are abstracted now. (load_group_into_model): Use the above function to make shortcuts that have unread counts. * e-storage-set-view.c (update_folder_with_unread_hash): Keep a hash of folder names with unread counts, because the folder name and it's unread count are to be separated, only the ETree is supposed to present it as one string. * e-shell-view.c: Renamed EShellView::view_title_bar to folder_title_bar, to closer match the * e-shell-view-menu.c (new_shortcut_dialog_folder_selected_cb): Make a shortcut with the unread count. * e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar): Make a shortcut with the unread count. * e-local-storage.c: Updated for API changes. * e-folder.c (e_folder_get_unread_count): New function, does what it says. (e_folder_set_unread_count): Ditto. * e-corba-storage.c (impl_StorageListener_new_folder): Renamed to match the IDL function name. (impl_StorageListener_update_folder): Ditto. (impl_StorageListener_removed_folder): Ditto. * Evolution-Storage.idl (struct Folder): Replace the boolean highlighted with a long unread_count. (updateFolder): Brought in from the now dead Evolution::LocalStorage. * Evolution-Shell.idl (getLocalStorage): Return a Storage instead of a LocalStorage. * Evolution-LocalStorage.idl: Removed, no longer needed, only used function, updateFolder, has been moved into Evolution::Storage interface. * evolution-local-storage.[ch]: Ditto. * evolution-storage.c (impl_Storage_updateFolder): Implementation of the updateFolder taken from ::LocalStorage. (class_init): New "update_folder" signal, taken from evolution-local-storage.c too. (evolution_storage_update_folder): Take an @unread_count int instead of a @highlighted boolean. (evolution_storage_new_folder): Same for here. (evolution_storage_update_folder_by_uri): And here. * evolution-storage-listener.h: "update_folder" signal no longer sends a @highlighted boolean. 2001-08-03 Jason Leach <jleach@ximian.com> * e-shell-view-menu.c (update_offline_menu_item): Use Jakub's new "Work Online" icon and fix a typo. svn path=/trunk/; revision=11633
* [Fix #6232, the thirty-four-splash-screens-at-startup bug.]Ettore Perazzoli2001-08-035-37/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell.c (setup_local_storage): Add an E_STORAGE() cast to prevent a warning. * main.c (idle_cb): Only try to activate from the shell ID if the result is `E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER'; if there is a different error, spit out a dialog box with a description of it and exit instead. * e-shell.c (e_shell_construct): Return an `EShellConstructResult' describing what kind of result we had. Show the splash after the DB has been reached, not before. (e_shell_construct_result_to_string): New function to get a descriptive string out of an `EShellConstructResult'. (e_shell_new): New arg @construct_result_return to return a description of the result of the operation. * e-shell.h: New enum `EShellConstructResult'. * e-shell.c (impl_Shell_createNewView): Raise `InternalError' instead of crashing if the shell_view returns a CORBA_OBJECT_NIL. * Evolution-Shell.idl: New exception `InternalError'. `createNewView' and `handleURI' can raise it. svn path=/trunk/; revision=11611
* Make "My Evolution" a normal storage instead of being the toplevelEttore Perazzoli2001-08-038-79/+285
| | | | | | node that contains everything else. svn path=/trunk/; revision=11610
* Call `gtk_drag_finish()' here.Ettore Perazzoli2001-08-032-3/+13
| | | | | | | * e-storage-set-view.c (tree_drag_data_received): Call `gtk_drag_finish()' here. svn path=/trunk/; revision=11608
* Actually __fini the servant and deactivate the object too.Ettore Perazzoli2001-08-032-8/+20
| | | | | | | | | * e-shell-offline-handler.c (progress_listener_servant_free): Actually __fini the servant and deactivate the object too. (component_info_free): Updated accordingly [i.e. don't do the deactivation stuff here]. svn path=/trunk/; revision=11607
* [Fixes #4663, startup crash.]Ettore Perazzoli2001-08-032-0/+16
| | | | | | | | * e-shell.c (e_shell_construct): Make sure the pointer to the db object is CORBA_OBJECT_NIL if `bonobo_get_object()' raises an exception. svn path=/trunk/; revision=11606
* Also call `PortableServer_POA_deactivate_object()' on the progressEttore Perazzoli2001-08-032-1/+12
| | | | | | | | * e-shell-offline-handler.c (component_info_free): Also call `PortableServer_POA_deactivate_object()' on the progress listener object so it gets deactivated. svn path=/trunk/; revision=11605
* Spit out a warning if we cannot resolve "Bonobo/ConfigDatabase" onEttore Perazzoli2001-08-032-6/+18
| | | | | | | | * e-shell.c (e_shell_construct): Spit out a warning if we cannot resolve "Bonobo/ConfigDatabase" on "wombat:". Also, register on OAF only after we are sure we are not going to return FALSE. svn path=/trunk/; revision=11603
* Set the `set_folder_uri' to NULL when freeing it.Ettore Perazzoli2001-08-033-2/+11
| | | | | | | | | | * e-shell-view.c (switch_on_folder_tree_click): Set the `set_folder_uri' to NULL when freeing it. * e-task-bar.c (e_task_bar_remove_task): Just destroy the widget. No need to `gtk_container_remove()' it. svn path=/trunk/; revision=11597
* Do a NULL-check on current_uri - socket is being closed? (as per theJeffrey Stedfast2001-08-022-4/+10
| | | | | | | | | | 2001-08-01 Jeffrey Stedfast <fejj@ximian.com> * e-shell-view-menu.c (command_new_folder): Do a NULL-check on current_uri - socket is being closed? (as per the comments for the NULL-check in e-shell-view.c:socket_destroy_cb). svn path=/trunk/; revision=11557
* Removed debugging messages.Ettore Perazzoli2001-07-311-0/+4
| | | | | | * evolution-activity-client.c: Removed debugging messages. svn path=/trunk/; revision=11501
* Added some comments about the possible race condition issues with theEttore Perazzoli2001-07-311-26/+9
| | | | | | | invocation of the CORBA call in `evolution_activity_client_update()' and killed some debugging messages. svn path=/trunk/; revision=11500
* Also update have_pending_update before calling corba, as below.Not Zed2001-07-312-2/+6
| | | | | | | | | 2001-07-31 Not Zed <NotZed@Ximian.com> * evolution-activity-client.c (evolution_activity_client_update): Also update have_pending_update before calling corba, as below. svn path=/trunk/; revision=11499
* [This should fix #5110, shell crash when switching folders.]Ettore Perazzoli2001-07-312-5/+14
| | | | | | | | | * evolution-activity-client.c (update_timeout_callback): Set the `have_pending_update' flag before doing the CORBA call. (evolution_activity_client_update): Set the timeout before doing the CORBA call. svn path=/trunk/; revision=11498
* Remember the current group so after renaming a group it doesn't flip toJason Leach2001-07-314-3/+23
| | | | | | | | | | | | | 2001-07-30 Jason Leach <jleach@ximian.com> * e-shortcuts-view.c (rename_group_cb): Remember the current group so after renaming a group it doesn't flip to the next group. Bug #3857. * e-shortcuts.c (e_shortcuts_rename_group): Comparing two separately allocated strings, use strcmp() instead of !=. svn path=/trunk/; revision=11483
* If we can't create a folder because it already exists, select that folderJason Leach2001-07-312-0/+18
| | | | | | | | | | 2001-07-30 Jason Leach <jleach@ximian.com> * e-shell-folder-creation-dialog.c (async_create_cb): If we can't create a folder because it already exists, select that folder that exists. Bug #1716. svn path=/trunk/; revision=11482
* Fix support for gtkhtml when compiled with gconf supportFrédéric Crozat2001-07-303-0/+18
| | | | svn path=/trunk/; revision=11473
* Remove the source for the timeout *before* invoking the CORBA method, asEttore Perazzoli2001-07-283-53/+98
| | | | | | | | | | | | | | | * evolution-activity-client.c (impl_destroy): Remove the source for the timeout *before* invoking the CORBA method, as we might get the timeout callback while invoking the CORBA method, thus screwing things up. * evolution-shell-component-client.c (destroy_listener_interface): New helper function. (dispatch_callback): Use it. (impl_destroy): Call it when destroying the listener interface instead of just freeing the servant. svn path=/trunk/; revision=11452
* Little UI nit: capitalize the words Offline/Online for the File menu.Jason Leach2001-07-272-3/+8
| | | | | | | | | 2001-07-26 Jason Leach <jleach@ximian.com> * e-shell-view-menu.c (update_offline_menu_item): Little UI nit: capitalize the words Offline/Online for the File menu. svn path=/trunk/; revision=11428
* New function. When a folder is selected set the OK button to be sensitiveJason Leach2001-07-262-2/+23
| | | | | | | | | | 2001-07-25 Jason Leach <jleach@ximian.com> * e-shell-folder-selection-dialog.c (folder_selected_cb): New function. When a folder is selected set the OK button to be sensitive (but before that have it desensitized). Bug #5483. svn path=/trunk/; revision=11414
* A warning fix from Jacob. Bug #5057.Jason Leach2001-07-262-4/+7
| | | | | | | | | 2001-07-25 Jason Leach <jleach@ximian.com> * e-shortcuts-view.c (icon_callback): A warning fix from Jacob. Bug #5057. svn path=/trunk/; revision=11403
* $(BONOBO_CONF_CFLAGS) was here twice, took out one of them.Jason Leach2001-07-263-2/+10
| | | | | | | | | | | | 2001-07-25 Jason Leach <jleach@ximian.com> * Makefile.am (INCLUDES): $(BONOBO_CONF_CFLAGS) was here twice, took out one of them. * e-shell-view.c (socket_destroy_cb): Mem leak fix. Thanks to the amazing Jacob B. Bug #5054. svn path=/trunk/; revision=11402
* #include <libgnome/gnome-defs.h> and <libgnome/gnome-i18n.h> instead ofJason Leach2001-07-252-4/+9
| | | | | | | | | | 2001-07-25 Jason Leach <jleach@ximian.com> * e-task-widget.c: #include <libgnome/gnome-defs.h> and <libgnome/gnome-i18n.h> instead of the full <libgnome/libgnome.h>, as noted by a comment here. svn path=/trunk/; revision=11397
* fix some warnings.Jacob Leach2001-07-251-3/+3
| | | | svn path=/trunk/; revision=11371
* Add the "/My Evolution" path to the path_to_etree_node hash so thatJason Leach2001-07-252-4/+19
| | | | | | | | | | | 2001-07-24 Jason Leach <jleach@ximian.com> * e-storage-set-view.c (e_storage_set_view_construct): Add the "/My Evolution" path to the path_to_etree_node hash so that storage_set_view_set_current_folder() can select the My Evolution node when it's the current one. Fixes #5114 and #3956. svn path=/trunk/; revision=11348
* Only show the warning dialog instead of using `gnome_dialog_run()' so itEttore Perazzoli2001-07-241-2/+10
| | | | | | | | | | * main.c (development_warning): Only show the warning dialog instead of using `gnome_dialog_run()' so it is not modal. Modal would be nice, but unfortunately it works bad with Bonobo. Plus Sawfish doesn't like to keep the modal dialog on top, so it gets very confusing for users. svn path=/trunk/; revision=11334
* Only show the warning dialog instead of using `gnome_dialog_run()' so itEttore Perazzoli2001-07-242-7/+13
| | | | | | | | | | * main.c (development_warning): Only show the warning dialog instead of using `gnome_dialog_run()' so it is not modal. Modal would be nice, but unfortunately it works bad with Bonobo. Plus Sawfish doesn't like to keep the modal dialog on top, so it gets very confusing for users. svn path=/trunk/; revision=11331
* Uhm, set the usize to `1, -1' instead.Ettore Perazzoli2001-07-242-1/+6
| | | | | | | * e-task-widget.c (e_task_widget_construct): Uhm, set the usize to `1, -1' instead. svn path=/trunk/; revision=11318
* Set the usize for the contained hbox to 0x0.Ettore Perazzoli2001-07-242-0/+7
| | | | | | | * e-task-widget.c (e_task_widget_construct): Set the usize for the contained hbox to 0x0. svn path=/trunk/; revision=11311
* Get the manuals from the `evolution-guide' dir as that's where they getEttore Perazzoli2001-07-242-5/+10
| | | | | | | * e-shell-view-menu.c: Get the manuals from the `evolution-guide' dir as that's where they get installed. svn path=/trunk/; revision=11309
* Don't handle button events whose button number is not 1.Ettore Perazzoli2001-07-242-1/+7
| | | | | | | * e-shell-view.c (storage_set_view_box_button_release_event_cb): Don't handle button events whose button number is not 1. svn path=/trunk/; revision=11305
* Add an extra @type arg to the xferFolder and removeFolder methods inEttore Perazzoli2001-07-237-2/+42
| | | | | | | | the ShellComponent interface. Updated the EvolutionShellComponent GTK+ wrapper and all the component accordingly. Get the calendar to use this so it can delete both tasks and calendar folders. svn path=/trunk/; revision=11300
* Add a `user_creatable' property to folder types and make componentsEttore Perazzoli2001-07-228-8/+71
| | | | | | | use it, so that e.g. you cannot create a folder of type "mailstorage" or "vtrash". svn path=/trunk/; revision=11298
* Use `g_source_remove()' instead of `gtk_timeout_remove()' here, as we areEttore Perazzoli2001-07-222-1/+13
| | | | | | | | | | | | * evolution-activity-client.c (impl_destroy): Use `g_source_remove()' instead of `gtk_timeout_remove()' here, as we are using `g_timeout_add()' and not `gtk_timeout_add()' to set up the timeout callback. (update_timeout_callback): Reset `have_pending_update' when returning %TRUE. Set the timeout id to zero when returning %FALSE. svn path=/trunk/; revision=11295
* [Fix a crash if you start evolution with a bad URI.]Jason Leach2001-07-213-2/+16
| | | | | | | | | | | | | | | | | 2001-07-20 Jason Leach <jleach@ximian.com> [Fix a crash if you start evolution with a bad URI.] * e-shell.c (e_shell_create_view): If we can't display the URI, display the default uri. This is because it's necessary for e_shell_view_display_uri() to run all the way through so corba interfaces get setup. * e-shell-view.c (e_shell_view_display_uri): If we fail to create a new view for a URI (happens if you pass in an invalid URI), be sure to return FALSE. svn path=/trunk/; revision=11290
* [This is a better way to have "Local Folders" be shown as the localJason Leach2001-07-219-8/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-20 Jason Leach <jleach@ximian.com> [This is a better way to have "Local Folders" be shown as the local storage name without breaking current user's shortcuts.] * e-corba-storage.c (get_display_name): Implement this, but it's only returning the real name now. Need to change the IDL soon to let corba storages have separated display names. * e-shortcuts.c (e_shortcuts_add_default_group): Set these default shortcut URI's back to evolution:/local/ * e-shell-view.h (DEFAULT_URI): Set this back to "evolution:/local/Inbox" * e-storage-set-view.c (etree_value_at): Get the display name for a storage rather than it's true name. * e-local-storage.c (impl_get_display_name): Implemented for the local folder (to return a translated "Local Folders"). * e-storage.c (e_storage_get_display_name): New virtual function for retrieving the display name. svn path=/trunk/; revision=11274
* Make the local storage name "Local Folders" instead of "local", looksJason Leach2001-07-207-12/+27
| | | | | | | | | | | | | | | | | | | | | | 2001-07-19 Jason Leach <jleach@ximian.com> * e-local-storage.h: Make the local storage name "Local Folders" instead of "local", looks better with "My Evolution", "VFolders", and "Other Contacts". * e-shell-view.h: Put the #define DEFAULT_URI here instead of in e-shell-view.c. * main.c: Remove the duplicated #define STARTUP_URI, actually make use of the nice defines. * e-shell-folder-commands.c (e_shell_command_delete_folder): Use the DEFAULT_URI here instead of a hard coded string. * e-shortcuts.c (e_shortcuts_add_default_group): Fix the URI's here to use "Local Folder". svn path=/trunk/; revision=11241
* Line up the padding for the folder title bar labels when you have theJason Leach2001-07-203-3/+15
| | | | | | | | | | | | | | | | 2001-07-19 Jason Leach <jleach@ximian.com> * e-shell-folder-title-bar.c (e_shell_folder_title_bar_construct): Line up the padding for the folder title bar labels when you have the folder bar enabled or disabled (previously when disabled it was padding ~8 pixels to the right while the other had 0). * e-shell-view.c (setup_widgets): Take out a 2 pixel padding around the vbox containing the title bar, folder bar, message list and mail display. Also remove 2 more extra pixels of padding on the bottom. svn path=/trunk/; revision=11238
* Removed. (load_shortcuts): Don't call it.Ettore Perazzoli2001-07-162-29/+6
| | | | | | | | * e-shortcuts.c (override_shortcut_name_and_type_from_storage_set): Removed. (load_shortcuts): Don't call it. svn path=/trunk/; revision=11120
* [Fix #4387, Shortcut bar items don't keep the name after rename.]Ettore Perazzoli2001-07-152-1/+8
| | | | | | | * e-shortcuts.c (update_shortcuts_by_path): Do not change the name of the shortcut if the folder's name changes. svn path=/trunk/; revision=11115
* Display an icon for nodes at depth greater than 2 in the tree view asEttore Perazzoli2001-07-152-11/+10
| | | | | | well. svn path=/trunk/; revision=11113
* Fix a crash that could happen by closing one or more views, and thenEttore Perazzoli2001-07-153-4/+14
| | | | | | clicking on the off-line button. svn path=/trunk/; revision=11107
* Because bugzilla.ximian does have a mail gateway now, we can haveJason Leach2001-07-132-22/+13
| | | | | | | | | | 2001-07-12 Jason Leach <jleach@ximian.com> * e-shell-view-menu.c (command_submit_bug): Because bugzilla.ximian does have a mail gateway now, we can have Help->Submit Bug Report open up bug-buddy. svn path=/trunk/; revision=11075
* Remove warningIain Holmes2001-07-132-1/+4
| | | | svn path=/trunk/; revision=11072
* Initialize priv->db and priv->iid so that destroy() won't crash ifDan Winship2001-07-132-0/+8
| | | | | | | | * e-shell.c (init): Initialize priv->db and priv->iid so that destroy() won't crash if e_shell_construct bails out before setting them. Reduces bug #4173 to #4169. svn path=/trunk/; revision=11044
* DONT ASK ME AGAIN!Iain Holmes2001-07-122-0/+7
| | | | svn path=/trunk/; revision=11012
* Mark a string for translation.Kjartan Maraas2001-07-112-1/+5
| | | | | | | | 2001-07-11 Kjartan Maraas <kmaraas@gnome.org> * importers/intelligent.c: Mark a string for translation. svn path=/trunk/; revision=11001
* Make sure to create ~/evolution/config/ if it doesn't exist. (ShellViewJason Leach2001-07-112-2/+19
| | | | | | | | | | | 2001-07-11 Jason Leach <jleach@ximian.com> * e-shell-view.c (e_shell_view_save_settings): Make sure to create ~/evolution/config/ if it doesn't exist. (ShellView settings get saved before component settings, so when the mailer comes around to saving ETree stuff, this dir will be there). Fixes bug #4279. svn path=/trunk/; revision=10991
* Add a temporary block of code to not use theJason Leach2001-07-112-0/+16
| | | | | | | | | | | 2001-07-10 Jason Leach <jleach@ximian.com> * e-setup.c (copy_default_stuff): Add a temporary block of code to not use the $GNOME/share/evolution/default_user/shortcuts.xml for users who might be upgrading, so they'll get the shell-generated default set of shortcuts. See notes on #4394. svn path=/trunk/; revision=10981
* convert the folder name from utf8 before displaying them in the dialog andLarry Ewing2001-07-102-3/+14
| | | | | | | | | | 2001-07-09 Larry Ewing <lewing@ximian.com> * e-shell-folder-commands.c (delete_dialog): convert the folder name from utf8 before displaying them in the dialog and set the dialog parent. svn path=/trunk/; revision=10943
* Make the "Rename" item be a GNOMEUIINFO_ITEM_NONE() since we don't have aFederico Mena Quintero2001-07-102-7/+15
| | | | | | | | | | | | 2001-07-09 Federico Mena Quintero <federico@ximian.com> * e-shortcuts-view.c: Make the "Rename" item be a GNOMEUIINFO_ITEM_NONE() since we don't have a stock icon; likewise for the "Open in New Window". This gets rid of warnings from gnome-libs. Use a better stock icon for the "Remove" command, and add a stock icon to the "Open" command. svn path=/trunk/; revision=10938
* It's very possible that get_storage_set_path_from_uri() returns NULL (5 ofJason Leach2001-07-102-1/+8
| | | | | | | | | | | 2001-07-09 Jason Leach <jleach@ximian.com> * e-shell-view.c (updated_folder_cb): It's very possible that get_storage_set_path_from_uri() returns NULL (5 of the 6 return cases), so check that it's not NULL before trying to strcmp() it. Fixes a startup crash. svn path=/trunk/; revision=10935
* Return a gboolean saying whether or not the shortcut changed. Use strcmpDan Winship2001-07-093-17/+52
| | | | | | | | | | | | | | | | | | | * e-shortcuts.c (shortcut_item_update): Return a gboolean saying whether or not the shortcut changed. Use strcmp rather than pointer comparisons to determine this. (update_shortcut_and_emit_signal): propagate the gboolean from shortcut_item_update (and only emit the signal if it's TRUE). (update_shortcuts_by_path): Only call make_dirty if something changed. (storage_set_new_folder_callback, storage_set_updated_folder_callback): Don't call make_dirty: update_shortcuts_by_path will have called it if necessary. * e-shell-view.c (updated_folder_cb): Don't call update_for_current_uri if the folder that was updated isn't the one being displayed. svn path=/trunk/; revision=10912
* Little UI tweak for right click menu, pronouns shouldn't be capitalizedJason Leach2001-07-072-2/+5
| | | | | | | | | 2001-07-06 Jason Leach <jleach@ximian.com> * e-shortcuts-view.c: Little UI tweak for right click menu, pronouns shouldn't be capitalized ("This" in this case). svn path=/trunk/; revision=10871
* [Misc fixes and part of #2228, There should be no dialog boxes duringJason Leach2001-07-072-7/+17
| | | | | | | | | | | | | | | | | | | 2001-07-06 Jason Leach <jleach@ximian.com> [Misc fixes and part of #2228, There should be no dialog boxes during startup.] * e-setup.c (e_setup): Check for searches.xml instead of shortcuts.xml, since shortcuts.xml doesn't really need to exist (and thus wouldn't be a necessary test whether ~/evolution was invalid) because shell can generate shortcuts. (copy_default_stuff): For first time users, only present a dialog if a problem occurred. We've already clicked "Ok" on a dialog about copying files. (check_evolution_directory): Take out the "successfully installed" dialog on updates too. svn path=/trunk/; revision=10864
* [This should fix #3873, Bizzarre crash after deleting a fewEttore Perazzoli2001-07-062-5/+9
| | | | | | | | | | folders.] * e-local-storage.c (remove_folder): Don't free the `physical_path' on error, as it gets freed when freeing the callback data. svn path=/trunk/; revision=10842
* Added error dialogs for when the user tries to copy/move a folder overEttore Perazzoli2001-07-062-0/+36
| | | | | | | itself, or move it under one of its descendants. [Fixes #3959, copying a folder over itself crashes Evolution.] svn path=/trunk/; revision=10841
* Special case the My Evolution uri so that the correct icon appears in theIain Holmes2001-07-062-9/+19
| | | | | | shortcut bar. svn path=/trunk/; revision=10822
* Get the File -> Folder -> Properties menu item work again for theEttore Perazzoli2001-07-054-28/+15
| | | | | | mailer. svn path=/trunk/; revision=10793
* set "pixname" value only if pixbuf was loaded successfully. OtherwiseGediminas Paulauskas2001-07-052-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * evolution-shell-component-utils.c (e_pixmaps_update): set "pixname" value only if pixbuf was loaded successfully. Otherwise component crashes if image is not found. Should be checked for sanity in bonobo_ui_component_set_prop IMHO. 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * Makefile.am: install apply-filters-16.xpm 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * evolution-mail-message.xml: MessageApplyFilters now has an icon. 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser-ui.c (message_pixcache): set icon for ApplyFilters command. svn path=/trunk/; revision=10783
* Revised to make it less scary.Aaron Weber2001-07-042-10/+10
| | | | | | | | 2001-07-03 Aaron Weber <aaron@ximian.com> * main.c (development_warning): Revised to make it less scary. svn path=/trunk/; revision=10775
* [Fix a problem with not being able to save a newly createdEttore Perazzoli2001-07-042-1/+15
| | | | | | | | | | | | `shortcuts.xml' file, and another bug that caused the default group to be added at every start-up, even there were groups already.] * e-shortcuts.c (e_shortcuts_new): If loading the shortcuts fails, set the file_name. (load_shortcuts): Update `num_groups'. svn path=/trunk/; revision=10763
* use bonobo-conf everywhereDietmar Maurer2001-07-044-109/+135
| | | | | | | | 2001-07-03 Dietmar Maurer <dietmar@ximian.com> * *: use bonobo-conf everywhere svn path=/trunk/; revision=10760
* More BonoboConf workIain Holmes2001-07-042-0/+5
| | | | svn path=/trunk/; revision=10752
* [The following makes the shell able to create the `shortcuts.xml'Ettore Perazzoli2001-07-034-21/+72
| | | | | | | | | | | | | | | | | | | | | file by itself when the file is not present or corrupted. Fixes #3668, failure to handle malformed shortcuts.xml file.] * e-shell.c (e_shell_construct): If the `e_shortcuts_new()' returns an object with no shortcuts in it, fill it in with `e_shortcuts_add_default_group()'. * e-shortcuts.c: New member `num_groups' in EShortcutsPrivate. (init): Init to zero. (e_shortcuts_add_group): Increment. (e_shortcuts_remove_group): Decrement. (e_shortcuts_get_num_groups): New. (e_shortcuts_add_default_group): New function to set up the default shortcuts. (e_shortcuts_new): Return an empty EShortcuts object if loading the file files, instead of returning NULL. svn path=/trunk/; revision=10744
* Ref/unref the handler so the signal handlers can unref it safely. Also, ifEttore Perazzoli2001-07-033-2/+25
| | | | | | | | | | | | | | | | | * e-shell-offline-handler.c (e_shell_offline_handler_put_components_offline): Ref/unref the handler so the signal handlers can unref it safely. Also, if `prepare_for_offline()' fails, don't say that there was an internal error, as that's confusing. Just say we couldn't put the components off-line. [Fix #3758, clicking on the online/offline button crashed Evolution.] * Evolution-Offline.idl: Don't derive OfflineProgressListener from Bonobo::Unknown. svn path=/trunk/; revision=10742
* [Fixed #3643, Shell crash when component crashed]Ettore Perazzoli2001-07-032-1/+19
| | | | | | | | | * e-shell-view.c (socket_destroy_cb): Fix Jason's broken fix for #3205 that was causing #3643. It is not safe to strcmp() the return value from `e_shell_view_get_current_uri()' as it might be NULL already. svn path=/trunk/; revision=10739
* Made evolution depend on bonobo-conf 0.2.Christopher James Lahey2001-07-032-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-02 Christopher James Lahey <clahey@ximian.com> * configure.in: Made evolution depend on bonobo-conf 0.2. From calendar/ChangeLog: 2001-07-02 Christopher James Lahey <clahey@ximian.com> * gui/Makefile.am (INCLUDES): Added $(BONOBO_CONF_CFLAGS). (evolution_calendar_LDADD): Added $(BONOBO_CONF_LIBS). From composer/ChangeLog: 2001-07-02 Christopher James Lahey <clahey@ximian.com> * Makefile.am (INCLUDES): Added $(BONOBO_CONF_CFLAGS). From shell/ChangeLog: 2001-07-02 Christopher James Lahey <clahey@ximian.com> * Makefile.am (INCLUDES): Added $(BONOBO_CONF_CFLAGS). (evolution_LDADD): Added $(BONOBO_CONF_LIBS). svn path=/trunk/; revision=10718
* Don't assert that there is a handler, so we don't crash if user clicks onEttore Perazzoli2001-07-038-44/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-storage-set-view.c (popup_folder_menu): Don't assert that there is a handler, so we don't crash if user clicks on a folder whose type we cannot handle for some reason [such as an uninstalled component]. * evolution-test-component.c (activity_client_cancel_callback): New callback for the "cancel" signal on the EvolutionActivityClient object. (activity_client_show_details_callback): New callback for the "show_details" signal. (timeout_callback_1): Connect these two signal handlers. * e-activity-handler.c (task_widget_button_press_event_callback): Ahem, right-click is button 3, not button 2. (show_cancellation_popup): Actually pop up the menu. (get_corba_null_value): New helper function to create a CORBA_any null value. (report_task_event): New helper function to report events to the listener. (task_widget_cancel_callback): Use it. Report "Cancel" instead of "Cancelled". (task_widget_show_details_callback): New, callback for the "Show Details" right-click menu item. * evolution-activity-client.c: Updated to dispatch the "Cancel" and "ShowDetails" events as "cancel" and "show_details" signals. (class_init): Install the signals. (listener_callback): Updated to update the signals corresponding to the "ShowDetails" and "Cancel" events. * Evolution-Activity.idl: Changed the docs about the events sent to the Bonobo::Listener. We now only have "ShowDetails" and "Cancelled". * evolution-test-component.c (timeout_callback_1): Make the activity cancellable so we can test the right-click cancel menu too. * main.c (idle_cb): Actually exit if we cannot reach to the shell. svn path=/trunk/; revision=10684
* Make the EUriSchemaRegistry object non-floating at construction time.Ettore Perazzoli2001-07-023-1/+8
| | | | svn path=/trunk/; revision=10658
* Get the "Open in a New Window" shortcut right-click menu to actuallyEttore Perazzoli2001-07-023-12/+49
| | | | | | | | work (I had removed a line by mistake), and fix a crash that would happen if user opened a new view, closed it and then created a new folder. svn path=/trunk/; revision=10657
* Fix a crash that happened when dragging a folder that didn't have aEttore Perazzoli2001-07-012-1/+8
| | | | | | component associated with it. svn path=/trunk/; revision=10656
* Implemented the `File -> New -> Shortcut' command.Ettore Perazzoli2001-07-014-14/+150
| | | | | | | I have also implemented a "no-new-button" mode for the folder selection dialog widget. svn path=/trunk/; revision=10655
* Missing ChangeLog entries for the previous commit.Ettore Perazzoli2001-07-011-1/+14
| | | | svn path=/trunk/; revision=10654
* Implemented a "Rename Group" command. Unfortunately, it doesn't workEttore Perazzoli2001-07-015-1/+97
| | | | | | very well due to EShortcutBar breakage. But we'll fix that later. svn path=/trunk/; revision=10653
* Change EShortcuts to not use group titles to access specific groups.Ettore Perazzoli2001-07-014-32/+33
| | | | | | Also, allow more than one group with the same title. svn path=/trunk/; revision=10652
* Implemented a "Rename Shortcut" command.Ettore Perazzoli2001-07-013-31/+88
| | | | svn path=/trunk/; revision=10651
* Change the internal structure for shortucts, so that it contains aEttore Perazzoli2001-07-015-36/+242
| | | | | | | | | | | | | | | | | | | type and a name too. The name will allow renaming shortcuts (thus decoupling the name of the folder the shortcuts points to from the name of the shortcut); the type member is used to cache the type of the folder we point to so that we can still display the right icon even if the folder is currently not in the storage (e.g. this happens for IMAP folders when you haven't opened the corresponding IMAP node yet). I don't like the way this is designed at all (mainly, the responsibility for saving the values should be moved elsewhere), but I'll fix it later. Also, I added an "Open in New Window" right-click menu item for shortcuts. svn path=/trunk/; revision=10649
* Pass the event time to gtk_menu_popup() so that we can release the buttonFederico Mena Quintero2001-07-012-1/+7
| | | | | | | | | | 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
* This is a first shoot at making shortcuts renameable [#3719];Ettore Perazzoli2001-06-307-297/+263
| | | | | | | | unfinished. Also, it causes the shortcut bar to stop displaying message unread count, but this is unfixable until we get rid of the ::LocalStorage interface, which should hopefully happen soon. svn path=/trunk/; revision=10621
* Replaced GList with GSList here to fix a type mismatch.Christopher James Lahey2001-06-302-1/+6
| | | | | | | | | 2001-06-29 Christopher James Lahey <clahey@ximian.com> * e-shortcuts-view-model.c (load_all_shortcuts_into_model): Replaced GList with GSList here to fix a type mismatch. svn path=/trunk/; revision=10619
* Changed $(datadir)/evolution/etspec to "$(etspecdir)" here.Christopher James Lahey2001-06-302-2/+7
| | | | | | | | | 2001-06-29 Christopher James Lahey <clahey@ximian.com> * Makefile.am (INCLUDES): Changed $(datadir)/evolution/etspec to "$(etspecdir)" here. svn path=/trunk/; revision=10618
* Replaced GList with GSList here to fix a type mismatch.Christopher James Lahey2001-06-302-1/+6
| | | | | | | | | 2001-06-29 Christopher James Lahey <clahey@ximian.com> * e-shortcuts-view-model.c (load_group_into_model): Replaced GList with GSList here to fix a type mismatch. svn path=/trunk/; revision=10617
* Change EShortcuts to use GSLists instead of GLists.Ettore Perazzoli2001-06-304-60/+75
| | | | svn path=/trunk/; revision=10615
* Fix the fix.Ettore Perazzoli2001-06-291-1/+1
| | | | svn path=/trunk/; revision=10589
* Ooops. Update ChangeLog entry correctly.Ettore Perazzoli2001-06-291-1/+2
| | | | svn path=/trunk/; revision=10588
* Fix #3756, `--debug' option not working anymore.Ettore Perazzoli2001-06-292-5/+18
| | | | svn path=/trunk/; revision=10586
* Fix #3382, shortcut bar crashes when checking mail, and all theEttore Perazzoli2001-06-292-6/+22
| | | | | | | | | | different incarnations involving updates to an shortcut bar having shortcuts to non-existent folders. Also, this fixes #1643, shortcuts not visible until you enable an IMAP account, and #2436, i.e. misbehavior of shortcut groups when IMAP or invalid shortcuts are involved. svn path=/trunk/; revision=10583
* (e_storage_new_folder): Move the folder_changed_cb() call to avoidDan Winship2001-06-292-1/+4
| | | | | | a g_warning. svn path=/trunk/; revision=10570
* Call folder_changed_cb after adding the new folder so that if it was addedDan Winship2001-06-292-0/+7
| | | | | | | | * e-storage.c (e_storage_new_folder): Call folder_changed_cb after adding the new folder so that if it was added highlighted, its parent will get its child_highlight set. svn path=/trunk/; revision=10569
* Rename `e_shell_new_view()' into `e_shell_create_view()' to avoidEttore Perazzoli2001-06-286-11/+16
| | | | | | confusion with `e_shell_view_new()'. svn path=/trunk/; revision=10556
* Make the shell to be able to display URIs that the user specified onEttore Perazzoli2001-06-289-47/+159
| | | | | | the command-line. svn path=/trunk/; revision=10554
* Added a URI schema registry to the shell, and changed the bootstrapEttore Perazzoli2001-06-289-5/+440
| | | | | | | sequence to get the schema lists from the components and register them into it. svn path=/trunk/; revision=10553
* Remove redundant declaration for `free_ShellComponentListener_servant()'.Ettore Perazzoli2001-06-282-3/+5
| | | | svn path=/trunk/; revision=10551
* Get EvolutionShellComponent to emit a "handle_external_uri" when itEttore Perazzoli2001-06-282-0/+20
| | | | | | gets an handleExternalURI CORBA invokation. svn path=/trunk/; revision=10550
* Rename the method implementation functions to match the CORBA names.Ettore Perazzoli2001-06-282-41/+58
| | | | svn path=/trunk/; revision=10549
* Add method `ShellComponent::handleExternalURI' and anEttore Perazzoli2001-06-285-2/+108
| | | | | | | | | `external_uri_schemas' attribute. Update the EvolutionShellComponent GTK+ wrapper accordingly. Update all the components to pass a NULL `external_uri_schemas' list when initializing themselves as EvolutionShellComponents. svn path=/trunk/; revision=10548
* Remove a ChangeLog entry that referred to code that I haven'tEttore Perazzoli2001-06-271-11/+0
| | | | | | committed yet. Ooops. :-) svn path=/trunk/; revision=10528
* Plug a leak. Every time the ETable would query the model for theEttore Perazzoli2001-06-272-1/+7
| | | | | | | string at the top of the tree, a "My Evolution" string would be leaked. svn path=/trunk/; revision=10523
* Avoid calling the listener directly in `e-local-folder.c'; instead,Ettore Perazzoli2001-06-272-67/+38
| | | | | | | just return appropriate values from the signal handlers, as expected by the API. svn path=/trunk/; revision=10522
* display a selected uri in a timeout rather than right away, so the UIjacob berkman2001-06-262-3/+68
| | | | | | | | | | | | | | | 2001-06-25 jacob berkman <jacob@ximian.com> * e-shell-view.c: (set_folder_timeout): display a selected uri in a timeout rather than right away, so the UI feels a bit more responsive, and the tree is more navigable via keyboard (switch_on_folder_tree_click): use the timeout rather than setting the URI right away (destroy): remove the timeout if it still exists (update_for_current_uri): if there is a timeout set, don't update (e_shell_view_display_uri): remove the timeout if it exists svn path=/trunk/; revision=10490
* Get the shell to unregister the components on exit again.Ettore Perazzoli2001-06-254-1/+25
| | | | svn path=/trunk/; revision=10475
* Break the build so the current shell breakage doesn't get into theEttore Perazzoli2001-06-251-0/+13
| | | | | | builds. svn path=/trunk/; revision=10474
* Remove some spurious "\n"s from g_warnings.Ettore Perazzoli2001-06-253-6/+16
| | | | svn path=/trunk/; revision=10472
* Ooops. I missed one ChangeLog entry in the previous commit.Ettore Perazzoli2001-06-251-0/+2
| | | | svn path=/trunk/; revision=10471
* Fixed a nasty chain of broken fixes to broken fixes to broken fixes,Ettore Perazzoli2001-06-255-21/+28
| | | | | | | | | | thus getting the shell refcounting in better shape. The quit sequence is still not quite right, but we are getting there. Also fixed a nasty bug in destroying the EStorageSet due to a very old commit by the Meekster. svn path=/trunk/; revision=10470
* Remove the ugliness that was `e_shell_quit()'; implement anEttore Perazzoli2001-06-255-44/+25
| | | | | | | `e_shell_destroy_all_views()' function instead, and get the "Exit" menu item to use that instead. svn path=/trunk/; revision=10467
* Rename `GNOME_Evolution_TestComponent.oafinfo' intoEttore Perazzoli2001-06-253-2/+9
| | | | | | `GNOME_Evolution_TestComponent.oaf'. svn path=/trunk/; revision=10466
* Change EShell to derive from BonoboXObject for sake of simplicity.Ettore Perazzoli2001-06-253-100/+55
| | | | | | Also change it so that it cleanly unregisters from OAF on ::destroy. svn path=/trunk/; revision=10465