change icon loading to use resource
This commit is contained in:
parent
a3d0de7fbe
commit
023bacfe28
BIN
data/ui/pixdata/icon-sernatur.png
Normal file
BIN
data/ui/pixdata/icon-sernatur.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
@ -17,5 +17,6 @@
|
|||||||
<file preprocess="xml-stripblanks">sernatur.window.ui</file>
|
<file preprocess="xml-stripblanks">sernatur.window.ui</file>
|
||||||
<file preprocess="xml-stripblanks">splash.ui</file>
|
<file preprocess="xml-stripblanks">splash.ui</file>
|
||||||
<file preprocess="to-pixdata">pixdata/logo-sernatur.svg</file>
|
<file preprocess="to-pixdata">pixdata/logo-sernatur.svg</file>
|
||||||
|
<file preprocess="to-pixdata">pixdata/icon-sernatur.png</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
</gresources>
|
</gresources>
|
||||||
|
@ -47,12 +47,7 @@ namespace Sernatur {
|
|||||||
window.maximize ();
|
window.maximize ();
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
window.icon = new Image.from_resource ("/cl/cromer/ubb/sernatur/pixdata/icon-sernatur.png").get_pixbuf ();
|
||||||
window.icon = IconTheme.get_default ().load_icon ("sernatur", 48, 0);
|
|
||||||
}
|
|
||||||
catch (Error e) {
|
|
||||||
warning (e.message);
|
|
||||||
}
|
|
||||||
window.present ();
|
window.present ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user