* Changed the signature of "Backgrounds" to follow how those signatures
are supposed to look like. * Fixed Screen to have the correct signature for Backgrounds (had the one from Be before). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16865 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2005, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2002-2006, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <Window.h>
|
||||
|
||||
|
||||
static const char *kSignature = "application/x-vnd.haiku.Backgrounds";
|
||||
static const char *kSignature = "application/x-vnd.haiku-backgrounds";
|
||||
|
||||
|
||||
class BackgroundsApplication : public BApplication {
|
||||
|
||||
@@ -57,7 +57,7 @@ resource mini_icon
|
||||
$"FFFF00000E0F0F0F0F0F0F000F0F0FFF"
|
||||
};
|
||||
|
||||
resource app_signature "application/x-vnd.haiku.Backgrounds";
|
||||
resource app_signature "application/x-vnd.haiku-backgrounds";
|
||||
|
||||
resource app_version
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2001-2005, Haiku.
|
||||
* Copyright 2001-2006, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -37,7 +37,8 @@ static const uint32 DIM_COUNT_MSG = 'scrf';
|
||||
static const uint32 MAKE_INITIAL_MSG = 'mkin';
|
||||
|
||||
// Constants
|
||||
static const char kAppSignature[] = "application/x-vnd.Be-SCRN";
|
||||
extern const char* kBackgroundsSignature;
|
||||
|
||||
static const int32 gMinRefresh = 45; // This is the minimum selectable refresh
|
||||
static const int32 gMaxRefresh = 140; // This is the maximum selectable refresh
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2001-2005, Haiku.
|
||||
* Copyright 2001-2006, Haiku.
|
||||
* Copyright 2002, Thomas Kurschel.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
@@ -45,7 +45,7 @@ MonitorView::AttachedToWindow()
|
||||
void
|
||||
MonitorView::MouseDown(BPoint point)
|
||||
{
|
||||
be_roster->Launch("application/x-vnd.Be-BACK");
|
||||
be_roster->Launch(kBackgroundsSignature);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2001-2005, Haiku.
|
||||
* Copyright 2001-2006, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -18,6 +18,9 @@
|
||||
#include <Alert.h>
|
||||
|
||||
|
||||
static const char* kAppSignature = "application/x-vnd.Be-SCRN";
|
||||
|
||||
|
||||
ScreenApplication::ScreenApplication()
|
||||
: BApplication(kAppSignature),
|
||||
fScreenWindow(new ScreenWindow(new ScreenSettings()))
|
||||
|
||||
@@ -57,6 +57,8 @@
|
||||
// undefine to get standard refresh rates from driver
|
||||
|
||||
|
||||
const char* kBackgroundsSignature = "application/x-vnd.haiku-backgrounds";
|
||||
|
||||
// list of officially supported colour spaces
|
||||
static const struct {
|
||||
color_space space;
|
||||
@@ -836,7 +838,7 @@ ScreenWindow::MessageReceived(BMessage* message)
|
||||
break;
|
||||
|
||||
case BUTTON_LAUNCH_BACKGROUNDS_MSG:
|
||||
be_roster->Launch("application/x-vnd.Be-BACK");
|
||||
be_roster->Launch(kBackgroundsSignature);
|
||||
break;
|
||||
|
||||
case BUTTON_DEFAULTS_MSG:
|
||||
|
||||
Reference in New Issue
Block a user