Author: stippi Date: Mon Mar 22 18:10:49 2010 New Revision: 339 URL: http://mmlr.dyndns.org/changeset/339 Log: Add the value to the notification message as well. Modified: webkit/trunk/WebKit/haiku/WebPositive/DownloadWindow.h webkit/trunk/WebKit/haiku/WebPositive/support/SettingsMessage.cpp Modified: webkit/trunk/WebKit/haiku/WebPositive/DownloadWindow.h ============================================================================== --- webkit/trunk/WebKit/haiku/WebPositive/DownloadWindow.h Mon Mar 22 18:04:31 2010 (r338) +++ webkit/trunk/WebKit/haiku/WebPositive/DownloadWindow.h Mon Mar 22 18:10:49 2010 (r339) @@ -34,11 +34,13 @@ class BFile; class BGroupLayout; class BWebDownload; +class SettingsMessage; class DownloadWindow : public BWindow { public: - DownloadWindow(BRect frame, bool visible); + DownloadWindow(BRect frame, bool visible, + SettingsMessage* settings); virtual ~DownloadWindow(); virtual void MessageReceived(BMessage* message); @@ -55,6 +57,7 @@ private: BGroupLayout* fDownloadViewsLayout; BButton* fRemoveFinishedButton; + SettingsMessage* fSettings; }; Modified: webkit/trunk/WebKit/haiku/WebPositive/support/SettingsMessage.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/WebPositive/support/SettingsMessage.cpp Mon Mar 22 18:04:31 2010 (r338) +++ webkit/trunk/WebKit/haiku/WebPositive/support/SettingsMessage.cpp Mon Mar 22 18:10:49 2010 (r339) @@ -475,6 +475,16 @@ { BMessage message(MSG_SETTINGS_VALUE_CHANGED); message.AddString("name", name); + + // Add the value of that name to the notification. + type_code type; + if (GetInfo(name, &type) == B_OK) { + const void* data; + ssize_t numBytes; + if (FindData(name, type, &data, &numBytes) == B_OK) + message.AddData("value", type, data, numBytes); + } + int32 count = fListeners.CountItems(); for (int32 i = 0; i < count; i++) { BMessenger* listener = reinterpret_cast<BMessenger*>(