aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-01-22 08:04:54 +0800
committerHans Petter <hansp@src.gnome.org>2004-01-22 08:04:54 +0800
commit6b6bd40667e841fc39de8a94c4252d83039ee280 (patch)
treeaf55e2c0c9a148c084f13b5593ad356a61b2013c /addressbook/gui
parent050fa9a1950e3bcc85725713619bb79c4e60fb61 (diff)
downloadgsoc2013-evolution-6b6bd40667e841fc39de8a94c4252d83039ee280.tar.gz
gsoc2013-evolution-6b6bd40667e841fc39de8a94c4252d83039ee280.tar.zst
gsoc2013-evolution-6b6bd40667e841fc39de8a94c4252d83039ee280.zip
Remove. (dialog_to_source): Don't create source dir, backend takes care of
2004-01-21 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-config.c (create_source_dir): Remove. (dialog_to_source): Don't create source dir, backend takes care of that now. svn path=/trunk/; revision=24359
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook-config.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index 371539562a..e5ecdd8f28 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -227,27 +227,6 @@ ldap_parse_ssl (const char *ssl)
-static gboolean
-create_source_dir (AddressbookSourceDialog *dialog, ESource *source)
-{
- gchar *new_dir;
- gint result;
-
- new_dir = g_build_filename (e_source_group_peek_base_uri (dialog->source_group),
- e_source_peek_name (source), NULL);
- g_print ("Making %s\n", new_dir);
- result = e_mkdir_hier (new_dir + sizeof ("file://") - 1, 0700);
- g_free (new_dir);
-
- if (result) {
- e_notice (NULL /* FIXME: parent */, GTK_MESSAGE_ERROR,
- _("Could not create a directory for the new addressbook."));
- return FALSE;
- }
-
- return TRUE;
-}
-
static void
dialog_to_source (AddressbookSourceDialog *dialog, ESource *source, gboolean temporary)
{
@@ -277,12 +256,8 @@ dialog_to_source (AddressbookSourceDialog *dialog, ESource *source, gboolean tem
const gchar *relative_uri;
relative_uri = e_source_peek_relative_uri (source);
- if (!relative_uri || !strlen (relative_uri)) {
+ if (!relative_uri || !strlen (relative_uri))
e_source_set_relative_uri (source, e_source_peek_name (source));
-
- if (!temporary && !create_source_dir (dialog, source))
- return;
- }
}
if (!temporary && !e_source_peek_group (source))