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

Comment all searchbar creation function /added searchbar GtkWidget in the calltab_t struct

parent 9e242c12
Branches
No related tags found
No related merge requests found
......@@ -119,6 +119,8 @@ typedef struct {
GtkWidget* view;
GtkWidget* tree;
GtkWidget* searchbar;
// Calllist vars
GQueue* callQueue;
call_t* selectedCall;
......
......@@ -33,6 +33,7 @@ calltab_init()
ret->store = NULL;
ret->view = NULL;
ret->tree = NULL;
ret->searchbar = NULL;
ret->callQueue = NULL;
ret->selectedCall = NULL;
......
......@@ -407,6 +407,7 @@ void row_activated(GtkTreeView *tree_view UNUSED,
if (selectedCall)
{
g_print("is selected call? Current state: %i \n",selectedCall->state);
// Get the right event from the right calltree
if( active_calltree == current_calls )
{
......
......@@ -137,11 +137,13 @@ create_main_window ()
gtk_box_pack_start (GTK_BOX (vbox), subvbox, FALSE /*expand*/, FALSE /*fill*/, 0 /*padding*/);
if( SHOW_SEARCHBAR ){
filterEntry = create_filter_entry();
gtk_box_pack_start (GTK_BOX (subvbox), filterEntry, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
gtk_widget_show_all ( filterEntry );
}
// if( SHOW_SEARCHBAR ){
// filterEntry = create_filter_entry();
// gtk_box_pack_start (GTK_BOX (subvbox), filterEntry, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
// gtk_widget_show_all ( filterEntry );
// }
if( SHOW_VOLUME ){
speaker_control = create_slider("speaker");
......@@ -277,15 +279,15 @@ void
main_window_searchbar( gboolean *state ){
if( !SHOW_SEARCHBAR )
{
filterEntry = create_filter_entry();
gtk_box_pack_start (GTK_BOX (subvbox), filterEntry, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
gtk_widget_show_all (filterEntry);
*state = TRUE;
// filterEntry = create_filter_entry();
// gtk_box_pack_start (GTK_BOX (subvbox), filterEntry, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
// gtk_widget_show_all (filterEntry);
// *state = TRUE;
}
else
{
gtk_container_remove( GTK_CONTAINER(subvbox) , filterEntry );
*state = FALSE;
// gtk_container_remove( GTK_CONTAINER(subvbox) , filterEntry );
// *state = FALSE;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment