[gnote] Make builtin plugins use note popover sections
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make builtin plugins use note popover sections
- Date: Sun, 31 Mar 2019 16:08:01 +0000 (UTC)
commit 56ece69c30c47f317da09c404c5ec1a90c66685a
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Mar 31 18:38:34 2019 +0300
Make builtin plugins use note popover sections
src/notebooks/notebooknoteaddin.cpp | 2 +-
src/watchers.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/notebooks/notebooknoteaddin.cpp b/src/notebooks/notebooknoteaddin.cpp
index 7563d467..da8f63ed 100644
--- a/src/notebooks/notebooknoteaddin.cpp
+++ b/src/notebooks/notebooknoteaddin.cpp
@@ -108,7 +108,7 @@ namespace notebooks {
auto widgets = NoteAddin::get_actions_popover_widgets();
if(!get_note()->contains_tag(get_template_tag())) {
Gtk::Widget *notebook_button = utils::create_popover_submenu_button("notebooks-submenu",
_("Notebook"));
- widgets.push_back(gnote::PopoverWidget::create_for_note(gnote::NOTEBOOK_ORDER, notebook_button));
+ widgets.push_back(gnote::PopoverWidget(gnote::NOTE_SECTION_CUSTOM_SECTIONS, gnote::NOTEBOOK_ORDER,
notebook_button));
auto submenu = utils::create_popover_submenu("notebooks-submenu");
update_menu(submenu);
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 4ec32340..7e5b8c6c 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -312,7 +312,7 @@ namespace gnote {
auto widgets = NoteAddin::get_actions_popover_widgets();
if(m_enabled) {
auto button = utils::create_popover_button("win.enable-spell-check", _("Check spelling"));
- widgets.push_back(gnote::PopoverWidget::create_for_note(SPELL_CHECK_ORDER, button));
+ widgets.push_back(gnote::PopoverWidget(NOTE_SECTION_FLAGS, SPELL_CHECK_ORDER, button));
}
return widgets;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]