~voluntatefaber/beat-box/bug952329

« back to all changes in this revision

Viewing changes to src/BeatBox.vala

  • Committer: xapantu
  • Date: 2012-01-25 18:16:59 UTC
  • mto: This revision was merged to the branch mainline in revision 542.
  • Revision ID: xapantu@gmail.com-20120125181659-vhjbycocrk7wss93
Plugin system

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        public static int command_line_event() {
140
140
                return 0;
141
141
        }
 
142
 
 
143
    Plugins.Manager plugins_manager;
 
144
 
 
145
    public Beatbox () {
 
146
        plugins_manager = new Plugins.Manager (new GLib.Settings ("org.gnomes.beatbox.ui"),  "plugins-enabled", Build.CMAKE_INSTALL_PREFIX + "/lib/beatbox/", null);
 
147
    }
142
148
    
143
149
        protected override void activate () {
144
150
                if (_program != null) {
149
155
                
150
156
                _program = new BeatBox.LibraryWindow(this, args);
151
157
                _program.build_ui();
 
158
        plugins_manager.hook_new_window (_program);
152
159
                Timeout.add(15000, () => {
153
160
                        if(!_program.lm.have_fetched_new_podcasts) {
154
161
                                _program.lm.pm.find_new_podcasts();