Ticket #7275: shortcuts-about-update.patch

File shortcuts-about-update.patch, 2.3 KB (added by Karvjorm, 9 years ago)

About box update for the Shortcuts preferences

  • src/preferences/shortcuts/ShortcutsApp.cpp

     
    1212
    1313#include <Alert.h>
    1414#include <Catalog.h>
    15 #include <Locale.h>
     15#include <TextView.h>
    1616
    1717#include "ShortcutsWindow.h"
    1818
     
    4646void
    4747ShortcutsApp::AboutRequested()
    4848{
    49     BAlert* alert = new BAlert(B_TRANSLATE("About Shortcuts"),
    50         B_TRANSLATE("Shortcuts\n\n"
    51         "Based on SpicyKeys for BeOS made by Jeremy Friesner."),
    52         B_TRANSLATE("OK"));
     49    BString aboutText(B_TRANSLATE("Shortcuts"));
     50    int32 titleLength = aboutText.Length();
     51    aboutText << "\n\n";
     52    aboutText << B_TRANSLATE("Based on SpicyKeys for BeOS made by Jeremy "
     53        "Friesner.\n");
     54    BAlert* alert = new BAlert(B_TRANSLATE("About Shortcuts"),
     55        aboutText.String(), B_TRANSLATE("OK"));
     56    BTextView* view = alert->TextView();
     57    BFont font;
     58   
     59    view->SetStylable(true);
     60
     61    view->GetFont(&font);
     62    font.SetSize(18);
     63    font.SetFace(B_BOLD_FACE);
     64    view->SetFontAndColor(0, titleLength, &font);
    5365    alert->Go();
    5466}
    5567
  • src/preferences/shortcuts/main.cpp

     
    77 */
    88
    99
    10 #include <Catalog.h>
    11 #include <Locale.h>
    12 
    1310#include "KeyInfos.h"
    1411#include "ShortcutsApp.h"
    1512
  • src/preferences/shortcuts/ShortcutsWindow.cpp

     
    2020#include <File.h>
    2121#include <FindDirectory.h>
    2222#include <Input.h>
    23 #include <Locale.h>
    2423#include <Menu.h>
    2524#include <MenuBar.h>
    2625#include <MenuItem.h>
  • src/preferences/shortcuts/ShortcutsSpec.cpp

     
    1515#include <Beep.h>
    1616#include <Catalog.h>
    1717#include <Directory.h>
    18 #include <Locale.h>
    1918#include <NodeInfo.h>
    2019#include <Path.h>
    2120#include <Region.h>