[gnote] Update readonly
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update readonly
- Date: Tue, 8 Oct 2019 20:04:41 +0000 (UTC)
commit f10bce8949d80826ab45502d66a3908fc4788562
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Oct 6 21:47:27 2019 +0300
Update readonly
src/addins/readonly/readonly.desktop.in.in | 2 +-
src/addins/readonly/readonlynoteaddin.cpp | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/addins/readonly/readonly.desktop.in.in b/src/addins/readonly/readonly.desktop.in.in
index ad7cb5a4..a1e5785a 100644
--- a/src/addins/readonly/readonly.desktop.in.in
+++ b/src/addins/readonly/readonly.desktop.in.in
@@ -4,7 +4,7 @@ _Name=Read Only
_Description=Mark certain notes as read only
_Authors=Aurimas Černius, Debarshi Ray and Arief Bayu Purwanto
Category=Tools
-Version=0.3
+Version=0.4
DefaultEnabled=false
Module=libreadonly
LibgnoteRelease=@LIBGNOTE_RELEASE@
diff --git a/src/addins/readonly/readonlynoteaddin.cpp b/src/addins/readonly/readonlynoteaddin.cpp
index ffcc651c..0ade7b18 100644
--- a/src/addins/readonly/readonlynoteaddin.cpp
+++ b/src/addins/readonly/readonlynoteaddin.cpp
@@ -22,7 +22,7 @@
#include "debug.hpp"
#include "iactionmanager.hpp"
-#include "itagmanager.hpp"
+#include "notemanagerbase.hpp"
#include "notewindow.hpp"
#include "readonlynoteaddin.hpp"
#include "tag.hpp"
@@ -74,7 +74,7 @@ std::vector<gnote::PopoverWidget> ReadOnlyNoteAddin::get_actions_popover_widgets
void ReadOnlyNoteAddin::on_foreground()
{
auto action = get_window()->host()->find_action("readonly-toggle");
- gnote::ITagManager & m = gnote::ITagManager::obj();
+ gnote::ITagManager & m = manager().tag_manager();
const gnote::Tag::Ptr ro_tag = m.get_or_create_system_tag("read-only");
m_readonly_toggle_cid = action->signal_change_state()
@@ -89,7 +89,7 @@ void ReadOnlyNoteAddin::on_background()
void ReadOnlyNoteAddin::on_menu_item_toggled(const Glib::VariantBase & state)
{
- gnote::ITagManager & m = gnote::ITagManager::obj();
+ gnote::ITagManager & m = manager().tag_manager();
const gnote::Tag::Ptr ro_tag = m.get_or_create_system_tag("read-only");
bool read_only = Glib::VariantBase::cast_dynamic<Glib::Variant<bool>>(state).get();
auto action = get_window()->host()->find_action("readonly-toggle");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]