German translation update
[cinaest] / src / plugins / google-plugin.vala
index a99d114..b37a36e 100644 (file)
@@ -152,7 +152,7 @@ class GooglePlugin : Plugin {
                var content = (VBox) dialog.get_content_area ();
                content.pack_start (button, true, true, 0);
 
-               dialog.add_button ("Done", ResponseType.ACCEPT);
+               dialog.add_button (_("Done"), ResponseType.ACCEPT);
 
                dialog.show_all ();
                int res = dialog.run ();
@@ -222,13 +222,21 @@ class GoogleSource : MovieSource {
        public string location;
        public string description;
 
-       public override async void get_movies (MovieFilter filter, MovieSource.ReceiveMovieFunction callback, int limit, Cancellable? cancellable) {
+       public override bool active { get; set construct; }
+
+       public GoogleSource () {
+               GLib.Object (active: true);
+       }
+
+       public override async int get_movies (MovieFilter filter, MovieSource.ReceiveMovieFunction callback, int limit, Cancellable? cancellable) {
                var parser = new GoogleParser ();
 
-               yield parser.query (filter, location, callback, cancellable);
+               int n = yield parser.query (filter, location, callback, cancellable);
                if (location == null) {
                        location = parser.location;
                }
+
+               return n;
        }
 
        public override void add_movie (Movie movie) {