struct WPanel: changed type of searching field form int to gboolean.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-05-25 14:28:02 +04:00
parent 166fcfc15f
commit e793117b21
3 changed files with 8 additions and 7 deletions

View File

@ -1043,8 +1043,8 @@ swap_panels (void)
panelswap (is_panelized);
panelswap (dir_stat);
panel1->searching = 0;
panel2->searching = 0;
panel1->searching = FALSE;
panel2->searching = FALSE;
if (current_panel == panel1)
current_panel = panel2;
else

View File

@ -6,6 +6,7 @@
#ifndef MC_PANEL_H
#define MC_PANEL_H
#include "lib/global.h"
#include "lib/fs.h" /* MC_MAXPATHLEN */
#include "lib/strutil.h"
@ -93,7 +94,7 @@ typedef struct WPanel {
char *panel_name; /* The panel name */
struct stat dir_stat; /* Stat of current dir: used by execute () */
int searching;
gboolean searching;
char search_buffer [256];
char search_char [MB_LEN_MAX]; /*buffer for multibytes characters*/
int search_chpoint; /*point after last characters in search_char*/

View File

@ -1259,7 +1259,7 @@ panel_clean_dir (WPanel * panel)
panel->marked = 0;
panel->dirs_marked = 0;
panel->total = 0;
panel->searching = 0;
panel->searching = FALSE;
panel->is_panelized = 0;
panel->dirty = 1;
@ -1358,7 +1358,7 @@ panel_new_with_dir (const char *panel_name, const char *wpath)
panel->total = 0;
panel->reverse = 0;
panel->dirty = 1;
panel->searching = 0;
panel->searching = FALSE;
panel->dirs_marked = 0;
panel->is_panelized = 0;
panel->format = 0;
@ -2475,7 +2475,7 @@ start_search (WPanel * panel)
}
else
{
panel->searching = 1;
panel->searching = TRUE;
panel->search_buffer[0] = '\0';
panel->search_char[0] = '\0';
panel->search_chpoint = 0;
@ -2487,7 +2487,7 @@ start_search (WPanel * panel)
static void
stop_search (WPanel * panel)
{
panel->searching = 0;
panel->searching = FALSE;
display_mini_info (panel);
}