From c1502c9a45e07369705d0c8cee9c6e0d7c0d1358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 7 May 2008 08:18:21 +0000 Subject: [PATCH] Fixed name and placement for kMsgOpenNetworkPreferences definition. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25337 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/networkstatus/NetworkStatusView.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/apps/networkstatus/NetworkStatusView.cpp b/src/apps/networkstatus/NetworkStatusView.cpp index d8a6f0b2d6..10fea3293c 100644 --- a/src/apps/networkstatus/NetworkStatusView.cpp +++ b/src/apps/networkstatus/NetworkStatusView.cpp @@ -59,12 +59,11 @@ extern "C" _EXPORT BView *instantiate_deskbar_item(void); const uint32 kMsgUpdate = 'updt'; const uint32 kMsgShowConfiguration = 'shcf'; +const uint32 kMsgOpenNetworkPreferences = 'onwp'; const uint32 kMinIconWidth = 16; const uint32 kMinIconHeight = 16; -const uint32 kOpenNetworkPref = 'onwp'; - const bigtime_t kUpdateInterval = 1000000; // every second @@ -235,7 +234,7 @@ NetworkStatusView::MessageReceived(BMessage* message) _ShowConfiguration(message); break; - case kOpenNetworkPref: + case kMsgOpenNetworkPreferences: _OpenNetworksPreferences(); break; @@ -362,7 +361,7 @@ NetworkStatusView::MouseDown(BPoint point) menu->AddItem(new BMenuItem("About NetworkStatus" B_UTF8_ELLIPSIS, new BMessage(B_ABOUT_REQUESTED))); menu->AddItem(new BMenuItem("Open Networks Preferences" B_UTF8_ELLIPSIS, - new BMessage(kOpenNetworkPref))); + new BMessage(kMsgOpenNetworkPreferences))); if (fInDeskbar) menu->AddItem(new BMenuItem("Quit", new BMessage(B_QUIT_REQUESTED)));