Image Search - Ignore rotation
authorColin Clark <colin.clark@cclark.uk>
Thu, 20 Jul 2017 10:11:50 +0000 (11:11 +0100)
committerColin Clark <colin.clark@cclark.uk>
Thu, 20 Jul 2017 10:11:50 +0000 (11:11 +0100)
In the Image Search window, include a checkbox for Ignore Rotation on
the Image Content line.

src/search.c

index a2f53b3..1399735 100644 (file)
@@ -2960,6 +2960,8 @@ void search_new(FileData *dir_fd, FileData *example_file)
        tab_completion_add_select_button(sd->entry_similarity, NULL, FALSE);
        gtk_box_pack_start(GTK_BOX(hbox), combo, TRUE, TRUE, 0);
        gtk_widget_show(combo);
+       pref_checkbox_new_int(hbox, _("Ignore rotation"),
+                               options->rot_invariant_sim, &options->rot_invariant_sim);
 
        /* Search for image keywords */
        hbox = menu_choice(sd->box_search, &sd->check_keywords, &sd->menu_keywords,