Skip to content
Snippets Groups Projects
Commit d3977c88 authored by areversat's avatar areversat
Browse files

Add history search

parent 8e9702b9
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ sflphone_gtk_SOURCES = \
menus.c \
calltab.c \
calltree.c \
historyfilter.c \
actions.c \
configwindow.c \
accountlist.c \
......@@ -25,7 +26,7 @@ sflphone_gtk_SOURCES = \
noinst_HEADERS = actions.h dbus.h sflnotify.h mainwindow.h calllist.h dialpad.h codeclist.h assistant.h\
callmanager-glue.h errors.h sflphone_const.h configurationmanager-glue.h instance-glue.h menus.h calltab.h calltree.h configwindow.h \
accountlist.h accountwindow.h marshaller.h sliders.h statusicon.h
historyfilter.h accountlist.h accountwindow.h marshaller.h sliders.h statusicon.h
EXTRA_DIST = marshaller.list
sflphone_gtk_LDADD = $(DEPS_LIBS) -lnotify
......
......@@ -193,6 +193,8 @@ sflphone_init()
int i;
current_calls = calltab_init();
history = calltab_init();
histfilter = create_filter(history->store);
gtk_tree_view_set_model(GTK_TREE_VIEW(history->view), GTK_TREE_MODEL(histfilter));
account_list_init ();
codec_list_init();
if(!dbus_connect ()){
......
......@@ -23,6 +23,7 @@
#include <calllist.h>
#include <gtk/gtk.h>
GtkTreeModel* histfilter;
calltab_t* calltab_init();
......
......@@ -152,6 +152,7 @@ toggle_history(GtkToggleToolButton *toggle_tool_button,
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (active_calltree->view));
g_signal_emit_by_name(sel, "changed");
toolbar_update_buttons();
gtk_tree_model_filter_refilter(histfilter);
}
......
......@@ -27,6 +27,7 @@
#include <mainwindow.h>
#include <menus.h>
#include <sliders.h>
#include <historyfilter.h>
#include <gtk/gtk.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment