Ticket #3786: 3786.diff

File 3786.diff, 1.9 KB (added by maxime.simon, 16 years ago)
  • src/preferences/cpufrequency/PreferencesWindow.h

     
    3333#include <MessageFilter.h>
    3434
    3535// headers PreferencesWindow
     36#include <Application.h>
    3637#include <GroupView.h>
    3738#include <Screen.h>
    3839#include <SpaceLayoutItem.h>
     
    375376            break;
    376377           
    377378        case kDefaultMsg:
    378             Defaults();
     379            PreferencesStorage<Preferences>::Defaults();
    379380            fRevertButton->SetEnabled(true);
    380381            if (fPreferencesView)
    381382                PostMessage(kDefaultMsg, fPreferencesView);
    382383            break;
    383384           
    384385        case kRevertMsg:
    385             Revert();
     386            PreferencesStorage<Preferences>::Revert();
    386387            fRevertButton->SetEnabled(false);
    387388            if (fPreferencesView)
    388389                PostMessage(kRevertMsg, fPreferencesView);
     
    425426void
    426427PreferencesWindow<Preferences>::_MoveToPosition()
    427428{
    428     BPoint position = WindowPosition();
     429    BPoint position = PreferencesStorage<Preferences>::WindowPosition();
    429430    // center window on screen if it had a bad position
    430431    if(position.x < 0 && position.y < 0){
    431432        BRect rect = BScreen().Frame();
  • src/preferences/cpufrequency/StatusView.cpp

     
    339339
    340340
    341341StatusView::StatusView(BRect frame, bool inDeskbar,
    342                         PreferencesStorage<freq_preferences>* storage = NULL)
     342                        PreferencesStorage<freq_preferences>* storage)
    343343    : BView(frame, kDeskbarItemName, B_FOLLOW_LEFT | B_FOLLOW_TOP,
    344344        B_WILL_DRAW | B_FRAME_EVENTS),
    345345    fInDeskbar(inDeskbar),
     
    600600
    601601
    602602void
    603 StatusView::ShowPopUpMenu(bool show = true)
     603StatusView::ShowPopUpMenu(bool show)
    604604{
    605605    fShowPopUpMenu = show;
    606606}