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