Merge branch '3156_toggle_hidden_fix'

* 3156_toggle_hidden_fix:
  Ticket #3156: fix of panels redraw after toggling hidden files.
This commit is contained in:
Andrew Borodin 2014-02-07 09:27:28 +04:00
commit 96d90e5b51

View File

@ -1069,15 +1069,6 @@ quit_cmd (void)
/* --------------------------------------------------------------------------------------------- */
static void
toggle_show_hidden (void)
{
panels_options.show_dot_files = !panels_options.show_dot_files;
update_panels (UP_RELOAD, UP_KEEPSEL);
}
/* --------------------------------------------------------------------------------------------- */
/**
* Repaint the contents of the panels without frames. To schedule panel
* for repainting, set panel->dirty to 1. There are many reasons why
@ -1097,6 +1088,17 @@ update_dirty_panels (void)
/* --------------------------------------------------------------------------------------------- */
static void
toggle_show_hidden (void)
{
panels_options.show_dot_files = !panels_options.show_dot_files;
update_panels (UP_RELOAD, UP_KEEPSEL);
/* redraw panels forced */
update_dirty_panels ();
}
/* --------------------------------------------------------------------------------------------- */
static cb_ret_t
midnight_execute_cmd (Widget * sender, unsigned long command)
{