aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-06-30 10:56:45 +0800
committerChris Lahey <clahey@src.gnome.org>2001-06-30 10:56:45 +0800
commita0619157c26553430ae47909af1ddee1557ab7be (patch)
tree820422df10a3b486f11c5bd9fed5a20ddc6236fb /addressbook/gui
parente464ef303415e68809d28d4edb38c6e2baa325a3 (diff)
downloadgsoc2013-evolution-a0619157c26553430ae47909af1ddee1557ab7be.tar
gsoc2013-evolution-a0619157c26553430ae47909af1ddee1557ab7be.tar.gz
gsoc2013-evolution-a0619157c26553430ae47909af1ddee1557ab7be.tar.bz2
gsoc2013-evolution-a0619157c26553430ae47909af1ddee1557ab7be.tar.lz
gsoc2013-evolution-a0619157c26553430ae47909af1ddee1557ab7be.tar.xz
gsoc2013-evolution-a0619157c26553430ae47909af1ddee1557ab7be.tar.zst
gsoc2013-evolution-a0619157c26553430ae47909af1ddee1557ab7be.zip
Change the uri here to have addressbook.db at the end.
2001-06-29 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_option_activated): Change the uri here to have addressbook.db at the end. * gui/component/select-names/select-names.glade: Changed the name of the folder option menu here to match the name used in the code. svn path=/trunk/; revision=10623
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names.c7
-rw-r--r--addressbook/gui/component/select-names/select-names.glade2
2 files changed, 6 insertions, 3 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c
index 56f5cd0817..7d36676bcd 100644
--- a/addressbook/gui/component/select-names/e-select-names.c
+++ b/addressbook/gui/component/select-names/e-select-names.c
@@ -127,6 +127,7 @@ set_book(EBook *book, EBookStatus status, EAddressbookModel *model)
"book", book,
NULL);
gtk_object_unref(GTK_OBJECT(book));
+ gtk_object_unref(GTK_OBJECT(model));
}
static void
@@ -135,7 +136,6 @@ addressbook_model_set_uri(EAddressbookModel *model, char *uri)
EBook *book;
book = e_book_new();
gtk_object_ref(GTK_OBJECT(model));
- gtk_object_ref(GTK_OBJECT(book));
e_book_load_uri(book, uri, (EBookCallback) set_book, model);
}
@@ -230,8 +230,11 @@ static void
e_select_names_option_activated(GtkWidget *widget, ESelectNames *e_select_names)
{
ESelectNamesFolder *e_folder = gtk_object_get_data (GTK_OBJECT (widget), "EsnChoiceFolder");
+ gchar *uri;
- addressbook_model_set_uri(e_select_names->model, e_folder->physical_uri);
+ uri = g_strdup_printf ("%s/addressbook.db", e_folder->physical_uri);
+ addressbook_model_set_uri(e_select_names->model, uri);
+ g_free (uri);
}
typedef struct {
diff --git a/addressbook/gui/component/select-names/select-names.glade b/addressbook/gui/component/select-names/select-names.glade
index 6f36bb4f67..46804fc334 100644
--- a/addressbook/gui/component/select-names/select-names.glade
+++ b/addressbook/gui/component/select-names/select-names.glade
@@ -242,7 +242,7 @@
<widget>
<class>GtkOptionMenu</class>
- <name>optionmenu1</name>
+ <name>optionmenu-folder</name>
<can_focus>True</can_focus>
<items></items>
<initial_choice>0</initial_choice>