Provide plugins with Osso context
[cinaest] / src / plugins / imdb-plugin.vala
index 3382cb1..b2a5f05 100644 (file)
@@ -22,8 +22,9 @@ using Hildon;
 class IMDbPlugin : Plugin {
        private dynamic DBus.Object server;
        List<MovieSource> sources;
+       private weak Osso.Context osso_context;
 
-       public override void hello (Gtk.Window window) {
+       public override void hello (Gtk.Window window, Osso.Context context) {
                string filename = Path.build_filename (Environment.get_user_cache_dir(),
                                                       "cinaest", "imdb.db", null);
                stdout.printf ("IMDb Plugin Loaded. Cache Db: %s\n", filename);
@@ -44,6 +45,8 @@ class IMDbPlugin : Plugin {
                sources = new List<MovieSource> ();
                sources.append (source);
 
+               osso_context = context;
+
                // FIXME - this forces the inclusion of config.h
                (void) Config.GETTEXT_PACKAGE;
        }