fdf6f6fc64
It is backported from the upstream commit: https://git.gnome.org/browse/gnote/commit/?id=df504af Approved by: bapt
11 lines
498 B
C++
11 lines
498 B
C++
--- src/addins/todo/todonoteaddin.cpp.orig 2015-11-28 15:44:34 UTC
|
|
+++ src/addins/todo/todonoteaddin.cpp
|
|
@@ -42,7 +42,7 @@ TodoModule::TodoModule()
|
|
void Todo::initialize()
|
|
{
|
|
FOREACH(const std::string & s, s_todo_patterns) {
|
|
- if(get_note()->get_tag_table()->lookup(s) == 0) {
|
|
+ if(!get_note()->get_tag_table()->lookup(s)) {
|
|
Glib::RefPtr<Gtk::TextTag> tag = Gtk::TextTag::create(s);
|
|
tag->property_foreground() = "#0080f0";
|
|
tag->property_weight() = PANGO_WEIGHT_BOLD;
|