File tree Expand file tree Collapse file tree 11 files changed +18
-18
lines changed
Expand file tree Collapse file tree 11 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ public class Scratch.Plugins.BracketsCompletion : Scratch.Plugins.PluginBase {
5656 keys[Gdk . Key . quotedbl] = " \" " ;
5757 keys[Gdk . Key . grave] = " `" ;
5858
59- iface. hook_document. connect (on_hook_document);
59+ doc_hook_handler = iface. hook_document. connect (on_hook_document);
6060 }
6161
6262 protected override void deactivate_internal () {
63- this . disconnect (doc_hook_handler);
63+ iface . disconnect (doc_hook_handler);
6464 }
6565
6666 void on_hook_document (Scratch .Services .Document doc ) {
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public class Scratch.Plugins.DetectIndent: Scratch.Plugins.PluginBase {
8787 }
8888
8989 protected override void deactivate_internal () {
90- this . disconnect (doc_hook_handler);
90+ iface . disconnect (doc_hook_handler);
9191 }
9292}
9393
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public class Scratch.Plugins.EditorConfigPlugin: Scratch.Plugins.PluginBase {
8686 }
8787
8888 protected override void deactivate_internal () {
89- this . disconnect (doc_hook_handler);
89+ iface . disconnect (doc_hook_handler);
9090 }
9191}
9292
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ public class Scratch.Plugins.FuzzySearch: Scratch.Plugins.PluginBase {
7373 cancellable. cancel ();
7474 }
7575
76- this . disconnect (window_hook_handler);
77- this . disconnect (folder_hook_handler);
76+ iface . disconnect (window_hook_handler);
77+ iface . disconnect (folder_hook_handler);
7878 }
7979
8080 private void add_actions () {
Original file line number Diff line number Diff line change 33 BEGIN LICENSE
44 Copyright (C) 2019-24 elementary, Inc. <https://elementary.io>
55 2013 Madelynn May <madelynnmay@madelynnmay.com>
6-
6+
77 This program is free software: you can redistribute it and/or modify it
88 under the terms of the GNU Lesser General Public License version 3, as published
99 by the Free Software Foundation.
@@ -57,8 +57,8 @@ public class Scratch.Plugins.HighlightSelectedWords : Scratch.Plugins.PluginBase
5757 current_source. selection_changed. disconnect (on_selection_changed);
5858 }
5959
60- this . disconnect (window_hook_handler);
61- this . disconnect (doc_hook_handler);
60+ iface . disconnect (window_hook_handler);
61+ iface . disconnect (doc_hook_handler);
6262 }
6363
6464 public void on_selection_changed (ref Gtk .TextIter start , ref Gtk .TextIter end ) {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public class Scratch.Plugins.MarkdownActions : Scratch.Plugins.PluginBase {
4747 current_source. notify[" language" ]. disconnect (configure_shortcuts);
4848 }
4949
50- this . disconnect (doc_hook_handler);
50+ iface . disconnect (doc_hook_handler);
5151 }
5252
5353 private void configure_shortcuts () {
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ public class Scratch.Plugins.Pastebin : Scratch.Plugins.PluginBase {
5252
5353 protected override void deactivate_internal () {
5454 remove_actions ();
55- this . disconnect (menu_hook_handler);
56- this . disconnect (doc_hook_handler);
55+ iface . disconnect (menu_hook_handler);
56+ iface . disconnect (doc_hook_handler);
5757 }
5858
5959 void on_hook_share_menu (GLib .MenuModel menu ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public class Scratch.Plugins.PreserveIndent : Scratch.Plugins.PluginBase {
5151
5252 protected override void deactivate_internal () {
5353 this . documents. clear ();
54- this . disconnect (doc_hook_handler);
54+ iface . disconnect (doc_hook_handler);
5555 }
5656
5757 // determine how many characters precede a given iterator position
Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ public class Scratch.Plugins.Spell: Scratch.Plugins.PluginBase {
123123 protected override void deactivate_internal () {
124124 save_settings ();
125125 window. destroy. disconnect (save_settings);
126- this . disconnect (window_hook_handler);
127- this . disconnect (doc_hook_handler);
126+ iface . disconnect (window_hook_handler);
127+ iface . disconnect (doc_hook_handler);
128128 }
129129
130130 private void language_changed_spell (Scratch . Widgets . SourceView view) {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public class Scratch.Plugins.VimEmulation : Scratch.Plugins.PluginBase {
5757 v. key_press_event. disconnect (handle_key_press);
5858 }
5959
60- this . disconnect (doc_hook_handler);
60+ iface . disconnect (doc_hook_handler);
6161 }
6262
6363 private bool handle_key_press (Gdk .EventKey event ) {
You can’t perform that action at this time.
0 commit comments