Ticket #2488: mc-find-dialog-tab-order2.patch

File mc-find-dialog-tab-order2.patch, 2.1 KB (added by curtis, 11 years ago)

both checkbox groups with their input

  • src/filemanager/find.c

    diff --git a/src/filemanager/find.c b/src/filemanager/find.c
    index b28f8f7..fda5ac9 100644
    a b find_parameters (char **start_dir, char **pattern, char **content) 
    574574    widget_disable (content_regexp_cbox->widget, disable); 
    575575    add_widget (find_dlg, content_regexp_cbox); 
    576576 
     577    content_use_cbox = 
     578        check_new (cbox_position--, FIND_X / 2 + 1, options.content_use, content_use_label); 
     579    add_widget (find_dlg, content_use_cbox); 
     580 
     581    in_with = 
     582        input_new (6, FIND_X / 2 + 1, input_get_default_colors (), FIND_X / 2 - 4, INPUT_LAST_TEXT, 
     583                   MC_HISTORY_SHARED_SEARCH, INPUT_COMPLETE_DEFAULT); 
     584    widget_disable (in_with->widget, disable); 
     585    add_widget (find_dlg, in_with); 
     586 
     587    content_label = label_new (5, FIND_X / 2 + 1, _("Content:")); 
     588    widget_disable (content_label->widget, disable); 
     589    add_widget (find_dlg, content_label); 
     590 
    577591    cbox_position = FIND_Y - 6; 
    578592 
    579593    skip_hidden_cbox = check_new (cbox_position--, 3, options.skip_hidden, file_skip_hidden_label); 
    find_parameters (char **start_dir, char **pattern, char **content) 
    594608    recursively_cbox = check_new (cbox_position, 3, options.find_recurs, file_recurs_label); 
    595609    add_widget (find_dlg, recursively_cbox); 
    596610 
    597     /* This checkbox is located in the second column */ 
    598     content_use_cbox = 
    599         check_new (cbox_position, FIND_X / 2 + 1, options.content_use, content_use_label); 
    600     add_widget (find_dlg, content_use_cbox); 
    601  
    602     in_with = 
    603         input_new (6, FIND_X / 2 + 1, input_get_default_colors (), FIND_X / 2 - 4, INPUT_LAST_TEXT, 
    604                    MC_HISTORY_SHARED_SEARCH, INPUT_COMPLETE_DEFAULT); 
    605     widget_disable (in_with->widget, disable); 
    606     add_widget (find_dlg, in_with); 
    607  
    608     content_label = label_new (5, FIND_X / 2 + 1, _("Content:")); 
    609     widget_disable (content_label->widget, disable); 
    610     add_widget (find_dlg, content_label); 
    611  
    612611    in_name = input_new (6, 3, input_get_default_colors (), 
    613612                         FIND_X / 2 - 4, INPUT_LAST_TEXT, "name", INPUT_COMPLETE_DEFAULT); 
    614613    add_widget (find_dlg, in_name);