Commit Graph

632 Commits

Author SHA1 Message Date
fbb2f1feb0 Make sure to create ~/evolution/config/ if it doesn't exist. (ShellView
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
2001-07-11 09:29:53 +00:00
e10ca4852b Add a temporary block of code to not use the
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
2001-07-11 02:24:43 +00:00
c263befd20 convert the folder name from utf8 before displaying them in the dialog and
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
2001-07-10 02:04:46 +00:00
7367ac4cb6 Make the "Rename" item be a GNOMEUIINFO_ITEM_NONE() since we don't have a
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
2001-07-09 23:07:57 +00:00
39440346cf It's very possible that get_storage_set_path_from_uri() returns NULL (5 of
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
2001-07-09 21:54:53 +00:00
7fa7518bd6 Return a gboolean saying whether or not the shortcut changed. Use strcmp
* 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
2001-07-09 15:20:54 +00:00
90f4c18deb Little UI tweak for right click menu, pronouns shouldn't be capitalized
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
2001-07-06 22:09:41 +00:00
489fe60f9e [Misc fixes and part of #2228, There should be no dialog boxes during
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
2001-07-06 21:44:35 +00:00
6741277bdc [This should fix #3873, Bizzarre crash after deleting a few
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
2001-07-06 08:43:53 +00:00
8053d484f9 Added error dialogs for when the user tries to copy/move a folder over
itself, or move it under one of its descendants.  [Fixes #3959,
copying a folder over itself crashes Evolution.]

svn path=/trunk/; revision=10841
2001-07-06 08:35:27 +00:00
25ea88907d Special case the My Evolution uri so that the correct icon appears in the
shortcut bar.

svn path=/trunk/; revision=10822
2001-07-05 19:25:28 +00:00
d02ed3c293 Get the File -> Folder -> Properties menu item work again for the
mailer.

svn path=/trunk/; revision=10793
2001-07-05 11:19:19 +00:00
1e5fac65aa set "pixname" value only if pixbuf was loaded successfully. Otherwise
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
2001-07-04 20:46:15 +00:00
e77e11490f Revised to make it less scary.
2001-07-03  Aaron Weber  <aaron@ximian.com>

	* main.c (development_warning): Revised to make it less scary.

svn path=/trunk/; revision=10775
2001-07-03 23:11:34 +00:00
3fe9876bc7 [Fix a problem with not being able to save a newly created
`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
2001-07-03 19:40:31 +00:00
b7dede1a27 use bonobo-conf everywhere
2001-07-03  Dietmar Maurer  <dietmar@ximian.com>

	* *: use bonobo-conf everywhere

svn path=/trunk/; revision=10760
2001-07-03 18:15:31 +00:00
3f3936e0f9 More BonoboConf work
svn path=/trunk/; revision=10752
2001-07-03 16:40:01 +00:00
8a9d50f560 [The following makes the shell able to create the `shortcuts.xml'
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
2001-07-03 13:29:12 +00:00
9786eb1d7a Ref/unref the handler so the signal handlers can unref it safely. Also, if
* 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
2001-07-03 12:24:29 +00:00
dcd5194f42 [Fixed #3643, Shell crash when component crashed]
* 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
2001-07-03 11:26:20 +00:00
fd6ad06df5 Made evolution depend on bonobo-conf 0.2.
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
2001-07-03 02:55:58 +00:00
7657ec4a52 Don't assert that there is a handler, so we don't crash if user clicks on
* 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
2001-07-02 17:06:08 +00:00
acb62e85ec Make the EUriSchemaRegistry object non-floating at construction time.
svn path=/trunk/; revision=10658
2001-07-01 18:49:29 +00:00
ac60e853cb Get the "Open in a New Window" shortcut right-click menu to actually
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
2001-07-01 18:30:11 +00:00
2a9973b6fb Fix a crash that happened when dragging a folder that didn't have a
component associated with it.

svn path=/trunk/; revision=10656
2001-07-01 11:43:52 +00:00
2990822b33 Implemented the `File -> New -> Shortcut' command.
I have also implemented a "no-new-button" mode for the folder
selection dialog widget.

svn path=/trunk/; revision=10655
2001-07-01 09:10:36 +00:00
8b6c94e7cd Missing ChangeLog entries for the previous commit.
svn path=/trunk/; revision=10654
2001-07-01 08:24:50 +00:00
8fc1cb82fe Implemented a "Rename Group" command. Unfortunately, it doesn't work
very well due to EShortcutBar breakage.  But we'll fix that later.

svn path=/trunk/; revision=10653
2001-07-01 07:12:56 +00:00
6077a94d84 Change EShortcuts to not use group titles to access specific groups.
Also, allow more than one group with the same title.

svn path=/trunk/; revision=10652
2001-07-01 06:25:43 +00:00
3950295c0f Implemented a "Rename Shortcut" command.
svn path=/trunk/; revision=10651
2001-07-01 06:14:59 +00:00
d801d2df67 Change the internal structure for shortucts, so that it contains a
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
2001-07-01 05:11:43 +00:00
786e6eada9 Pass the event time to gtk_menu_popup() so that we can release the button
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
2001-06-30 18:29:39 +00:00
d6372c9ae9 This is a first shoot at making shortcuts renameable [#3719];
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
2001-06-30 02:28:44 +00:00
7f21c999f5 Replaced GList with GSList here to fix a type mismatch.
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
2001-06-30 02:12:32 +00:00
6f940aed6e Changed $(datadir)/evolution/etspec to "$(etspecdir)" here.
2001-06-29  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (INCLUDES): Changed $(datadir)/evolution/etspec to
	"$(etspecdir)" here.

svn path=/trunk/; revision=10618
2001-06-30 02:06:42 +00:00
e8b463223e Replaced GList with GSList here to fix a type mismatch.
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
2001-06-30 02:01:44 +00:00
019a20555b Change EShortcuts to use GSLists instead of GLists.
svn path=/trunk/; revision=10615
2001-06-30 00:15:11 +00:00
f2d683ced7 Fix the fix.
svn path=/trunk/; revision=10589
2001-06-29 04:12:42 +00:00
136f298c2e Ooops. Update ChangeLog entry correctly.
svn path=/trunk/; revision=10588
2001-06-29 03:53:47 +00:00
9d83b98a54 Fix #3756, `--debug' option not working anymore.
svn path=/trunk/; revision=10586
2001-06-29 03:52:44 +00:00
9b087b2497 Fix #3382, shortcut bar crashes when checking mail, and all the
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
2001-06-29 02:04:43 +00:00
fcc55e12d5 (e_storage_new_folder): Move the folder_changed_cb() call to avoid
a g_warning.

svn path=/trunk/; revision=10570
2001-06-28 19:47:55 +00:00
07fcfdf436 Call folder_changed_cb after adding the new folder so that if it was added
* 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
2001-06-28 19:05:41 +00:00
d77b63aa3c Rename e_shell_new_view()' into e_shell_create_view()' to avoid
confusion with `e_shell_view_new()'.

svn path=/trunk/; revision=10556
2001-06-28 05:56:16 +00:00
268c7dbe42 Make the shell to be able to display URIs that the user specified on
the command-line.

svn path=/trunk/; revision=10554
2001-06-28 04:50:02 +00:00
764cfb5a6b Added a URI schema registry to the shell, and changed the bootstrap
sequence to get the schema lists from the components and register them
into it.

svn path=/trunk/; revision=10553
2001-06-28 02:22:40 +00:00
b09674da4e Remove redundant declaration for `free_ShellComponentListener_servant()'.
svn path=/trunk/; revision=10551
2001-06-27 23:53:33 +00:00
f61048ada1 Get EvolutionShellComponent to emit a "handle_external_uri" when it
gets an handleExternalURI CORBA invokation.

svn path=/trunk/; revision=10550
2001-06-27 23:44:36 +00:00
411d79d488 Rename the method implementation functions to match the CORBA names.
svn path=/trunk/; revision=10549
2001-06-27 23:37:01 +00:00
d82d5a7997 Add method `ShellComponent::handleExternalURI' and an
`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
2001-06-27 23:17:41 +00:00