diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-01 03:03:12 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-01 03:03:12 +0800 |
commit | fee5916b60c605ff5086d8fdc2a85c5ea21351f6 (patch) | |
tree | 4feaede1cf070448a32bd0ab846908e47747ceb7 /addressbook | |
parent | cd5ff486fb02451645f8b4b39608edca2da5e4a2 (diff) | |
download | gsoc2013-evolution-fee5916b60c605ff5086d8fdc2a85c5ea21351f6.tar.gz gsoc2013-evolution-fee5916b60c605ff5086d8fdc2a85c5ea21351f6.tar.zst gsoc2013-evolution-fee5916b60c605ff5086d8fdc2a85c5ea21351f6.zip |
Merge revisions 37108:37199 from trunk.
svn path=/branches/kill-bonobo/; revision=37200
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 14 | ||||
-rw-r--r-- | addressbook/gui/component/e-book-shell-module.c | 22 |
2 files changed, 30 insertions, 6 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 2255936197..84d5a3f9ca 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,17 @@ +2009-01-26 Matthew Barnes <mbarnes@redhat.com> + + * printing/test-print.c: + * printing/test-contact-print-style-editor.c: + Migrate the test programs off libgnomeui/libbonobo. + +2009-01-21 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #362754 + + * gui/component/addressbook-component.c: (ensure_sources): + Ensure to show default groups and sources with actual + localized name, not the one it was stored last time. + 2009-01-11 Matthew Barnes <mbarnes@redhat.com> * gui/widgets/eab-contact-display.c (eab_uri_popup_link_open), diff --git a/addressbook/gui/component/e-book-shell-module.c b/addressbook/gui/component/e-book-shell-module.c index 139f55ffd4..9903c762fd 100644 --- a/addressbook/gui/component/e-book-shell-module.c +++ b/addressbook/gui/component/e-book-shell-module.c @@ -74,6 +74,7 @@ book_module_ensure_sources (EShellModule *shell_module) ESource *personal; GSList *groups, *iter; const gchar *data_dir; + const gchar *name; gchar *base_uri; gchar *filename; @@ -120,10 +121,15 @@ book_module_ensure_sources (EShellModule *shell_module) on_ldap_servers = source_group; } + name = _("On This Computer"); + if (on_this_computer != NULL) { GSList *sources; const gchar *group_base_uri; + /* Force the group name to the current locale. */ + e_source_group_set_name (on_this_computer, name); + sources = e_source_group_peek_sources (on_this_computer); group_base_uri = e_source_group_peek_base_uri (on_this_computer); @@ -159,34 +165,38 @@ book_module_ensure_sources (EShellModule *shell_module) } else { ESourceGroup *source_group; - const gchar *name; - name = _("On This Computer"); source_group = e_source_group_new (name, base_uri); e_source_list_add_group (source_list, source_group, -1); g_object_unref (source_group); } + name = _("Personal"); + if (personal == NULL) { ESource *source; - const gchar *name; /* Create the default Personal address book. */ - name = _("Personal"); source = e_source_new (name, PERSONAL_RELATIVE_URI); e_source_group_add_source (on_this_computer, source, -1); e_source_set_property (source, "completion", "true"); g_object_unref (source); + } else { + /* Force the source name to the current locale. */ + e_source_set_name (personal, name); } + name = _("On LDAP Servers"); + if (on_ldap_servers == NULL) { ESourceGroup *source_group; - const gchar *name; - name = _("On LDAP Servers"); source_group = e_source_group_new (name, LDAP_BASE_URI); e_source_list_add_group (source_list, source_group, -1); g_object_unref (source_group); + } else { + /* Force the source name to the current locale. */ + e_source_set_name (on_ldap_servers, name); } g_free (base_uri); |