summaryrefslogtreecommitdiffstats
path: root/client/screen_layer.cpp
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-09-15 10:18:16 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-09-15 10:24:45 +0200
commita20e6bb0121c92fc475ed48165150abccf0a19a7 (patch)
tree96e9d2976b5fab46a637db9f848f104d45e5f187 /client/screen_layer.cpp
parent011266555a78e000a69caf9c3009f71caa9f7dc2 (diff)
downloadspice-a20e6bb0121c92fc475ed48165150abccf0a19a7.tar.gz
spice-a20e6bb0121c92fc475ed48165150abccf0a19a7.tar.xz
spice-a20e6bb0121c92fc475ed48165150abccf0a19a7.zip
fix typos
applicaion => application Attache => Attach Detache => Detach _layes => _layers
Diffstat (limited to 'client/screen_layer.cpp')
-rw-r--r--client/screen_layer.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/client/screen_layer.cpp b/client/screen_layer.cpp
index 4515be2e..02abef24 100644
--- a/client/screen_layer.cpp
+++ b/client/screen_layer.cpp
@@ -25,9 +25,9 @@
#include "application.h"
#include "debug.h"
-class AttacheLayerEvent: public SyncEvent {
+class AttachLayerEvent: public SyncEvent {
public:
- AttacheLayerEvent(ScreenLayer& layer, int screen_id)
+ AttachLayerEvent(ScreenLayer& layer, int screen_id)
: _layer (layer)
, _screen_id (screen_id)
{
@@ -40,16 +40,16 @@ private:
int _screen_id;
};
-void AttacheLayerEvent::do_response(AbstractProcessLoop& events_loop)
+void AttachLayerEvent::do_response(AbstractProcessLoop& events_loop)
{
Application* app = (Application*)(events_loop.get_owner());
AutoRef<RedScreen> screen(app->get_screen(_screen_id));
(*screen)->attach_layer(_layer);
}
-class DetacheLayerEvent: public SyncEvent {
+class DetachLayerEvent: public SyncEvent {
public:
- DetacheLayerEvent(ScreenLayer& _layer) : _layer (_layer) {}
+ DetachLayerEvent(ScreenLayer& _layer) : _layer (_layer) {}
virtual void do_response(AbstractProcessLoop& events_loop);
@@ -57,7 +57,7 @@ private:
ScreenLayer& _layer;
};
-void DetacheLayerEvent::do_response(AbstractProcessLoop& events_loop)
+void DetachLayerEvent::do_response(AbstractProcessLoop& events_loop)
{
_layer.screen()->detach_layer(_layer);
}
@@ -210,13 +210,13 @@ bool ScreenLayer::contains_point(int x, int y)
return !!region_contains_point(&_area, x, y);
}
-void ScreenLayer::attach_to_screen(Application& applicaion, int screen_id)
+void ScreenLayer::attach_to_screen(Application& application, int screen_id)
{
if (_screen) {
return;
}
- AutoRef<AttacheLayerEvent> event(new AttacheLayerEvent(*this, screen_id));
- applicaion.push_event(*event);
+ AutoRef<AttachLayerEvent> event(new AttachLayerEvent(*this, screen_id));
+ application.push_event(*event);
(*event)->wait();
if (!(*event)->success()) {
THROW("attach failed");
@@ -224,13 +224,13 @@ void ScreenLayer::attach_to_screen(Application& applicaion, int screen_id)
ASSERT(_screen);
}
-void ScreenLayer::detach_from_screen(Application& applicaion)
+void ScreenLayer::detach_from_screen(Application& application)
{
if (!_screen) {
return;
}
- AutoRef<DetacheLayerEvent> event(new DetacheLayerEvent(*this));
- applicaion.push_event(*event);
+ AutoRef<DetachLayerEvent> event(new DetachLayerEvent(*this));
+ application.push_event(*event);
(*event)->wait();
if (!(*event)->success()) {
THROW("detach failed");