diff options
author | Chris Toshok <toshok@ximian.com> | 2002-08-21 06:41:57 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-08-21 06:41:57 +0800 |
commit | 07d9553dd247331c9c46696b45a309983473f493 (patch) | |
tree | 45760ce9d65b5f3a895ee7311bea7aae42cad17f /addressbook | |
parent | 1f651552bc92ff527dbc660e15a97f69b6b0ea08 (diff) | |
download | gsoc2013-evolution-07d9553dd247331c9c46696b45a309983473f493.tar gsoc2013-evolution-07d9553dd247331c9c46696b45a309983473f493.tar.gz gsoc2013-evolution-07d9553dd247331c9c46696b45a309983473f493.tar.bz2 gsoc2013-evolution-07d9553dd247331c9c46696b45a309983473f493.tar.lz gsoc2013-evolution-07d9553dd247331c9c46696b45a309983473f493.tar.xz gsoc2013-evolution-07d9553dd247331c9c46696b45a309983473f493.tar.zst gsoc2013-evolution-07d9553dd247331c9c46696b45a309983473f493.zip |
not sure what i was thinking here... the EBook isn't valid if we couldn't
2002-08-20 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook.c (book_open_cb): not sure what i was
thinking here... the EBook isn't valid if we couldn't open it, so
we can't turn around and query it for its capabilities.
svn path=/trunk/; revision=17827
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index de8d85bf2a..dbe3b717fc 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2002-08-20 Chris Toshok <toshok@ximian.com> + + * gui/component/addressbook.c (book_open_cb): not sure what i was + thinking here... the EBook isn't valid if we couldn't open it, so + we can't turn around and query it for its capabilities. + 2002-08-19 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.h: add the diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 025ac334db..084d85d324 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -460,9 +460,9 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure) gtk_object_set(GTK_OBJECT(view->view), "book", book, NULL); - } else { + } + else { GtkWidget *warning_dialog, *label; - char *capabilities; AddressbookSource *source = NULL; warning_dialog = gnome_dialog_new ( @@ -470,9 +470,7 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure) GNOME_STOCK_BUTTON_CLOSE, NULL); - capabilities = e_book_get_static_capabilities (book); - - if (capabilities && strstr (capabilities, "local")) { + if (!strncmp (view->uri, "file:", 5)) { label = gtk_label_new ( _("We were unable to open this addressbook. Please check that the\n" "path exists and that you have permission to access it.")); @@ -504,8 +502,6 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure) } } - g_free (capabilities); - gtk_misc_set_alignment(GTK_MISC(label), 0, .5); gtk_label_set_justify(GTK_LABEL(label), |