[evolution-patches] Patch to enable autocompletion automatically for Personal addressbook when creating it



Hi,
the attached patch fixes Mandriva bug 16427
(http://qa.mandriva.com/show_bug.cgi?id=16427 ) : when running evolution
for the first time, after creating Personal addressbook, it enables
auto-completion on it, so user don't have to enable it manually (many
are not even aware they can enable that).

The patch is for 2.2.x branch but applies on HEAD branch too.

-- 
Frederic Crozat <fcrozat mandriva com>
Mandriva
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1926.2.4
diff -u -p -r1.1926.2.4 ChangeLog
--- addressbook/ChangeLog	28 Apr 2005 09:23:00 -0000	1.1926.2.4
+++ addressbook/ChangeLog	6 Jul 2005 16:49:14 -0000
@@ -1,3 +1,10 @@
+2005-07-06  Frederic Crozat  <fcrozat mandriva com>
+
+	* gui/component/addressbook-component.c: (ensure_sources):
+	* gui/component/addressbook-migrate.c: (create_groups):
+	Enable autocompletion on personal addressbook when creating it
+	(Mandriva bug #16427).
+
 2005-04-28  Ross Burton  <ross burtonini com>
 
 	* gui/widgets/e-addressbook-view.c:
Index: addressbook/gui/component/addressbook-component.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-component.c,v
retrieving revision 1.134
diff -u -p -r1.134 addressbook-component.c
--- addressbook/gui/component/addressbook-component.c	22 Feb 2005 00:54:00 -0000	1.134
+++ addressbook/gui/component/addressbook-component.c	6 Jul 2005 16:49:14 -0000
@@ -141,6 +141,9 @@ ensure_sources (AddressbookComponent *co
 		ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
 		e_source_group_add_source (on_this_computer, source, -1);
 
+		/* Enable autocompletion on default Person addressbook */
+		e_source_set_property (source, "completion", "true");
+
 		personal_source = source;
 	}
 
Index: addressbook/gui/component/addressbook-migrate.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-migrate.c,v
retrieving revision 1.35
diff -u -p -r1.35 addressbook-migrate.c
--- addressbook/gui/component/addressbook-migrate.c	9 Dec 2004 06:12:55 -0000	1.35
+++ addressbook/gui/component/addressbook-migrate.c	6 Jul 2005 16:49:14 -0000
@@ -500,6 +500,8 @@ create_groups (MigrationContext *context
 		/* Create the default Person addressbook */
 		ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
 		e_source_group_add_source (*on_this_computer, source, -1);
+		/* Enable autocompletion on default Person addressbook */
+		e_source_set_property (source, "completion", "true");
 
 		*personal_source = source;
 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]