change icon loading to use resource

This commit is contained in:
2019-01-03 20:42:21 -03:00
parent a3d0de7fbe
commit 023bacfe28
3 changed files with 2 additions and 6 deletions

View File

@@ -47,12 +47,7 @@ namespace Sernatur {
window.maximize ();
}
try {
window.icon = IconTheme.get_default ().load_icon ("sernatur", 48, 0);
}
catch (Error e) {
warning (e.message);
}
window.icon = new Image.from_resource ("/cl/cromer/ubb/sernatur/pixdata/icon-sernatur.png").get_pixbuf ();
window.present ();
}