[ekiga/ds-gtk-application] Engine: Removed more populate* methods.



commit 5058e12e5ccfef7ee81b35157c5ba511c385aa64
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Dec 14 17:36:47 2014 +0100

    Engine: Removed more populate* methods.

 .../components/call-history/history-book.cpp       |    8 --------
 lib/engine/components/call-history/history-book.h  |    2 --
 .../components/call-history/history-source.cpp     |    9 ---------
 .../components/call-history/history-source.h       |    2 --
 lib/engine/gui/gtk-frontend/roster-view-gtk.h      |    6 ------
 lib/engine/presence/presence-core.h                |    6 ------
 lib/engine/presence/uri-presentity.h               |    6 ------
 7 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/lib/engine/components/call-history/history-book.cpp 
b/lib/engine/components/call-history/history-book.cpp
index e489756..be69b14 100644
--- a/lib/engine/components/call-history/history-book.cpp
+++ b/lib/engine/components/call-history/history-book.cpp
@@ -142,14 +142,6 @@ History::Book::add (const std::string & name,
   }
 }
 
-bool
-History::Book::populate_menu (Ekiga::MenuBuilder &builder)
-{
-  builder.add_action ("clear",
-                     _("Clear List"), boost::bind (&History::Book::clear, this));
-  return true;
-}
-
 const std::list<std::string>
 History::Book::existing_groups () const
 {
diff --git a/lib/engine/components/call-history/history-book.h 
b/lib/engine/components/call-history/history-book.h
index 745dbb4..a9d3319 100644
--- a/lib/engine/components/call-history/history-book.h
+++ b/lib/engine/components/call-history/history-book.h
@@ -69,8 +69,6 @@ namespace History
 
     const std::string get_name () const;
 
-    bool populate_menu (Ekiga::MenuBuilder &);
-
     const std::list<std::string> existing_groups () const;
 
     const std::string get_status () const;
diff --git a/lib/engine/components/call-history/history-source.cpp 
b/lib/engine/components/call-history/history-source.cpp
index e126ea4..8aa76ed 100644
--- a/lib/engine/components/call-history/history-source.cpp
+++ b/lib/engine/components/call-history/history-source.cpp
@@ -52,15 +52,6 @@ History::Source::existing_groups () const
   return book->existing_groups ();
 }
 
-bool
-History::Source::populate_menu (Ekiga::MenuBuilder &)
-{
-  /* nothing
-   * unless we want the "clear history" action in the addressbook window menu
-   */
-  return false;
-}
-
 History::BookPtr
 History::Source::get_book () const
 {
diff --git a/lib/engine/components/call-history/history-source.h 
b/lib/engine/components/call-history/history-source.h
index 6aa9f9f..21d6608 100644
--- a/lib/engine/components/call-history/history-source.h
+++ b/lib/engine/components/call-history/history-source.h
@@ -58,8 +58,6 @@ namespace History
 
     ~Source ();
 
-    bool populate_menu (Ekiga::MenuBuilder &);
-
     bool is_supported_uri (const std::string uri) const;
 
     const std::string get_name () const
diff --git a/lib/engine/gui/gtk-frontend/roster-view-gtk.h b/lib/engine/gui/gtk-frontend/roster-view-gtk.h
index 3d89091..9e8ade9 100644
--- a/lib/engine/gui/gtk-frontend/roster-view-gtk.h
+++ b/lib/engine/gui/gtk-frontend/roster-view-gtk.h
@@ -55,12 +55,6 @@ typedef struct _RosterViewGtkClass RosterViewGtkClass;
 GtkWidget *roster_view_gtk_new (boost::shared_ptr<Ekiga::PresenceCore> pcore);
 
 
-/* This method populates the given builder with the actions possible on the
- * selected item, whatever that is (heap, group, presentity)
- */
-bool roster_view_gtk_populate_menu_for_selected (RosterViewGtk* self,
-                                                Ekiga::MenuBuilder& builder);
-
 /* Signals emitted by that widget :
  *
  * - "actions-changed", comes with nothing, and notifies when new
diff --git a/lib/engine/presence/presence-core.h b/lib/engine/presence/presence-core.h
index 2be941e..cb299d4 100644
--- a/lib/engine/presence/presence-core.h
+++ b/lib/engine/presence/presence-core.h
@@ -263,13 +263,7 @@ namespace Ekiga
 
   public:
 
-    /** Create the menu of the actions available in the PresenceCore.
-     * @param A MenuBuilder object to populate.
-     */
-    bool populate_menu (MenuBuilder &builder);
-
     /*** Misc ***/
-
   private:
 
     boost::shared_ptr<PersonalDetails> details;
diff --git a/lib/engine/presence/uri-presentity.h b/lib/engine/presence/uri-presentity.h
index 8507773..dc1c12a 100644
--- a/lib/engine/presence/uri-presentity.h
+++ b/lib/engine/presence/uri-presentity.h
@@ -90,13 +90,7 @@ namespace Ekiga
 
     const std::string get_uri () const;
 
-    /** Populates the given Ekiga::MenuBuilder with the actions.
-     * @param: A MenuBuilder.
-     */
-    bool populate_menu (Ekiga::MenuBuilder& builder);
-
   private:
-
     boost::weak_ptr<Ekiga::PresenceCore> presence_core;
 
     std::string name;


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