comparison src/search.c @ 1367:fe4da037be21

When g_new0() is used, drop redundant initializations to NULL, FALSE or 0, second pass.
author zas_
date Sun, 01 Mar 2009 23:14:19 +0000
parents 79937bc55f3a
children a0bd58a6535f
comparison
equal deleted inserted replaced
1366:ff3cd67235af 1367:fe4da037be21
2599 sd->search_size = 0; 2599 sd->search_size = 0;
2600 sd->search_width = 640; 2600 sd->search_width = 640;
2601 sd->search_height = 480; 2601 sd->search_height = 480;
2602 sd->search_width_end = 1024; 2602 sd->search_width_end = 1024;
2603 sd->search_height_end = 768; 2603 sd->search_height_end = 768;
2604 sd->search_name = NULL;
2605 sd->search_name_match_case = FALSE;
2606 sd->search_comment = NULL;
2607 sd->search_comment_match_case = FALSE;
2608 2604
2609 sd->search_type = SEARCH_MATCH_NONE; 2605 sd->search_type = SEARCH_MATCH_NONE;
2610 2606
2611 sd->match_name = SEARCH_MATCH_CONTAINS; 2607 sd->match_name = SEARCH_MATCH_CONTAINS;
2612 sd->match_size = SEARCH_MATCH_EQUAL; 2608 sd->match_size = SEARCH_MATCH_EQUAL;
2614 sd->match_dimensions = SEARCH_MATCH_EQUAL; 2610 sd->match_dimensions = SEARCH_MATCH_EQUAL;
2615 sd->match_keywords = SEARCH_MATCH_ALL; 2611 sd->match_keywords = SEARCH_MATCH_ALL;
2616 sd->match_comment = SEARCH_MATCH_CONTAINS; 2612 sd->match_comment = SEARCH_MATCH_CONTAINS;
2617 2613
2618 sd->match_name_enable = TRUE; 2614 sd->match_name_enable = TRUE;
2619 sd->match_size_enable = FALSE;
2620 sd->match_date_enable = FALSE;
2621 sd->match_dimensions_enable = FALSE;
2622 sd->match_similarity_enable = FALSE;
2623 sd->match_keywords_enable = FALSE;
2624 sd->match_comment_enable = FALSE;
2625 2615
2626 sd->search_similarity = 95; 2616 sd->search_similarity = 95;
2627 sd->search_similarity_path = example_file ? g_strdup(example_file->path) : NULL; 2617
2628 sd->search_similarity_cd = NULL; 2618 if (example_file)
2619 {
2620 sd->search_similarity_path = g_strdup(example_file->path);
2621 }
2629 2622
2630 sd->search_idle_id = -1; 2623 sd->search_idle_id = -1;
2631 sd->update_idle_id = -1; 2624 sd->update_idle_id = -1;
2632 2625
2633 sd->window = window_new(GTK_WINDOW_TOPLEVEL, "search", NULL, NULL, _("Image search")); 2626 sd->window = window_new(GTK_WINDOW_TOPLEVEL, "search", NULL, NULL, _("Image search"));