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

[#1404] Clear GTK-Critical Bug at client startup

parent abe018a1
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ status_bar_display_account ()
acc = account_list_get_current ();
if(acc){
msg = g_markup_printf_escaped(_("Connected to %s (%s)") ,
msg = g_markup_printf_escaped(_("Registered to %s (%s)") ,
(gchar*)g_hash_table_lookup( acc->properties , ACCOUNT_ALIAS),
(gchar*)g_hash_table_lookup( acc->properties , ACCOUNT_TYPE));
}
......
......@@ -32,7 +32,12 @@ static gboolean history_is_visible (GtkTreeModel*, GtkTreeIter*, gpointer);
void
history_search(GtkEntry* entry UNUSED){
if(history_filter != NULL) {
gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(history_filter));
}
}
void
......@@ -40,6 +45,7 @@ history_init(){
history_filter = history_create_filter(GTK_TREE_MODEL(history->store));
gtk_tree_view_set_model(GTK_TREE_VIEW(history->view), GTK_TREE_MODEL(history_filter));
}
void history_set_searchbar_widget(GtkWidget *searchbar){
......@@ -51,7 +57,9 @@ static GtkTreeModel*
history_create_filter (GtkTreeModel* child) {
GtkTreeModel* ret;
GtkTreePath *path;
DEBUG("Create Filter\n");
ret = gtk_tree_model_filter_new(child, NULL);
gtk_tree_model_filter_set_visible_func(GTK_TREE_MODEL_FILTER(ret), history_is_visible, NULL, NULL);
return GTK_TREE_MODEL(ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment