BCatalog was used in the wrong way. Fixes ticket #6198.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
16023f51f8
commit
eb161bde33
@ -37,6 +37,8 @@
|
|||||||
PulseApp::PulseApp(int argc, char **argv)
|
PulseApp::PulseApp(int argc, char **argv)
|
||||||
: BApplication(APP_SIGNATURE)
|
: BApplication(APP_SIGNATURE)
|
||||||
{
|
{
|
||||||
|
be_locale->GetAppCatalog(&fCatalog);
|
||||||
|
|
||||||
prefs = new Prefs();
|
prefs = new Prefs();
|
||||||
|
|
||||||
int mini = false, deskbar = false, normal = false;
|
int mini = false, deskbar = false, normal = false;
|
||||||
@ -246,10 +248,6 @@ LoadInDeskbar()
|
|||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
BCatalog fAppCatalog;
|
|
||||||
|
|
||||||
be_locale->GetAppCatalog(&fAppCatalog);
|
|
||||||
|
|
||||||
PulseApp *pulseapp = new PulseApp(argc, argv);
|
PulseApp *pulseapp = new PulseApp(argc, argv);
|
||||||
pulseapp->Run();
|
pulseapp->Run();
|
||||||
delete pulseapp;
|
delete pulseapp;
|
||||||
|
@ -12,19 +12,23 @@
|
|||||||
#define PULSEAPP_H
|
#define PULSEAPP_H
|
||||||
|
|
||||||
|
|
||||||
#include <app/Application.h>
|
#include <Application.h>
|
||||||
|
#include <Catalog.h>
|
||||||
|
|
||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
|
|
||||||
|
|
||||||
class PulseApp : public BApplication {
|
class PulseApp : public BApplication {
|
||||||
public:
|
public:
|
||||||
PulseApp(int argc, char **argv);
|
PulseApp(int argc, char **argv);
|
||||||
~PulseApp();
|
~PulseApp();
|
||||||
|
|
||||||
Prefs *prefs;
|
Prefs* prefs;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void BuildPulse();
|
void BuildPulse();
|
||||||
|
|
||||||
|
BCatalog fCatalog;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern bool LastEnabledCPU(int cpu);
|
extern bool LastEnabledCPU(int cpu);
|
||||||
|
Loading…
Reference in New Issue
Block a user