Patch by plfiorini: Integration of InfoPopper as a system service. See ticket
#1245. There are some TODOs outlined in the ticket, but they will be much easier to review as individual patches against trunk, versus as a new version of the huge patch. I've messed a lot with src/servers/notification/NotificationsView.cpp in order to resolve a crash I was getting when testing this thing (rewrote line wrapping). I've also replaced the icons with the one that zuMi did long ago. Thanks, plfiorini, for working on this code as much as you did! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36949 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2010, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2009, Pier Luigi Fiorini.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Pier Luigi Fiorini, [email protected]
|
||||
*/
|
||||
|
||||
#include <Application.h>
|
||||
|
||||
#include "PrefletWin.h"
|
||||
|
||||
class PrefletApp : public BApplication {
|
||||
public:
|
||||
PrefletApp();
|
||||
|
||||
virtual void ReadyToRun();
|
||||
virtual bool QuitRequested();
|
||||
|
||||
private:
|
||||
PrefletWin* fWindow;
|
||||
};
|
||||
|
||||
|
||||
PrefletApp::PrefletApp()
|
||||
:
|
||||
BApplication("application/x-vnd.Haiku-Notifications")
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PrefletApp::ReadyToRun()
|
||||
{
|
||||
fWindow = new PrefletWin;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
PrefletApp::QuitRequested()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
PrefletApp app;
|
||||
app.Run();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user