Ticket #2557: mc-4.7.5.2-chmod_use_whitespace-2.patch

File mc-4.7.5.2-chmod_use_whitespace-2.patch, 1.3 KB (added by bugreporter, 13 years ago)
  • src/filemanager/chmod.c

    old new  
    4949 
    5050/*** file scope macro definitions ****************************************************************/ 
    5151 
    52 #define PX 5 
     52#define PX 2 
    5353#define PY 2 
     54#define PWIDTH 38 
    5455 
    5556#define FX 40 
    5657#define FY 2 
     58#define FWIDTH 28 
     59#define FHEIGHT 10 
    5760 
    5861#define BX 6 
    5962#define BY 17 
     
    230233    single_set = (current_panel->marked < 2) ? 2 : 0; 
    231234 
    232235    ch_dlg = 
    233         create_dlg (TRUE, 0, 0, 22 - single_set, 70, dialog_colors, 
     236        create_dlg (TRUE, 0, 0, 22 - single_set, FWIDTH + PWIDTH + 4, dialog_colors, 
    234237                    chmod_callback, "[Chmod]", _("Chmod command"), DLG_CENTER | DLG_REVERSE); 
    235238 
    236239    for (i = 0; i < BUTTONS; i++) 
     
    245248                                    chmod_but[i].flags, _(chmod_but[i].text), 0)); 
    246249    } 
    247250 
    248     add_widget (ch_dlg, groupbox_new (FY, FX, 10, 25, _("File"))); 
     251    add_widget (ch_dlg, groupbox_new (FY, FX, FHEIGHT, FWIDTH, _("File"))); 
    249252 
    250253    for (i = 0; i < PERMISSIONS; i++) 
    251254    { 
     
    253256        add_widget (ch_dlg, check_perm[i].check); 
    254257    } 
    255258 
    256     add_widget (ch_dlg, groupbox_new (PY, PX, PERMISSIONS + 2, 33, _("Permission"))); 
     259    add_widget (ch_dlg, groupbox_new (PY, PX, PERMISSIONS + 2, PWIDTH, _("Permission"))); 
    257260 
    258261    return ch_dlg; 
    259262}