Ticket #8581: FileTypeWindow.diff

File FileTypeWindow.diff, 2.0 KB (added by humdinger, 8 years ago)

latest patch

  • src/preferences/filetypes/FileTypeWindow.cpp

    diff --git a/src/preferences/filetypes/FileTypeWindow.cpp b/src/preferences/filetypes/FileTypeWindow.cpp
    index c86cee8..433c073 100644
    a b const uint32 kMsgSamePreferredAppAsOpened = 'spaO';  
    4949
    5050FileTypeWindow::FileTypeWindow(BPoint position, const BMessage& refs)
    5151    :
    52     BWindow(BRect(0.0f, 0.0f, 200.0f, 200.0f).OffsetBySelf(position),
     52    BWindow(BRect(0.0f, 0.0f, 300.0f, 200.0f).OffsetBySelf(position),
    5353        B_TRANSLATE("File type"), B_TITLED_WINDOW,
    5454        B_NOT_V_RESIZABLE | B_NOT_ZOOMABLE
    5555            | B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS)
    FileTypeWindow::FileTypeWindow(BPoint position, const BMessage& refs)  
    7777        B_TRANSLATE_COMMENT("Same as" B_UTF8_ELLIPSIS,
    7878            "The same TYPE as ..."), new BMessage(kMsgSameTypeAs));
    7979
    80     BLayoutBuilder::Grid<>(fileTypeBox)
     80    BLayoutBuilder::Grid<>(fileTypeBox, padding, padding / 2)
    8181        .SetInsets(padding, padding * 2, padding, padding)
    8282        .Add(fTypeControl, 0, 0, 3, 1)
    83         .Add(fSelectTypeButton, 1, 1)
    84         .Add(fSameTypeAsButton, 2, 1);
     83        .Add(fSelectTypeButton, 0, 1)
     84        .Add(fSameTypeAsButton, 1, 1);
    8585
    8686    // "Icon" group
    8787
    FileTypeWindow::FileTypeWindow(BPoint position, const BMessage& refs)  
    114114            "The same APPLICATION as ..."),
    115115            new BMessage(kMsgSamePreferredAppAs));
    116116
    117     BLayoutBuilder::Grid<>(preferredBox, padding, padding)
     117    BLayoutBuilder::Grid<>(preferredBox, padding, padding / 2)
    118118        .SetInsets(padding, padding * 2, padding, padding)
    119119        .Add(fPreferredField, 0, 0, 3, 1)
    120         .Add(fSelectAppButton, 1, 1)
    121         .Add(fSameAppAsButton, 2, 1);
     120        .Add(fSelectAppButton, 0, 1)
     121        .Add(fSameAppAsButton, 1, 1);
    122122
    123123    BLayoutBuilder::Grid<>(this)
    124124        .SetInsets(padding)
    125125        .Add(fileTypeBox, 0, 0, 2, 1)
    126         .Add(iconBox, 0, 1, 1, 1)
    127         .Add(preferredBox, 1, 1, 1, 1);
     126        .Add(preferredBox, 0, 1, 1, 1)
     127        .Add(iconBox, 1, 1, 1, 1);
    128128
    129129    fTypeControl->MakeFocus(true);
    130130    BMimeType::StartWatching(this);