From ae4735e7001ec278400d6af88076f70843ef20c6 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Thu, 14 Feb 2013 10:58:15 -0500 Subject: [PATCH] * #19035: addressbook: use const gchar * parameter --- gnome/src/contacts/addressbook.h | 2 +- plugins/addressbook/evolution/addressbook.c | 5 ++--- plugins/addressbook/evolution/addressbook.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gnome/src/contacts/addressbook.h b/gnome/src/contacts/addressbook.h index 3cfe1a901..bd3b08346 100644 --- a/gnome/src/contacts/addressbook.h +++ b/gnome/src/contacts/addressbook.h @@ -83,7 +83,7 @@ struct AddrBookHandle { void (*search) (void (*search_cb)(GList *, gpointer), GtkEntry *, AddressBook_Config *); GSList *(*get_books_data)(); book_data_t *(*get_book_data_by_uid)(gchar *); - void (*set_current_book)(gchar *); + void (*set_current_book)(const gchar *); void (*set_search_type)(AddrbookSearchType); void (*search_cb)(GList *, gpointer); }; diff --git a/plugins/addressbook/evolution/addressbook.c b/plugins/addressbook/evolution/addressbook.c index b088af6cf..c4b7ac9de 100644 --- a/plugins/addressbook/evolution/addressbook.c +++ b/plugins/addressbook/evolution/addressbook.c @@ -27,8 +27,6 @@ * shall include the source code for the parts of OpenSSL used as well * as that of the covered work. */ -#include -#include #include "eds.h" #include "addressbook.h" @@ -108,6 +106,7 @@ void addressbook_set_search_type(AddrbookSearchType searchType) { set_current_addressbook_test(map[searchType]); } -void addressbook_set_current_book(gchar *current) { +void addressbook_set_current_book(const gchar *current) { + g_print("Setting addressbook to %s\n", current); set_current_addressbook(current); } diff --git a/plugins/addressbook/evolution/addressbook.h b/plugins/addressbook/evolution/addressbook.h index 638ef3181..24344c7df 100644 --- a/plugins/addressbook/evolution/addressbook.h +++ b/plugins/addressbook/evolution/addressbook.h @@ -111,7 +111,7 @@ GSList *addressbook_get_books_data(); book_data_t *addressbook_get_book_data_by_uid(gchar *); -void addressbook_set_current_book(gchar *); +void addressbook_set_current_book(const gchar *); void addressbook_set_search_type(AddrbookSearchType);