mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-27 13:13:20 +00:00
22 lines
377 B
Vala
22 lines
377 B
Vala
using Gtk;
|
|
using Gdk;
|
|
|
|
public class Tooth.Widgets.Emoji : Adw.Bin {
|
|
|
|
protected Image image;
|
|
|
|
construct {
|
|
image = new Gtk.Image ();
|
|
child = image;
|
|
}
|
|
|
|
|
|
public Emoji (string emoji_url) {
|
|
image_cache.request_paintable (emoji_url, on_cache_response);
|
|
}
|
|
|
|
void on_cache_response (bool is_loaded, owned Paintable? data) {
|
|
(child as Image).paintable = data;
|
|
}
|
|
}
|