}
gc = GConf.Client.get_default ();
- download_posters = gc.get_bool ("/apps/cinaest/download_posters");
- gc.add_dir ("/apps/cinaest", GConf.ClientPreloadType.ONELEVEL);
- cxnid = gc.notify_add ("/apps/cinaest/download_posters", on_download_posters_changed);
+ try {
+ download_posters = gc.get_bool ("/apps/cinaest/download_posters");
+ gc.add_dir ("/apps/cinaest", GConf.ClientPreloadType.ONELEVEL);
+ cxnid = gc.notify_add ("/apps/cinaest/download_posters", on_download_posters_changed);
+ } catch (Error e) {
+ stdout.printf ("Error installing GConf notification: %s\n", e.message);
+ }
}
private static void on_download_posters_changed (GConf.Client gc, uint cxnid, GConf.Entry entry) {
} else if (server != null && download_posters) {
var request = new Request ();
- request.handle = server.fetch (movie.title.down (), movie.year.to_string (), "movie");
+ request.handle = server.Fetch (movie.title.down (), movie.year.to_string (), "movie");
request.movie = movie;
request.callback = callback;
request.width = 268;
} else if (server != null && download_posters) {
var request = new Request ();
- request.handle = server.fetch_thumbnail (movie.title.down (), movie.year.to_string (), "movie");
+ request.handle = server.FetchThumbnail (movie.title.down (), movie.year.to_string (), "movie");
request.movie = movie;
request.callback = callback;
request.width = (int) width;
public void clear_queue () {
if (server != null) {
foreach (Request r in requests)
- server.unqueue (r.handle);
+ server.Unqueue (r.handle);
}
requests = null;
}
public void unqueue () {
if (Factory.get_instance ().server != null)
- Factory.get_instance ().server.unqueue (this.handle);
+ Factory.get_instance ().server.Unqueue (this.handle);
Factory.get_instance ().requests.remove (this);
}