change icon loading to use resource

This commit is contained in:
Chris Cromer 2019-01-03 20:42:21 -03:00
parent a3d0de7fbe
commit 023bacfe28
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
3 changed files with 2 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -17,5 +17,6 @@
<file preprocess="xml-stripblanks">sernatur.window.ui</file>
<file preprocess="xml-stripblanks">splash.ui</file>
<file preprocess="to-pixdata">pixdata/logo-sernatur.svg</file>
<file preprocess="to-pixdata">pixdata/icon-sernatur.png</file>
</gresource>
</gresources>

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