diff --git a/src/NetManager.vala b/src/NetManager.vala index a19f007..6cbb15d 100644 --- a/src/NetManager.vala +++ b/src/NetManager.vala @@ -135,9 +135,15 @@ public class Tootle.NetManager : GLib.Object { public void load_image (string url, Gtk.Image image) { var msg = new Soup.Message("GET", url); msg.finished.connect(() => { - var data = msg.response_body.flatten ().data; - var stream = new MemoryInputStream.from_data (data); - var pixbuf = new Gdk.Pixbuf.from_stream (stream); + // var data = msg.response_body.flatten ().data; + // var stream = new MemoryInputStream.from_data (data); + // var pixbuf = new Gdk.Pixbuf.from_stream (stream); + // image.set_from_pixbuf (pixbuf); + + var loader = new PixbufLoader (); + loader.write (msg.response_body.data); + loader.close (); + var pixbuf = loader.get_pixbuf (); image.set_from_pixbuf (pixbuf); }); Tootle.network.queue (msg); diff --git a/src/Views/HomeView.vala b/src/Views/HomeView.vala index 555082c..fbd53b8 100644 --- a/src/Views/HomeView.vala +++ b/src/Views/HomeView.vala @@ -16,15 +16,6 @@ public class Tootle.HomeView : Tootle.AbstractView { request (); } - public override void clear (){ - max_id = -1; - view.forall (widget => { - widget.destroy (); - }); - - pre_construct (); - } - public override string get_icon () { return "user-home-symbolic"; }