mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
* color.c (mc_init_pair): Use cast to avoid warning.
* screen.c (display_mini_info): Likewise. * slint.c (do_define_key): Likewise. * tree.c (tree_show_mini_info): Likewise. (show_tree):Likewise. * view.c (view_status): Likewise.
This commit is contained in:
parent
784158a520
commit
facaac9889
@ -1,3 +1,11 @@
|
|||||||
|
2004-09-01 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||||
|
|
||||||
|
* color.c (mc_init_pair): Use cast to avoid warning.
|
||||||
|
* screen.c (display_mini_info): Likewise.
|
||||||
|
* slint.c (do_define_key): Likewise.
|
||||||
|
* tree.c (tree_show_mini_info): Likewise. (show_tree):Likewise.
|
||||||
|
* view.c (view_status): Likewise.
|
||||||
|
|
||||||
2004-08-29 Roland Illig <roland.illig@gmx.de>
|
2004-08-29 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* background.c (do_background): Fixed file descriptor leak.
|
* background.c (do_background): Fixed file descriptor leak.
|
||||||
|
@ -361,7 +361,7 @@ mc_init_pair (int index, CTYPE foreground, CTYPE background)
|
|||||||
if (!foreground)
|
if (!foreground)
|
||||||
foreground = "default";
|
foreground = "default";
|
||||||
|
|
||||||
SLtt_set_color (index, "", foreground, background);
|
SLtt_set_color (index, "", (char *) foreground, (char *) background);
|
||||||
if (index > max_index)
|
if (index > max_index)
|
||||||
max_index = index;
|
max_index = index;
|
||||||
}
|
}
|
||||||
|
@ -659,7 +659,7 @@ display_mini_info (WPanel *panel)
|
|||||||
p += 2;
|
p += 2;
|
||||||
} else
|
} else
|
||||||
cols -= 2;
|
cols -= 2;
|
||||||
printw (p, cols, buffer);
|
printw ((char *) p, cols, buffer);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -480,7 +480,7 @@ do_define_key (int code, const char *strcap)
|
|||||||
{
|
{
|
||||||
char *seq;
|
char *seq;
|
||||||
|
|
||||||
seq = (char *) SLtt_tgetstr (strcap);
|
seq = (char *) SLtt_tgetstr ((char*) strcap);
|
||||||
if (seq)
|
if (seq)
|
||||||
define_sequence (code, seq, MCKEY_NOACTION);
|
define_sequence (code, seq, MCKEY_NOACTION);
|
||||||
}
|
}
|
||||||
|
@ -173,12 +173,12 @@ static void tree_show_mini_info (WTree *tree, int tree_lines, int tree_cols)
|
|||||||
attrset (FOCUSC);
|
attrset (FOCUSC);
|
||||||
addch (PATH_SEP);
|
addch (PATH_SEP);
|
||||||
|
|
||||||
addstr (name_trunc (tree->search_buffer, tree_cols-2));
|
addstr ((char *) name_trunc (tree->search_buffer, tree_cols-2));
|
||||||
addch (' ');
|
addch (' ');
|
||||||
attrset (FOCUSC);
|
attrset (FOCUSC);
|
||||||
} else {
|
} else {
|
||||||
/* Show full name of selected directory */
|
/* Show full name of selected directory */
|
||||||
addstr (name_trunc (tree->selected_ptr->name, tree_cols));
|
addstr ((char *) name_trunc (tree->selected_ptr->name, tree_cols));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ static void show_tree (WTree *tree)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Show full name */
|
/* Show full name */
|
||||||
addstr (name_trunc (current->name, tree_cols - 6));
|
addstr ((char *) name_trunc (current->name, tree_cols - 6));
|
||||||
} else{
|
} else{
|
||||||
/* Sub level directory */
|
/* Sub level directory */
|
||||||
|
|
||||||
@ -299,7 +299,7 @@ static void show_tree (WTree *tree)
|
|||||||
|
|
||||||
/* Show sub-name */
|
/* Show sub-name */
|
||||||
addch (' ');
|
addch (' ');
|
||||||
addstr (name_trunc (current->subname,
|
addstr ((char *) name_trunc (current->subname,
|
||||||
tree_cols - 2 - 4 - 3 * j));
|
tree_cols - 2 - 4 - 3 * j));
|
||||||
}
|
}
|
||||||
addch (' ');
|
addch (' ');
|
||||||
|
@ -784,7 +784,7 @@ view_status (WView *view, gboolean update_gui)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (w < i18n_adjust + 6)
|
if (w < i18n_adjust + 6)
|
||||||
addstr (name_trunc (view->filename ? view->filename :
|
addstr ((char *) name_trunc (view->filename ? view->filename :
|
||||||
view->command ? view->command : "", w));
|
view->command ? view->command : "", w));
|
||||||
else {
|
else {
|
||||||
i = (w > 22 ? 22 : w) - i18n_adjust;
|
i = (w > 22 ? 22 : w) - i18n_adjust;
|
||||||
|
Loading…
Reference in New Issue
Block a user