mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
src/cmd.c (select_unselect_cmd): set dialog sizes using constants
instead of defines.
This commit is contained in:
parent
edc9264a27
commit
b2a680b768
@ -497,6 +497,10 @@ reverse_selection_cmd (void)
|
||||
static void
|
||||
select_unselect_cmd (const char *title, const char *history_name, gboolean do_select)
|
||||
{
|
||||
/* dialog sizes */
|
||||
const int DX = 50;
|
||||
const int DY = 6;
|
||||
|
||||
int files_only = (select_flags & SELECT_FILES_ONLY) != 0;
|
||||
int case_sens = (select_flags & SELECT_MATCH_CASE) != 0;
|
||||
|
||||
@ -504,8 +508,6 @@ select_unselect_cmd (const char *title, const char *history_name, gboolean do_se
|
||||
mc_search_t *search;
|
||||
int i;
|
||||
|
||||
#define DX 50
|
||||
#define DY 6
|
||||
QuickWidget quick_widgets[] = {
|
||||
{ quick_checkbox, DX/2 + 1, DX, DY - 3, DY, N_("&Case sensitive"), 0, 0, &case_sens, NULL, NULL },
|
||||
{ quick_checkbox, 3, DX, DY - 3, DY, N_("&Files only"), 0, 0, &files_only, NULL, NULL },
|
||||
@ -516,8 +518,6 @@ select_unselect_cmd (const char *title, const char *history_name, gboolean do_se
|
||||
QuickDialog quick_dlg = {
|
||||
DX, DY, -1, -1, title, "[Select/Uselect Files]", quick_widgets, 0
|
||||
};
|
||||
#undef DY
|
||||
#undef DX
|
||||
|
||||
if (quick_dialog (&quick_dlg) == B_CANCEL)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user