aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorLauris Kaplinski <lauris@src.gnome.org>2000-08-24 11:25:53 +0800
committerLauris Kaplinski <lauris@src.gnome.org>2000-08-24 11:25:53 +0800
commit8d63772a7dffe54c6320a70021110e33dfe7c1ba (patch)
tree8414f5588b54d8df4b006b4effd8e6cc740f70a6 /addressbook/gui/component
parent9e945f485b3dd9456db54f1004eb37b31acbe412 (diff)
downloadgsoc2013-evolution-8d63772a7dffe54c6320a70021110e33dfe7c1ba.tar
gsoc2013-evolution-8d63772a7dffe54c6320a70021110e33dfe7c1ba.tar.gz
gsoc2013-evolution-8d63772a7dffe54c6320a70021110e33dfe7c1ba.tar.bz2
gsoc2013-evolution-8d63772a7dffe54c6320a70021110e33dfe7c1ba.tar.lz
gsoc2013-evolution-8d63772a7dffe54c6320a70021110e33dfe7c1ba.tar.xz
gsoc2013-evolution-8d63772a7dffe54c6320a70021110e33dfe7c1ba.tar.zst
gsoc2013-evolution-8d63772a7dffe54c6320a70021110e33dfe7c1ba.zip
Unicode in addressbook basically works, including simple searching
svn path=/trunk/; revision=4997
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook.c9
1 files changed, 6 insertions, 3 deletions
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 <ebook/e-book.h>
#include <e-util/e-util.h>
#include <e-util/e-popup-menu.h>
+#include <e-util/e-unicode.h>
#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*