[gnote] Remove note actions from ActionManager
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove note actions from ActionManager
- Date: Fri, 31 May 2013 19:53:52 +0000 (UTC)
commit 67b87317d6294c5f2c0c3d9bcca4ece63f3fa4bf
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri May 31 22:20:16 2013 +0300
Remove note actions from ActionManager
Moved this functionality to EmbeddableWidget
src/actionmanager.cpp | 17 -----------------
src/actionmanager.hpp | 4 ----
src/iactionmanager.hpp | 4 ----
3 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index d68b8e6..89f32c2 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -329,23 +329,6 @@ namespace gnote {
return get_main_window_actions(m_main_window_search_actions);
}
- void ActionManager::add_main_window_note_action(const Glib::RefPtr<Gtk::Action> & action, int order)
- {
- add_main_window_action(m_main_window_note_actions, action, order);
- signal_main_window_note_actions_changed();
- }
-
- void ActionManager::remove_main_window_note_action(const std::string & name)
- {
- remove_main_window_action(m_main_window_note_actions, name);
- signal_main_window_note_actions_changed();
- }
-
- std::vector<Glib::RefPtr<Gtk::Action> > ActionManager::get_main_window_note_actions()
- {
- return get_main_window_actions(m_main_window_note_actions);
- }
-
void ActionManager::add_main_window_action(std::map<int, Glib::RefPtr<Gtk::Action> > & actions,
const Glib::RefPtr<Gtk::Action> & action, int order)
{
diff --git a/src/actionmanager.hpp b/src/actionmanager.hpp
index 8bf3048..f4b0b2f 100644
--- a/src/actionmanager.hpp
+++ b/src/actionmanager.hpp
@@ -70,9 +70,6 @@ public:
virtual void add_main_window_search_action(const Glib::RefPtr<Gtk::Action> & action, int order);
virtual void remove_main_window_search_action(const std::string & name);
virtual std::vector<Glib::RefPtr<Gtk::Action> > get_main_window_search_actions();
- virtual void add_main_window_note_action(const Glib::RefPtr<Gtk::Action> & action, int order);
- virtual void remove_main_window_note_action(const std::string & name);
- virtual std::vector<Glib::RefPtr<Gtk::Action> > get_main_window_note_actions();
private:
void make_app_actions();
void make_app_menu_items();
@@ -110,7 +107,6 @@ private:
typedef std::multimap<int, AppMenuItem> AppMenuItemMultiMap;
AppMenuItemMultiMap m_app_menu_items;
std::map<int, Glib::RefPtr<Gtk::Action> > m_main_window_search_actions;
- std::map<int, Glib::RefPtr<Gtk::Action> > m_main_window_note_actions;
};
diff --git a/src/iactionmanager.hpp b/src/iactionmanager.hpp
index 73c1d5f..d871fcb 100644
--- a/src/iactionmanager.hpp
+++ b/src/iactionmanager.hpp
@@ -49,14 +49,10 @@ public:
virtual void add_main_window_search_action(const Glib::RefPtr<Gtk::Action> & action, int order) = 0;
virtual void remove_main_window_search_action(const std::string & name) = 0;
virtual std::vector<Glib::RefPtr<Gtk::Action> > get_main_window_search_actions() = 0;
- virtual void add_main_window_note_action(const Glib::RefPtr<Gtk::Action> & action, int order) = 0;
- virtual void remove_main_window_note_action(const std::string & name) = 0;
- virtual std::vector<Glib::RefPtr<Gtk::Action> > get_main_window_note_actions() = 0;
virtual const Glib::RefPtr<Gtk::UIManager> & get_ui() = 0;
virtual Gtk::Widget * get_widget(const std::string &n) const = 0;
sigc::signal<void> signal_main_window_search_actions_changed;
- sigc::signal<void> signal_main_window_note_actions_changed;
};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]