[gnote] Add popover widget handling in NoteAddin
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add popover widget handling in NoteAddin
- Date: Sat, 12 Dec 2015 18:31:17 +0000 (UTC)
commit 2580f04ae682f03f0ed08d15736871c43d886ddd
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 12 20:20:46 2015 +0200
Add popover widget handling in NoteAddin
src/noteaddin.cpp | 9 +++++++--
src/noteaddin.hpp | 4 +++-
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/noteaddin.cpp b/src/noteaddin.cpp
index c820464..ec13b92 100644
--- a/src/noteaddin.cpp
+++ b/src/noteaddin.cpp
@@ -47,7 +47,7 @@ namespace gnote {
if (disposing) {
for(std::list<std::string>::const_iterator iter = m_note_actions.begin();
iter != m_note_actions.end(); ++iter) {
- get_window()->remove_widget_action(*iter);
+ //get_window()->remove_widget_action(*iter);
}
for(std::list<Gtk::MenuItem*>::const_iterator iter = m_text_menu_items.begin();
iter != m_text_menu_items.end(); ++iter) {
@@ -99,7 +99,7 @@ namespace gnote {
}
m_note_actions.push_back(action->get_name());
- get_window()->add_widget_action(action, order);
+ //get_window()->add_widget_action(action, order);
}
void NoteAddin::add_tool_item (Gtk::ToolItem *item, int position)
@@ -140,5 +140,10 @@ namespace gnote {
}
return dynamic_cast<Gtk::Window*>(note_window->host());
}
+
+ std::map<int, Gtk::Widget*> NoteAddin::get_actions_popover_widgets() const
+ {
+ return std::map<int, Gtk::Widget*>();
+ }
}
diff --git a/src/noteaddin.hpp b/src/noteaddin.hpp
index 40c7f3b..ccf1e74 100644
--- a/src/noteaddin.hpp
+++ b/src/noteaddin.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012-2014 Aurimas Cernius
+ * Copyright (C) 2012-2015 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -74,6 +74,8 @@ public:
/// </summary>
virtual void on_note_opened () = 0;
+ virtual std::map<int, Gtk::Widget*> get_actions_popover_widgets() const;
+
const Note::Ptr & get_note() const
{
return m_note;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]