* 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:
Axel Dörfler
2006-03-23 15:11:07 +00:00
parent 68ead3ea06
commit c5d80d47d8
6 changed files with 15 additions and 9 deletions
+2 -2
View File
@@ -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. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -15,7 +15,7 @@
#include <Window.h> #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 { class BackgroundsApplication : public BApplication {
+1 -1
View File
@@ -57,7 +57,7 @@ resource mini_icon
$"FFFF00000E0F0F0F0F0F0F000F0F0FFF" $"FFFF00000E0F0F0F0F0F0F000F0F0FFF"
}; };
resource app_signature "application/x-vnd.haiku.Backgrounds"; resource app_signature "application/x-vnd.haiku-backgrounds";
resource app_version resource app_version
{ {
+3 -2
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2001-2005, Haiku. * Copyright 2001-2006, Haiku.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -37,7 +37,8 @@ static const uint32 DIM_COUNT_MSG = 'scrf';
static const uint32 MAKE_INITIAL_MSG = 'mkin'; static const uint32 MAKE_INITIAL_MSG = 'mkin';
// Constants // 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 gMinRefresh = 45; // This is the minimum selectable refresh
static const int32 gMaxRefresh = 140; // This is the maximum selectable refresh static const int32 gMaxRefresh = 140; // This is the maximum selectable refresh
+2 -2
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2001-2005, Haiku. * Copyright 2001-2006, Haiku.
* Copyright 2002, Thomas Kurschel. * Copyright 2002, Thomas Kurschel.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
@@ -45,7 +45,7 @@ MonitorView::AttachedToWindow()
void void
MonitorView::MouseDown(BPoint point) MonitorView::MouseDown(BPoint point)
{ {
be_roster->Launch("application/x-vnd.Be-BACK"); be_roster->Launch(kBackgroundsSignature);
} }
+4 -1
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2001-2005, Haiku. * Copyright 2001-2006, Haiku.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -18,6 +18,9 @@
#include <Alert.h> #include <Alert.h>
static const char* kAppSignature = "application/x-vnd.Be-SCRN";
ScreenApplication::ScreenApplication() ScreenApplication::ScreenApplication()
: BApplication(kAppSignature), : BApplication(kAppSignature),
fScreenWindow(new ScreenWindow(new ScreenSettings())) fScreenWindow(new ScreenWindow(new ScreenSettings()))
+3 -1
View File
@@ -57,6 +57,8 @@
// undefine to get standard refresh rates from driver // undefine to get standard refresh rates from driver
const char* kBackgroundsSignature = "application/x-vnd.haiku-backgrounds";
// list of officially supported colour spaces // list of officially supported colour spaces
static const struct { static const struct {
color_space space; color_space space;
@@ -836,7 +838,7 @@ ScreenWindow::MessageReceived(BMessage* message)
break; break;
case BUTTON_LAUNCH_BACKGROUNDS_MSG: case BUTTON_LAUNCH_BACKGROUNDS_MSG:
be_roster->Launch("application/x-vnd.Be-BACK"); be_roster->Launch(kBackgroundsSignature);
break; break;
case BUTTON_DEFAULTS_MSG: case BUTTON_DEFAULTS_MSG: