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

[#1449] Gtk-Critical concerning history filters and new calls

parent 379ca86c
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ GtkCellRenderer *rend; ...@@ -31,6 +31,8 @@ GtkCellRenderer *rend;
GtkTreeViewColumn *col; GtkTreeViewColumn *col;
GtkTreeSelection *sel; GtkTreeSelection *sel;
/** /**
* Show popup menu * Show popup menu
*/ */
...@@ -450,6 +452,9 @@ calltree_add_call (calltab_t* tab, call_t * c) ...@@ -450,6 +452,9 @@ calltree_add_call (calltab_t* tab, call_t * c)
GdkPixbuf *pixbuf=NULL; GdkPixbuf *pixbuf=NULL;
GtkTreeIter iter; GtkTreeIter iter;
GtkTreeSelection* sel; GtkTreeSelection* sel;
GtkTreeModel *model;
GtkTreePath *path;
// New call in the list // New call in the list
gchar * description; gchar * description;
...@@ -460,6 +465,7 @@ calltree_add_call (calltab_t* tab, call_t * c) ...@@ -460,6 +465,7 @@ calltree_add_call (calltab_t* tab, call_t * c)
gtk_list_store_prepend (tab->store, &iter); gtk_list_store_prepend (tab->store, &iter);
if( tab == current_calls ) if( tab == current_calls )
{ {
switch(c->state) switch(c->state)
...@@ -521,12 +527,17 @@ calltree_add_call (calltab_t* tab, call_t * c) ...@@ -521,12 +527,17 @@ calltree_add_call (calltab_t* tab, call_t * c)
2, c, // Pointer 2, c, // Pointer
-1); -1);
if (pixbuf != NULL) if (pixbuf != NULL)
g_object_unref(G_OBJECT(pixbuf)); g_object_unref(G_OBJECT(pixbuf));
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tab->view));
gtk_tree_selection_select_iter(GTK_TREE_SELECTION(sel), &iter); gtk_tree_view_set_model(GTK_TREE_VIEW(tab->view), GTK_TREE_MODEL(tab->store));
gtk_tree_selection_select_iter(gtk_tree_view_get_selection(GTK_TREE_VIEW(tab->view)), &iter);
toolbar_update_buttons(); toolbar_update_buttons();
} }
void calltree_display (calltab_t *tab) { void calltree_display (calltab_t *tab) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment