Application icon as embedded resource
This commit is contained in:
@@ -10,9 +10,10 @@
|
|||||||
<EmbeddedResource Include="**\*.glade">
|
<EmbeddedResource Include="**\*.glade">
|
||||||
<LogicalName>%(Filename)%(Extension)</LogicalName>
|
<LogicalName>%(Filename)%(Extension)</LogicalName>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<None Update="Icons\icon.png">
|
<None Remove="Icons\icon.png" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<EmbeddedResource Include="Icons\icon.png">
|
||||||
</None>
|
<LogicalName>%(Filename)%(Extension)</LogicalName>
|
||||||
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
using EstusShots.Client;
|
using EstusShots.Client;
|
||||||
using EstusShots.Gtk.Controls;
|
using EstusShots.Gtk.Controls;
|
||||||
using EstusShots.Shared.Dto;
|
using EstusShots.Shared.Dto;
|
||||||
|
using Gdk;
|
||||||
using Gtk;
|
using Gtk;
|
||||||
using UI = Gtk.Builder.ObjectAttribute;
|
using UI = Gtk.Builder.ObjectAttribute;
|
||||||
|
using Window = Gtk.Window;
|
||||||
|
|
||||||
namespace EstusShots.Gtk
|
namespace EstusShots.Gtk
|
||||||
{
|
{
|
||||||
@@ -31,6 +33,8 @@ namespace EstusShots.Gtk
|
|||||||
|
|
||||||
DeleteEvent += Window_DeleteEvent;
|
DeleteEvent += Window_DeleteEvent;
|
||||||
|
|
||||||
|
Icon = Pixbuf.LoadFromResource("icon.png");
|
||||||
|
|
||||||
// Call initialization code of each page
|
// Call initialization code of each page
|
||||||
InitSeasonsPage();
|
InitSeasonsPage();
|
||||||
InitEpisodesPage();
|
InitEpisodesPage();
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
<property name="title" translatable="yes">Estus Shots</property>
|
<property name="title" translatable="yes">Estus Shots</property>
|
||||||
<property name="default_width">800</property>
|
<property name="default_width">800</property>
|
||||||
<property name="default_height">600</property>
|
<property name="default_height">600</property>
|
||||||
<property name="icon">Icons/icon.png</property>
|
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
|
|||||||
Reference in New Issue
Block a user