Fixed name and placement for kMsgOpenNetworkPreferences definition.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25337 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-05-07 08:18:21 +00:00
parent 98e6713172
commit c1502c9a45

View File

@ -59,12 +59,11 @@ extern "C" _EXPORT BView *instantiate_deskbar_item(void);
const uint32 kMsgUpdate = 'updt'; const uint32 kMsgUpdate = 'updt';
const uint32 kMsgShowConfiguration = 'shcf'; const uint32 kMsgShowConfiguration = 'shcf';
const uint32 kMsgOpenNetworkPreferences = 'onwp';
const uint32 kMinIconWidth = 16; const uint32 kMinIconWidth = 16;
const uint32 kMinIconHeight = 16; const uint32 kMinIconHeight = 16;
const uint32 kOpenNetworkPref = 'onwp';
const bigtime_t kUpdateInterval = 1000000; const bigtime_t kUpdateInterval = 1000000;
// every second // every second
@ -235,7 +234,7 @@ NetworkStatusView::MessageReceived(BMessage* message)
_ShowConfiguration(message); _ShowConfiguration(message);
break; break;
case kOpenNetworkPref: case kMsgOpenNetworkPreferences:
_OpenNetworksPreferences(); _OpenNetworksPreferences();
break; break;
@ -362,7 +361,7 @@ NetworkStatusView::MouseDown(BPoint point)
menu->AddItem(new BMenuItem("About NetworkStatus" B_UTF8_ELLIPSIS, menu->AddItem(new BMenuItem("About NetworkStatus" B_UTF8_ELLIPSIS,
new BMessage(B_ABOUT_REQUESTED))); new BMessage(B_ABOUT_REQUESTED)));
menu->AddItem(new BMenuItem("Open Networks Preferences" B_UTF8_ELLIPSIS, menu->AddItem(new BMenuItem("Open Networks Preferences" B_UTF8_ELLIPSIS,
new BMessage(kOpenNetworkPref))); new BMessage(kMsgOpenNetworkPreferences)));
if (fInDeskbar) if (fInDeskbar)
menu->AddItem(new BMenuItem("Quit", new BMessage(B_QUIT_REQUESTED))); menu->AddItem(new BMenuItem("Quit", new BMessage(B_QUIT_REQUESTED)));