[gnote] Do not use Glib::RefPtr to invoke tag event
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Do not use Glib::RefPtr to invoke tag event
- Date: Sun, 23 May 2021 18:35:46 +0000 (UTC)
commit 4e0b77eae865d2499a710af581afa44ca548762e
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun May 23 21:35:10 2021 +0300
Do not use Glib::RefPtr to invoke tag event
src/watchers.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 397f35b9..33559bbc 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -1266,8 +1266,7 @@ namespace gnote {
const Glib::RefPtr<Gtk::TextTag>& tag(*tag_iter);
if (NoteTagTable::tag_is_activatable (tag)) {
- Glib::RefPtr<Gtk::TextView> editor(get_window()->editor());
- retval = tag->event(editor, event, iter);
+ retval = gtk_text_tag_event(tag->gobj(), G_OBJECT(get_window()->editor()->gobj()), event,
iter.gobj());
if (retval) {
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]