mirror of https://github.com/MidnightCommander/mc
Changed type of the WPanel::is_panelized member from int to gboolean.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
parent
44b827bb9f
commit
068b5b4948
|
@ -589,7 +589,7 @@ switch_to_listing (int panel_index)
|
|||
p = (WPanel *) get_panel_widget (panel_index);
|
||||
if (p->is_panelized)
|
||||
{
|
||||
p->is_panelized = 0;
|
||||
p->is_panelized = FALSE;
|
||||
panel_reload (p);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1681,7 +1681,7 @@ do_find (const char *start_dir, ssize_t start_dir_len, const char *ignore_dirs,
|
|||
if (next_free)
|
||||
{
|
||||
current_panel->count = next_free;
|
||||
current_panel->is_panelized = 1;
|
||||
current_panel->is_panelized = TRUE;
|
||||
|
||||
/* absolute path */
|
||||
if (start_dir_len < 0)
|
||||
|
|
|
@ -3403,7 +3403,7 @@ update_one_panel_widget (WPanel * panel, panel_update_flags_t flags, const char
|
|||
|
||||
if ((flags & UP_RELOAD) != 0)
|
||||
{
|
||||
panel->is_panelized = 0;
|
||||
panel->is_panelized = FALSE;
|
||||
mc_setctl (panel->cwd, VFS_SETCTL_FLUSH, 0);
|
||||
memset (&(panel->dir_stat), 0, sizeof (panel->dir_stat));
|
||||
}
|
||||
|
@ -3637,7 +3637,7 @@ panel_clean_dir (WPanel * panel)
|
|||
panel->dirs_marked = 0;
|
||||
panel->total = 0;
|
||||
panel->searching = FALSE;
|
||||
panel->is_panelized = 0;
|
||||
panel->is_panelized = FALSE;
|
||||
panel->dirty = 1;
|
||||
|
||||
clean_dir (&panel->dir, count);
|
||||
|
@ -3703,7 +3703,7 @@ panel_new_with_dir (const char *panel_name, const char *wpath)
|
|||
panel->dirty = 1;
|
||||
panel->searching = FALSE;
|
||||
panel->dirs_marked = 0;
|
||||
panel->is_panelized = 0;
|
||||
panel->is_panelized = FALSE;
|
||||
panel->format = 0;
|
||||
panel->status_format = 0;
|
||||
panel->format_modified = 1;
|
||||
|
|
|
@ -108,7 +108,7 @@ typedef struct WPanel
|
|||
int top_file; /* The file showed on the top of the panel */
|
||||
int selected; /* Index to the selected file */
|
||||
int split; /* Split panel to allow two columns */
|
||||
int is_panelized; /* Flag: special filelisting, can't reload */
|
||||
gboolean is_panelized; /* Flag: special filelisting, can't reload */
|
||||
panel_display_t frame_size; /* half or full frame */
|
||||
char *filter; /* File name filter */
|
||||
panel_sort_info_t sort_info; /* Sort descriptor */
|
||||
|
|
|
@ -380,7 +380,7 @@ do_external_panelize (char *command)
|
|||
rotate_dash ();
|
||||
}
|
||||
|
||||
current_panel->is_panelized = 1;
|
||||
current_panel->is_panelized = TRUE;
|
||||
if (next_free)
|
||||
{
|
||||
current_panel->count = next_free;
|
||||
|
@ -425,7 +425,7 @@ do_panelize_cd (struct WPanel *panel)
|
|||
list->size = panelized_panel.count;
|
||||
}
|
||||
panel->count = panelized_panel.count;
|
||||
panel->is_panelized = 1;
|
||||
panel->is_panelized = TRUE;
|
||||
|
||||
for (i = 0; i < panelized_panel.count; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue