Skip to content
Snippets Groups Projects
Commit d0d40cb8 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

Init histfilter

parent 15c1f7bd
Branches
Tags
No related merge requests found
......@@ -233,7 +233,7 @@ gboolean sflphone_init()
current_calls = calltab_init(NULL);
history = calltab_init("history");
contacts = calltab_init("contacts");
//if(SHOW_SEARCHBAR) histfilter = create_filter(GTK_TREE_MODEL(history->store));
histfilter = create_filter(GTK_TREE_MODEL(history->store));
init();
account_list_init ();
codec_list_init();
......
......@@ -23,7 +23,7 @@
#include <calllist.h>
#include <gtk/gtk.h>
//GtkTreeModel* histfilter;
GtkTreeModel* histfilter;
calltab_t* calltab_init(gchar* searchbar_type);
......
......@@ -844,9 +844,9 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type)
// g_strcmp0 returns 0 if str1 == str2
if(g_strcmp0(searchbar_type,"history") == 0){
GtkTreeIter *iter;
// GtkTreeIter *iter;
GtkTreeModel *model = (GtkTreeModel*)history->store;
// GtkTreeModel *model = (GtkTreeModel*)history->store;
// create_filter (model);
......@@ -858,8 +858,9 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type)
// create_filter (model);
// is_visible(model, iter);
tab->searchbar = create_filter_entry();
gtk_tree_view_set_model(GTK_TREE_VIEW(history->view), GTK_TREE_MODEL(histfilter));
}
else if(g_strcmp0(searchbar_type,"contacts") == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment