[gnome-commander] options: remove 'Match file names using' settings



commit bba5b83b9e23e9aaca6645b5972f775dbedaa1c1
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue May 3 23:22:04 2011 +0200

    options: remove 'Match file names using' settings
    
    Filter type is set directly in search and selection dlg

 src/gnome-cmd-options-dialog.cc |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index 362689c..dfb9776 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -116,21 +116,6 @@ static GtkWidget *create_general_tab (GtkWidget *parent)
         gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), TRUE);
 
 
-    // FilterType settings
-    cat_box = create_vbox (parent, FALSE, 0);
-    cat = create_category (parent, cat_box, _("Match file names using"));
-    gtk_box_pack_start (GTK_BOX (vbox), cat, FALSE, TRUE, 0);
-
-    radio = create_radio (parent, NULL, _("Shell syntax"), "ft_shell_radio");
-    gtk_container_add (GTK_CONTAINER (cat_box), radio);
-    if (gnome_cmd_data.filter_type == Filter::TYPE_FNMATCH)
-        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), TRUE);
-    radio = create_radio (parent, get_radio_group (radio), _("Regex syntax"), "ft_regex_radio");
-    gtk_container_add (GTK_CONTAINER (cat_box), radio);
-    if (gnome_cmd_data.filter_type == Filter::TYPE_REGEX)
-        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), TRUE);
-
-
     // Sort options
     cat_box = create_vbox (parent, FALSE, 0);
     cat = create_category (parent, cat_box, _("Sorting options"));
@@ -216,11 +201,6 @@ inline void store_general_options (GtkWidget *dialog)
     gnome_cmd_data.right_mouse_button_mode = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rmb_popup_radio)) ? GnomeCmdData::RIGHT_BUTTON_POPUPS_MENU
                                                                                                                 : GnomeCmdData::RIGHT_BUTTON_SELECTS;
 
-    if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ft_regex_radio)))
-        gnome_cmd_data.filter_type = Filter::TYPE_REGEX;
-    else
-        gnome_cmd_data.filter_type = Filter::TYPE_FNMATCH;
-
     gnome_cmd_data.case_sens_sort = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (case_sens_check));
     gnome_cmd_data.alt_quick_search = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (alt_quick_search));
     gnome_cmd_data.allow_multiple_instances = !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (multiple_instance_check));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]