[gnote] Add constant for spell check item order
- From: Aurimas ÄŒernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add constant for spell check item order
- Date: Sat, 26 Dec 2015 19:09:33 +0000 (UTC)
commit 036f913532af9ad84b976d0a7a13bf1e12d85ced
Author: Aurimas ÄŒernius <aurisc4 gmail com>
Date: Sat Dec 26 20:46:02 2015 +0200
Add constant for spell check item order
src/iactionmanager.hpp | 1 +
src/watchers.cpp | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/iactionmanager.hpp b/src/iactionmanager.hpp
index 2c9575b..50de3c5 100644
--- a/src/iactionmanager.hpp
+++ b/src/iactionmanager.hpp
@@ -39,6 +39,7 @@ enum NoteActionOrder {
REPLACE_TITLE_ORDER = 500,
TABLE_OF_CONTENTS_ORDER = 600,
READ_ONLY_ORDER = 700,
+ SPELL_CHECK_ORDER = 800,
};
class IActionManager
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 2eced44..ced4786 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -34,6 +34,7 @@
#include "sharp/string.hpp"
#include "debug.hpp"
+#include "iactionmanager.hpp"
#include "mainwindow.hpp"
#include "noteeditor.hpp"
#include "notemanager.hpp"
@@ -312,7 +313,7 @@ namespace gnote {
{
std::map<int, Gtk::Widget*> widgets = NoteAddin::get_actions_popover_widgets();
if(m_enabled) {
- utils::add_item_to_ordered_map(widgets, 800,
+ utils::add_item_to_ordered_map(widgets, SPELL_CHECK_ORDER,
utils::create_popover_button("win.enable-spell-check", _("Check spelling")));
}
return widgets;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]