Ticket #3786: 3786.diff
File 3786.diff, 1.9 KB (added by , 16 years ago) |
---|
-
src/preferences/cpufrequency/PreferencesWindow.h
33 33 #include <MessageFilter.h> 34 34 35 35 // headers PreferencesWindow 36 #include <Application.h> 36 37 #include <GroupView.h> 37 38 #include <Screen.h> 38 39 #include <SpaceLayoutItem.h> … … 375 376 break; 376 377 377 378 case kDefaultMsg: 378 Defaults();379 PreferencesStorage<Preferences>::Defaults(); 379 380 fRevertButton->SetEnabled(true); 380 381 if (fPreferencesView) 381 382 PostMessage(kDefaultMsg, fPreferencesView); 382 383 break; 383 384 384 385 case kRevertMsg: 385 Revert();386 PreferencesStorage<Preferences>::Revert(); 386 387 fRevertButton->SetEnabled(false); 387 388 if (fPreferencesView) 388 389 PostMessage(kRevertMsg, fPreferencesView); … … 425 426 void 426 427 PreferencesWindow<Preferences>::_MoveToPosition() 427 428 { 428 BPoint position = WindowPosition();429 BPoint position = PreferencesStorage<Preferences>::WindowPosition(); 429 430 // center window on screen if it had a bad position 430 431 if(position.x < 0 && position.y < 0){ 431 432 BRect rect = BScreen().Frame(); -
src/preferences/cpufrequency/StatusView.cpp
339 339 340 340 341 341 StatusView::StatusView(BRect frame, bool inDeskbar, 342 PreferencesStorage<freq_preferences>* storage = NULL)342 PreferencesStorage<freq_preferences>* storage) 343 343 : BView(frame, kDeskbarItemName, B_FOLLOW_LEFT | B_FOLLOW_TOP, 344 344 B_WILL_DRAW | B_FRAME_EVENTS), 345 345 fInDeskbar(inDeskbar), … … 600 600 601 601 602 602 void 603 StatusView::ShowPopUpMenu(bool show = true)603 StatusView::ShowPopUpMenu(bool show) 604 604 { 605 605 fShowPopUpMenu = show; 606 606 }