changeset 15331:f8c999ce917f

[gaim-migrate @ 18123] Add search-as-you-type support in the mail notify dialog. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 14 Jan 2007 19:23:42 +0000
parents af72af491b24
children ed946b774004
files gtk/gtknotify.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtknotify.c	Sun Jan 14 18:36:49 2007 +0000
+++ b/gtk/gtknotify.c	Sun Jan 14 19:23:42 2007 +0000
@@ -352,6 +352,9 @@
 		mail_dialog->treemodel = gtk_tree_store_new(COLUMNS_GAIM_MAIL,
 						GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER);
 		mail_dialog->treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(mail_dialog->treemodel));
+		gtk_tree_view_set_search_column(GTK_TREE_VIEW(mail_dialog->treeview), GAIM_MAIL_TEXT);
+		gtk_tree_view_set_search_equal_func(GTK_TREE_VIEW(mail_dialog->treeview),
+			             gaim_gtk_tree_view_search_equal_func, NULL, NULL);
 
 		g_signal_connect(G_OBJECT(dialog), "response",
 						 G_CALLBACK(email_response_cb), mail_dialog);