hopefully patched some of the problems reported by barber <[email protected]> on bug #141

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16547 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2006-02-28 15:54:20 +00:00
parent 52cd65cdf4
commit f764a491bb
+3 -2
View File
@@ -10,6 +10,7 @@
#include "BottomlineWindow.h"
#include "WindowPrivate.h"
#include <String.h>
#include <TextView.h>
@@ -28,7 +29,6 @@ BottomlineWindow::BottomlineWindow()
AddChild(fTextView);
fTextView->SetText("");
fTextView->MakeFocus(true);
BRect screenFrame = (BScreen(B_MAIN_SCREEN_ID).Frame());
BPoint pt;
@@ -101,7 +101,8 @@ BottomlineWindow::HandleInputMethodEvent(BMessage* event, EventList& newEvents)
if (newEvent != NULL) {
newEvent->AddInt32("key", 0);
newEvent->AddInt64("when", system_time());
newEvent->AddData("bytes", B_STRING_TYPE, string + offset, nextOffset - offset);
BString bytes(string + offset, nextOffset - offset);
newEvent->AddString("bytes", bytes);
newEvents.AddItem(newEvent);
}