From 9ff3b664bf5fa76c653488ae3065ebb10c6de0f2 Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Fri, 4 Mar 2005 17:30:24 +0000 Subject: don't set the relative uri if already present. Also change the typo in the 2005-02-28 Sivaiah Nallagatla * addressbook-file.c (e_book_file_dummy) : don't set the relative uri if already present. Also change the typo in the prototype s/calendar/book part of fix for #73152 svn path=/trunk/; revision=28959 --- plugins/addressbook-file/ChangeLog | 7 +++++++ plugins/addressbook-file/addressbook-file.c | 14 +++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/plugins/addressbook-file/ChangeLog b/plugins/addressbook-file/ChangeLog index be7f3e686d..14803024d7 100644 --- a/plugins/addressbook-file/ChangeLog +++ b/plugins/addressbook-file/ChangeLog @@ -1,3 +1,10 @@ +2005-02-28 Sivaiah Nallagatla + + * addressbook-file.c (e_book_file_dummy) : + don't set the relative uri if already present. + Also change the typo in the prototype s/calendar/book + part of fix for #73152 + 2005-02-24 Björn Torkelsson * org-gnome-addressbook-file.eplug.in: Added author and description. diff --git a/plugins/addressbook-file/addressbook-file.c b/plugins/addressbook-file/addressbook-file.c index 04b1e59b68..eaebcf28a0 100644 --- a/plugins/addressbook-file/addressbook-file.c +++ b/plugins/addressbook-file/addressbook-file.c @@ -33,7 +33,7 @@ #include #include -GtkWidget *e_calendar_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data); +GtkWidget *e_book_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data); GtkWidget * e_book_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data) @@ -41,14 +41,22 @@ e_book_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data) EABConfigTargetSource *t = (EABConfigTargetSource *) data->target; ESource *source = t->source; char *uri_text; - + char *relative_uri; + uri_text = e_source_get_uri (source); if (strncmp (uri_text, "file", 4)) { g_free (uri_text); return NULL; } - + + relative_uri = e_source_peek_relative_uri (source); + if (relative_uri && *relative_uri) { + g_free (uri_text); + + return NULL; + } + e_source_set_relative_uri (source, e_source_peek_uid (source)); uri_text = e_source_get_uri (source); -- cgit v1.2.3