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 ();
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) {