[ekiga/ds-gtk-application] Call History: Cleanup.



commit 1286c21c31dfa405f8b02a2e44a498a6d6b273f1
Author: Damien Sandras <dsandras seconix com>
Date:   Sat Nov 1 17:47:44 2014 +0100

    Call History: Cleanup.

 .../components/call-history/history-book.cpp       |   15 ++++-----------
 lib/engine/components/call-history/history-book.h  |    4 ----
 2 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/lib/engine/components/call-history/history-book.cpp 
b/lib/engine/components/call-history/history-book.cpp
index e436917..e489756 100644
--- a/lib/engine/components/call-history/history-book.cpp
+++ b/lib/engine/components/call-history/history-book.cpp
@@ -84,7 +84,10 @@ History::Book::Book (Ekiga::ServiceCore& core):
   enforce_size_limit ();
 
   /* Actor actions should be added */
-  register_actions ();
+  add_action (Ekiga::ActionPtr (new Ekiga::Action ("history_book_clear",
+                                                   _("Clear History"),
+                                                   boost::bind (&History::Book::clear,
+                                                                this))));
 }
 
 History::Book::~Book ()
@@ -107,16 +110,6 @@ History::Book::visit_contacts (boost::function1<bool, Ekiga::ContactPtr> visitor
 }
 
 void
-History::Book::register_actions ()
-{
-  /* Add Actor actions */
-  add_action (Ekiga::ActionPtr (new Ekiga::Action ("history_book_clear",
-                                                   _("Clear History"),
-                                                   boost::bind (&History::Book::clear,
-                                                                this))));
-}
-
-void
 History::Book::add (xmlNodePtr node)
 {
   boost::shared_ptr<Ekiga::ContactCore> ccore = contact_core.lock ();
diff --git a/lib/engine/components/call-history/history-book.h 
b/lib/engine/components/call-history/history-book.h
index 1126fb7..b62702d 100644
--- a/lib/engine/components/call-history/history-book.h
+++ b/lib/engine/components/call-history/history-book.h
@@ -80,10 +80,6 @@ namespace History
     { return "document-open-recent"; }
 
 
-    /* Actor api */
-    void register_actions ();
-
-
     /* more specific api */
 
     void add (const std::string & name,


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