~sschuhmann/scratch/gtk-stack

« back to all changes in this revision

Viewing changes to plugins/strip-trailing-save/strip-trailing-save.vala

  • Committer: Steffen Schuhmann
  • Date: 2014-06-01 21:15:13 UTC
  • mfrom: (1253.2.52 scratch)
  • Revision ID: schuhmannsteffen@mailbox.org-20140601211513-3rdpix87m4xjmwhp
Merged against root branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        plugins = (Scratch.Services.Interface) object;   
34
34
        plugins.hook_window.connect ((w) => {
35
35
            this.main_window = w;
36
 
            main_actions.pre_activate.connect (on_save);
37
 
            action_save = main_actions.get_action ("SaveFile");
 
36
            w.main_actions.pre_activate.connect (on_save);
 
37
            action_save = w.main_actions.get_action ("SaveFile");
38
38
        });
39
39
    }
40
40
 
42
42
     * Deactivate plugin.
43
43
     */
44
44
    public void deactivate () {
45
 
        main_actions.pre_activate.disconnect(on_save);
 
45
        this.main_window.main_actions.pre_activate.disconnect(on_save);
46
46
    }
47
47
 
48
48
    /*