[gnote] More mis-use of sigc::signal removed



commit 9e212e723a382bf6aa24ad667a1972a9fcdc7766
Author: Hubert Figuiere <hub figuiere net>
Date:   Wed May 27 14:50:52 2009 -0400

    More mis-use of sigc::signal removed
---
 src/xkeybinder.cpp |    2 +-
 src/xkeybinder.hpp |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/xkeybinder.cpp b/src/xkeybinder.cpp
index 1cd34cd..f1998c3 100644
--- a/src/xkeybinder.cpp
+++ b/src/xkeybinder.cpp
@@ -45,7 +45,7 @@ namespace gnote {
 
   void XKeybinder::bind(const std::string & keystring, const sigc::slot<void> & handler)
   {
-    m_bindings[keystring].connect(handler);
+    m_bindings[keystring] = handler;
     tomboy_keybinder_bind(keystring.c_str(), &XKeybinder::keybinding_pressed, this);
   }
 
diff --git a/src/xkeybinder.hpp b/src/xkeybinder.hpp
index f1b4dd4..06d9989 100644
--- a/src/xkeybinder.hpp
+++ b/src/xkeybinder.hpp
@@ -24,6 +24,8 @@
 
 #include <map>
 
+#include <sigc++/slot.h>
+
 #include "keybinder.hpp"
 
 namespace gnote {
@@ -41,7 +43,7 @@ public:
 private:
   static void keybinding_pressed(char *keystring, gpointer user_data);
 
-  typedef sigc::signal<void> Handler;
+  typedef sigc::slot<void> Handler;
   typedef std::map<std::string, Handler> BindingMap;
   BindingMap m_bindings;
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]