Commit 3953fce2 authored by Tristan Matthews's avatar Tristan Matthews

* #10736: calltree: cleanup

parent c59b45dd
......@@ -147,11 +147,11 @@ call_selected_cb(GtkTreeSelection *sel, void* data UNUSED)
}
/* A row is activated when it is double clicked */
void
row_activated(GtkTreeView *tree_view UNUSED,
GtkTreePath *path UNUSED,
GtkTreeViewColumn *column UNUSED,
void * data UNUSED)
static void
row_activated_cb(GtkTreeView *tree_view UNUSED,
GtkTreePath *path UNUSED,
GtkTreeViewColumn *column UNUSED,
void * data UNUSED)
{
if (calltab_get_selected_type(active_calltree_tab) == A_CALL) {
DEBUG("Selected a call");
......@@ -403,7 +403,7 @@ calltree_create(calltab_t* tab, int searchbar_type)
gtk_tree_view_set_enable_search(GTK_TREE_VIEW(tab->view), FALSE);
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tab->view), FALSE);
g_signal_connect(G_OBJECT(tab->view), "row-activated",
G_CALLBACK(row_activated),
G_CALLBACK(row_activated_cb),
NULL);
gtk_widget_set_can_focus(calltree_sw, TRUE);
......
......@@ -35,12 +35,10 @@
/** @file calltree.h
* @brief The GtkTreeView that list calls in the main window.
*/
typedef enum {
A_CALL,
A_CONFERENCE,
A_INVALID
} CallType;
} CallType;
/**
* Tags used to identify display type in calltree
......@@ -102,21 +100,10 @@ calltree_remove_conference(calltab_t *, const conference_obj_t *);
void
calltree_display (calltab_t *);
void
row_activated (GtkTreeView *, GtkTreePath *, GtkTreeViewColumn *, void *);
/**
* Update elapsed time based on selected calltree's call
*/
gboolean
calltree_update_clock(gpointer);
/**
* @param The calltab (current_calls, history, contacts)
* @param The call
* @param The callID/confID
*/
void
calltree_(calltab_t *, callable_obj_t *, const gchar * const);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment