Added missing private AddShortcut variant.

Minor style update.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8194 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-06-27 21:32:52 +00:00
parent bb776f87af
commit 71786a380c
+19 -7
View File
@@ -35,6 +35,7 @@
#include <Window.h>
#include <View.h>
#include <MenuBar.h>
#include <MenuItem.h>
#include <String.h>
#include <Screen.h>
#include <Button.h>
@@ -1093,23 +1094,34 @@ void BWindow::SetPulseRate(bigtime_t rate){
//------------------------------------------------------------------------------
bigtime_t BWindow::PulseRate() const{
bigtime_t
BWindow::PulseRate() const
{
return fPulseRate;
}
//------------------------------------------------------------------------------
void BWindow::AddShortcut( uint32 key, uint32 modifiers, BMessage* msg){
AddShortcut( key, modifiers, msg, this);
void
BWindow::AddShortcut(uint32 key, uint32 modifiers, BMenuItem *item)
{
AddShortcut(key, modifiers, item->Message(), this);
}
//------------------------------------------------------------------------------
void BWindow::AddShortcut( uint32 key, uint32 modifiers, BMessage* msg, BHandler* target){
void
BWindow::AddShortcut(uint32 key, uint32 modifiers, BMessage *msg)
{
AddShortcut(key, modifiers, msg, this);
}
void
BWindow::AddShortcut(uint32 key, uint32 modifiers, BMessage *msg, BHandler *target)
{
/*
NOTE: I'm not sure if it is OK to use 'key'
*/
if ( !msg )
if (msg == NULL)
return;
int64 when;