Movie list window: use gettext plural forms
[cinaest] / src / plugins / imdb-download-dialog.vala
index 8173c0d..165c6c9 100644 (file)
@@ -21,10 +21,12 @@ using Hildon;
 
 class IMDbDownloadDialog : Note {
        private bool plots;
+       private bool actors;
 
-       public IMDbDownloadDialog (Gtk.Window window, bool _plots) {
+       public IMDbDownloadDialog (Gtk.Window window, bool _plots, bool _actors) {
                transient_parent = window;
                plots = _plots;
+               actors = _actors;
        }
 
        construct {
@@ -35,12 +37,13 @@ class IMDbDownloadDialog : Note {
        public new void run (dynamic DBus.Object server, string mirror) {
                int res;
                try {
-                       server.Progress += this.on_progress;
-                       server.DescriptionChanged += this.on_description_changed;
-
+                       server.Progress.connect (this.on_progress);
+                       server.DescriptionChanged.connect (this.on_description_changed); 
                        int flags = IMDbDownloader.MOVIES | IMDbDownloader.GENRES | IMDbDownloader.RATINGS | IMDbDownloader.AKAS;
                        if (plots)
                                flags |= IMDbDownloader.PLOTS;
+                       if (actors)
+                               flags |= IMDbDownloader.ACTORS;
 
                        server.download (mirror, flags);
                } catch (DBus.Error e) {