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

Init histfilter

parent 15c1f7bd
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,7 @@ gboolean sflphone_init() ...@@ -233,7 +233,7 @@ gboolean sflphone_init()
current_calls = calltab_init(NULL); current_calls = calltab_init(NULL);
history = calltab_init("history"); history = calltab_init("history");
contacts = calltab_init("contacts"); contacts = calltab_init("contacts");
//if(SHOW_SEARCHBAR) histfilter = create_filter(GTK_TREE_MODEL(history->store)); histfilter = create_filter(GTK_TREE_MODEL(history->store));
init(); init();
account_list_init (); account_list_init ();
codec_list_init(); codec_list_init();
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <calllist.h> #include <calllist.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
//GtkTreeModel* histfilter; GtkTreeModel* histfilter;
calltab_t* calltab_init(gchar* searchbar_type); calltab_t* calltab_init(gchar* searchbar_type);
......
...@@ -844,9 +844,9 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type) ...@@ -844,9 +844,9 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type)
// g_strcmp0 returns 0 if str1 == str2 // g_strcmp0 returns 0 if str1 == str2
if(g_strcmp0(searchbar_type,"history") == 0){ if(g_strcmp0(searchbar_type,"history") == 0){
GtkTreeIter *iter; // GtkTreeIter *iter;
GtkTreeModel *model = (GtkTreeModel*)history->store; // GtkTreeModel *model = (GtkTreeModel*)history->store;
// create_filter (model); // create_filter (model);
...@@ -860,6 +860,7 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type) ...@@ -860,6 +860,7 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type)
// is_visible(model, iter); // is_visible(model, iter);
tab->searchbar = create_filter_entry(); 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) 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