Skip to content
Snippets Groups Projects
Commit 083f8250 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

GTK warnings removal

parent 25bf1638
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ sflphone_init()
int i;
current_calls = calltab_init();
history = calltab_init();
histfilter = create_filter(GTK_TREE_MODEL(history->store));
if(SHOW_SEARCHBAR) histfilter = create_filter(GTK_TREE_MODEL(history->store));
account_list_init ();
codec_list_init();
if(!dbus_connect ()){
......
......@@ -31,6 +31,8 @@ create_filter(GtkTreeModel* child)
gboolean
is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data)
{
if( SHOW_SEARCHBAR )
{
GValue val = {0, };
gchar* text;
gchar* search = (gchar*)gtk_entry_get_text(GTK_ENTRY(filter_entry));
......@@ -42,6 +44,8 @@ is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data)
return g_regex_match_simple(search, text, G_REGEX_CASELESS, 0);
}
return TRUE;
}
return TRUE;
}
void
......@@ -56,7 +60,6 @@ clear_filter_entry_if_default(GtkWidget* widget, gpointer user_data)
{
if(g_ascii_strncasecmp(gtk_entry_get_text(GTK_ENTRY(filter_entry)), "Search", 6) == 0)
gtk_entry_set_text(GTK_ENTRY(filter_entry), "");
}
GtkWidget*
......
......@@ -499,7 +499,7 @@ clear_history( void* foo )
dialog = gtk_message_dialog_new_with_markup ( GTK_WINDOW(get_main_window()),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
GTK_BUTTONS_CLOSE,
markup);
response = gtk_dialog_run (GTK_DIALOG(dialog));
gtk_widget_destroy (GTK_WIDGET(dialog));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment