Skip to content

Commit

Permalink
In the search results view, hide dimensions column instead of
Browse files Browse the repository at this point in the history
displaying an empty one.
When dimensions search criteria is used, it is always displayed.
  • Loading branch information
Laurent Monin committed May 8, 2008
1 parent 6b17a6a commit 524cf26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,9 @@ static void search_start_cb(GtkWidget *widget, gpointer data)
date_selection_get(sd->date_sel, &sd->search_date_d, &sd->search_date_m, &sd->search_date_y);
date_selection_get(sd->date_sel_end, &sd->search_date_end_d, &sd->search_date_end_m, &sd->search_date_end_y);

column = gtk_tree_view_get_column(GTK_TREE_VIEW(sd->result_view), SEARCH_COLUMN_DIMENSIONS - 1);
gtk_tree_view_column_set_visible(column, sd->match_dimensions_enable);

column = gtk_tree_view_get_column(GTK_TREE_VIEW(sd->result_view), SEARCH_COLUMN_RANK - 1);
gtk_tree_view_column_set_visible(column, sd->match_similarity_enable);
if (!sd->match_similarity_enable)
Expand Down

0 comments on commit 524cf26

Please sign in to comment.