Skip to content

Commit

Permalink
change name easy select -> reg select
Browse files Browse the repository at this point in the history
  • Loading branch information
jun7 committed Mar 17, 2016
1 parent 6718903 commit cae48aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ROX-Filer/src/filer.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ static void detach(FilerWindow *filer_window)
{
g_return_if_fail(filer_window->directory != NULL);

if (filer_window->mini_type == MINI_EASY_SELECT)
if (filer_window->mini_type == MINI_REG_SELECT)
minibuffer_hide(filer_window);

dir_detach(filer_window->directory,
Expand Down Expand Up @@ -1357,7 +1357,7 @@ gint filer_key_press_event(GtkWidget *widget,
else if (!(event->state & modifiers) &&
key >= GDK_a && key <= GDK_z)
{
minibuffer_show(filer_window, MINI_EASY_SELECT, key);
minibuffer_show(filer_window, MINI_REG_SELECT, key);
return TRUE;
}
else if ((event->state & modifiers) == GDK_SHIFT_MASK &&
Expand Down Expand Up @@ -2853,7 +2853,7 @@ void filer_perform_action(FilerWindow *filer_window, GdkEventButton *event)
break;
}

if (filer_window->mini_type == MINI_EASY_SELECT)
if (filer_window->mini_type == MINI_REG_SELECT)
minibuffer_hide(filer_window);
}

Expand Down
2 changes: 1 addition & 1 deletion ROX-Filer/src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ typedef enum {
MINI_FILTER,
MINI_TEMP_FILTER,
MINI_SELECT_BY_NAME,
MINI_EASY_SELECT,
MINI_REG_SELECT,
} MiniType;

/* The next three correspond to the styles on the Display submenu: */
Expand Down
2 changes: 1 addition & 1 deletion ROX-Filer/src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static GtkItemFactoryEntry filer_menu_def[] = {
{">" N_("Clear Selection"), NULL, clear_selection, 0, NULL},
{">" N_("Invert Selection"), NULL, invert_selection, 0, NULL},
{">" N_("Select by Name..."), "period", mini_buffer, MINI_SELECT_BY_NAME, NULL},
{">" N_("Easy Select..."), "asciicircum", mini_buffer, MINI_EASY_SELECT, NULL},
{">" N_("Reg Select..."), "asciicircum", mini_buffer, MINI_REG_SELECT, NULL},
{">" N_("Select If..."), "<Shift>question", mini_buffer, MINI_SELECT_IF, NULL},
{N_("Options..."), NULL, menu_show_options, 0, "<StockItem>", GTK_STOCK_PREFERENCES},
{N_("New"), NULL, NULL, 0, "<Branch>"},
Expand Down
10 changes: 5 additions & 5 deletions ROX-Filer/src/minibuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void minibuffer_show(FilerWindow *filer_window, MiniType mini_type, guint keyval
mini_type == MINI_SHELL ? _("Shell:") :
mini_type == MINI_SELECT_IF ? _("Select If:") :
mini_type == MINI_SELECT_BY_NAME ? _("Select Named:") :
mini_type == MINI_EASY_SELECT ? _("Easy Select (reg-i):") :
mini_type == MINI_REG_SELECT ? _("Reg Select (i):") :
mini_type == MINI_FILTER ? _("Pattern:") :
mini_type == MINI_TEMP_FILTER ? _("Temp Filter (reg-i):") :
"?");
Expand Down Expand Up @@ -167,7 +167,7 @@ void minibuffer_show(FilerWindow *filer_window, MiniType mini_type, guint keyval
filer_window->mini_cursor_base = -1; /* History */
view_select_if(filer_window->view, select_if_glob, "*.");
break;
case MINI_EASY_SELECT:
case MINI_REG_SELECT:
view_show_cursor(filer_window->view);
view_get_cursor(filer_window->view, &cursor);
view_set_base(filer_window->view, &cursor);
Expand Down Expand Up @@ -315,7 +315,7 @@ static void show_help(FilerWindow *filer_window)
_("Enter a shell command to execute. Click "
"on a file to add it to the buffer."));
break;
case MINI_EASY_SELECT:
case MINI_REG_SELECT:
info_message(
_("Enter a file name pattern to select all matching files:\n\n"
". means any character\n"
Expand Down Expand Up @@ -1130,7 +1130,7 @@ static gint key_press_event(GtkWidget *widget,
return FALSE;
}
break;
case MINI_EASY_SELECT:
case MINI_REG_SELECT:
switch (event->keyval)
{
case GDK_Page_Up:
Expand Down Expand Up @@ -1290,7 +1290,7 @@ static void changed(GtkEditable *mini, FilerWindow *filer_window)
gtk_entry_get_text(
GTK_ENTRY(filer_window->minibuffer)));
return;
case MINI_EASY_SELECT:
case MINI_REG_SELECT:
view_select_if_reg(filer_window->view,
gtk_entry_get_text(
GTK_ENTRY(filer_window->minibuffer)));
Expand Down

0 comments on commit cae48aa

Please sign in to comment.