From a0619157c26553430ae47909af1ddee1557ab7be Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 30 Jun 2001 02:56:45 +0000 Subject: Change the uri here to have addressbook.db at the end. 2001-06-29 Christopher James Lahey * 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 --- addressbook/gui/component/select-names/e-select-names.c | 7 +++++-- addressbook/gui/component/select-names/select-names.glade | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/component') 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 @@ GtkOptionMenu - optionmenu1 + optionmenu-folder True 0 -- cgit v1.2.3