* layout.c (layout_change): Make static.
* screen.c (paint_panel): Likewise. * cmd.c (dirsizes_cmd): Use dirty flag. * tree.c (chdir_sel): Don't call paint_panel().
Этот коммит содержится в:
родитель
33078ab195
Коммит
f462c5a77d
@ -1,5 +1,10 @@
|
|||||||
2003-09-10 Pavel Roskin <proski@gnu.org>
|
2003-09-10 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* layout.c (layout_change): Make static.
|
||||||
|
* screen.c (paint_panel): Likewise.
|
||||||
|
* cmd.c (dirsizes_cmd): Use dirty flag.
|
||||||
|
* tree.c (chdir_sel): Don't call paint_panel().
|
||||||
|
|
||||||
* find.c: Remove useless calls to paint_panel().
|
* find.c: Remove useless calls to paint_panel().
|
||||||
* panelize.c: Likewise.
|
* panelize.c: Likewise.
|
||||||
|
|
||||||
|
@ -1261,7 +1261,7 @@ dirsizes_cmd (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
recalculate_panel_summary (panel);
|
recalculate_panel_summary (panel);
|
||||||
paint_panel (panel);
|
panel->dirty = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
11
src/layout.c
11
src/layout.c
@ -485,15 +485,16 @@ init_layout (void)
|
|||||||
radio_widget->sel = horizontal_split;
|
radio_widget->sel = horizontal_split;
|
||||||
}
|
}
|
||||||
|
|
||||||
void layout_change (void)
|
static void
|
||||||
|
layout_change (void)
|
||||||
{
|
{
|
||||||
setup_panels ();
|
setup_panels ();
|
||||||
layout_do_change = 0;
|
layout_do_change = 0;
|
||||||
/* re-init the menu, because perhaps there was a change in the way
|
/* re-init the menu, because perhaps there was a change in the way
|
||||||
how the panel are split (horizontal/vertical). */
|
how the panel are split (horizontal/vertical). */
|
||||||
done_menu();
|
done_menu ();
|
||||||
init_menu();
|
init_menu ();
|
||||||
menubar_arrange(the_menubar);
|
menubar_arrange (the_menubar);
|
||||||
}
|
}
|
||||||
|
|
||||||
void layout_cmd (void)
|
void layout_cmd (void)
|
||||||
|
@ -11,7 +11,6 @@ void destroy_panels (void);
|
|||||||
void move_resize_panel (void);
|
void move_resize_panel (void);
|
||||||
void flag_winch (int dummy);
|
void flag_winch (int dummy);
|
||||||
void change_screen_size (void);
|
void change_screen_size (void);
|
||||||
void layout_change (void);
|
|
||||||
void set_display_type (int num, int type);
|
void set_display_type (int num, int type);
|
||||||
void swap_panels (void);
|
void swap_panels (void);
|
||||||
int get_display_type (int index);
|
int get_display_type (int index);
|
||||||
|
@ -85,9 +85,7 @@ extern int show_mini_info;
|
|||||||
extern int panel_scroll_pages;
|
extern int panel_scroll_pages;
|
||||||
extern int fast_reload;
|
extern int fast_reload;
|
||||||
|
|
||||||
void paint_panel (WPanel *panel);
|
|
||||||
void panel_reload (WPanel *panel);
|
void panel_reload (WPanel *panel);
|
||||||
|
|
||||||
void panel_set_sort_order (WPanel *panel, sortfn *sort_order);
|
void panel_set_sort_order (WPanel *panel, sortfn *sort_order);
|
||||||
void panel_re_sort (WPanel *panel);
|
void panel_re_sort (WPanel *panel);
|
||||||
|
|
||||||
|
@ -789,7 +789,7 @@ panel_update_contents (WPanel *panel)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Repaint everything, including frame and separator */
|
/* Repaint everything, including frame and separator */
|
||||||
void
|
static void
|
||||||
paint_panel (WPanel *panel)
|
paint_panel (WPanel *panel)
|
||||||
{
|
{
|
||||||
paint_frame (panel);
|
paint_frame (panel);
|
||||||
|
@ -879,7 +879,6 @@ chdir_sel (WTree *tree)
|
|||||||
}
|
}
|
||||||
change_panel ();
|
change_panel ();
|
||||||
if (do_cd (tree->selected_ptr->name, cd_exact)) {
|
if (do_cd (tree->selected_ptr->name, cd_exact)) {
|
||||||
paint_panel (cpanel);
|
|
||||||
select_item (cpanel);
|
select_item (cpanel);
|
||||||
} else {
|
} else {
|
||||||
message (1, MSG_ERROR, _(" Cannot chdir to \"%s\" \n %s "),
|
message (1, MSG_ERROR, _(" Cannot chdir to \"%s\" \n %s "),
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user