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

Add history search

parent 8e9702b9
Branches
Tags
No related merge requests found
...@@ -12,6 +12,7 @@ sflphone_gtk_SOURCES = \ ...@@ -12,6 +12,7 @@ sflphone_gtk_SOURCES = \
menus.c \ menus.c \
calltab.c \ calltab.c \
calltree.c \ calltree.c \
historyfilter.c \
actions.c \ actions.c \
configwindow.c \ configwindow.c \
accountlist.c \ accountlist.c \
...@@ -25,7 +26,7 @@ sflphone_gtk_SOURCES = \ ...@@ -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\ 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 \ 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 EXTRA_DIST = marshaller.list
sflphone_gtk_LDADD = $(DEPS_LIBS) -lnotify sflphone_gtk_LDADD = $(DEPS_LIBS) -lnotify
......
...@@ -193,6 +193,8 @@ sflphone_init() ...@@ -193,6 +193,8 @@ sflphone_init()
int i; int i;
current_calls = calltab_init(); current_calls = calltab_init();
history = 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 (); account_list_init ();
codec_list_init(); codec_list_init();
if(!dbus_connect ()){ if(!dbus_connect ()){
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <calllist.h> #include <calllist.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
GtkTreeModel* histfilter;
calltab_t* calltab_init(); calltab_t* calltab_init();
......
...@@ -152,6 +152,7 @@ toggle_history(GtkToggleToolButton *toggle_tool_button, ...@@ -152,6 +152,7 @@ toggle_history(GtkToggleToolButton *toggle_tool_button,
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (active_calltree->view)); sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (active_calltree->view));
g_signal_emit_by_name(sel, "changed"); g_signal_emit_by_name(sel, "changed");
toolbar_update_buttons(); toolbar_update_buttons();
gtk_tree_model_filter_refilter(histfilter);
} }
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <mainwindow.h> #include <mainwindow.h>
#include <menus.h> #include <menus.h>
#include <sliders.h> #include <sliders.h>
#include <historyfilter.h>
#include <gtk/gtk.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