]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/root.cpp
Add ConnSignal action for Connector
[libs/gltk.git] / source / root.cpp
index 32cd87940fe22e71abcef2769f2c3b6516181005..bb3913c73fbf5db85fc85217a98dce872417666a 100644 (file)
@@ -1,9 +1,16 @@
+/* $Id$
+
+This file is part of libmspgltk
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include "root.h"
 
 namespace Msp {
 namespace GLtk {
 
-Root::Root(Resources &r, Window &w):
+Root::Root(Resources &r, Graphics::Window &w):
        Panel(r),
        window(w)
 {
@@ -14,6 +21,8 @@ Root::Root(Resources &r, Window &w):
        window.signal_button_press.connect(sigc::mem_fun(this, &Root::button_press_event));
        window.signal_button_release.connect(sigc::mem_fun(this, &Root::button_release_event));
        window.signal_pointer_motion.connect(sigc::mem_fun(this, &Root::pointer_motion_event));
+       window.signal_key_press.connect(sigc::mem_fun(this, &Root::key_press));
+       window.signal_key_release.connect(sigc::mem_fun(this, &Root::key_release));
 }
 
 void Root::button_press_event(int x, int y, unsigned btn, unsigned)