From 8d63772a7dffe54c6320a70021110e33dfe7c1ba Mon Sep 17 00:00:00 2001 From: Lauris Kaplinski Date: Thu, 24 Aug 2000 03:25:53 +0000 Subject: Unicode in addressbook basically works, including simple searching svn path=/trunk/; revision=4997 --- addressbook/gui/component/addressbook.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/component/addressbook.c') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 9c0213edd8..12f9dbf9e0 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "e-minicard-view-widget.h" #include "addressbook/gui/search/e-addressbook-search-dialog.h" @@ -298,7 +299,7 @@ find_contact_cb (BonoboUIHandler *uih, void *user_data, const char *path) GNOME_STOCK_BUTTON_CANCEL, NULL); search_text = get_query (view); - gtk_entry_set_text(GTK_ENTRY(search_entry), search_text); + e_utf8_gtk_entry_set_text(GTK_ENTRY(search_entry), search_text); g_free (search_text); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dlg)->vbox), @@ -311,8 +312,9 @@ find_contact_cb (BonoboUIHandler *uih, void *user_data, const char *path) /* If the user clicks "okay"...*/ if (result == 0) { - search_text = gtk_entry_get_text(GTK_ENTRY(search_entry)); + search_text = e_utf8_gtk_entry_get_text(GTK_ENTRY(search_entry)); set_query (view, search_text); + g_free (search_text); } } @@ -450,7 +452,7 @@ static GnomeUIInfo gnome_toolbar [] = { static void search_entry_activated (GtkWidget* widget, gpointer user_data) { - char* search_word = gtk_entry_get_text(GTK_ENTRY(widget)); + char* search_word = e_utf8_gtk_entry_get_text(GTK_ENTRY(widget)); char* search_query; AddressbookView *view = (AddressbookView *) user_data; @@ -465,6 +467,7 @@ search_entry_activated (GtkWidget* widget, gpointer user_data) set_query(view, search_query); g_free (search_query); + g_free (search_word); } static GtkWidget* -- cgit