From 8a9d50f560ee0d5d26c77b5868af2baa0ab0bb2f Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 3 Jul 2001 13:29:12 +0000 Subject: [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 --- shell/ChangeLog | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'shell/ChangeLog') diff --git a/shell/ChangeLog b/shell/ChangeLog index 92a2fa48c6..8ea78b2d3d 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,23 @@ +2001-07-03 Ettore Perazzoli + + [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. + 2001-07-03 Ettore Perazzoli * e-shell-offline-handler.c -- cgit v1.2.3