# HG changeset patch # User Andreas Rönnquist <> # Date 1551175644 0 # Node ID 89bdd971db1ad5e77d9fb94b9251d49cb9d0d15e # Parent 7d15201edf3047f1f3bb63a8e19d3131e0c309b7 Fix #661, #662: String comparison to translated string causes crash https://github.com/BestImageViewer/geeqie/issues/661 diff -r 7d15201edf30 -r 89bdd971db1a src/preferences.c --- a/src/preferences.c Thu Feb 21 15:04:01 2019 +0000 +++ b/src/preferences.c Tue Feb 26 10:07:24 2019 +0000 @@ -1049,7 +1049,6 @@ GList *list_cells; GtkCellRenderer *cell; GtkTreeViewColumn *column; - GList *list_columns; const gchar *title; guint i = 0; gint rows; @@ -1057,12 +1056,7 @@ rows = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(filter_store), NULL); path = gtk_tree_path_new_from_indices(rows-1, -1); - list_columns = gtk_tree_view_get_columns(GTK_TREE_VIEW(data)); - do { - column = g_list_nth(list_columns,i)->data; - title = gtk_tree_view_column_get_title(GTK_TREE_VIEW_COLUMN(column)); - i++; - } while (strcmp(title, "Filter") !=0 ); + column = gtk_tree_view_get_column(GTK_TREE_VIEW(data), 0); list_cells = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(column)); cell = g_list_last(list_cells)->data; @@ -1074,7 +1068,6 @@ gtk_tree_path_free(path); g_list_free(list_cells); - g_list_free(list_columns); return(FALSE); }