[gnote] Make SearchNotesWidget provide gears menu
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make SearchNotesWidget provide gears menu
- Date: Fri, 31 May 2013 19:53:57 +0000 (UTC)
commit e161341ef950986c799b133379bdfb80294f20c3
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri May 31 22:22:51 2013 +0300
Make SearchNotesWidget provide gears menu
src/searchnoteswidget.cpp | 11 +++++++++++
src/searchnoteswidget.hpp | 5 ++++-
2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index b58a2d6..35cabb1 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -29,6 +29,7 @@
#include <gtkmm/stock.h>
#include "debug.hpp"
+#include "iactionmanager.hpp"
#include "iconmanager.hpp"
#include "notemanager.hpp"
#include "notewindow.hpp"
@@ -1403,4 +1404,14 @@ void SearchNotesWidget::size_internals()
}
}
+std::vector<Glib::RefPtr<Gtk::Action> > SearchNotesWidget::get_widget_actions()
+{
+ return IActionManager::obj().get_main_window_search_actions();
+}
+
+sigc::signal<void> & SearchNotesWidget::signal_actions_changed()
+{
+ return IActionManager::obj().signal_main_window_search_actions_changed;
+}
+
}
diff --git a/src/searchnoteswidget.hpp b/src/searchnoteswidget.hpp
index b4bbbe9..502b753 100644
--- a/src/searchnoteswidget.hpp
+++ b/src/searchnoteswidget.hpp
@@ -42,6 +42,7 @@ class SearchNotesWidget
: public Gtk::HPaned
, public EmbeddableWidget
, public SearchableItem
+ , public HasActions
{
public:
SearchNotesWidget(NoteManager & m);
@@ -52,8 +53,10 @@ public:
virtual void hint_position(int & x, int & y);
virtual void hint_size(int & width, int & height);
virtual void size_internals();
-
virtual void perform_search(const std::string & search_text);
+ virtual std::vector<Glib::RefPtr<Gtk::Action> > get_widget_actions();
+ virtual sigc::signal<void> & signal_actions_changed();
+
void select_all_notes_notebook();
void new_note();
void delete_selected_notes();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]