[ease] [general] Install an icon.



commit c227fb0b7d5eff68fef209383d2d8c8f27165048
Author: Nate Stedman <natesm gmail com>
Date:   Fri Jul 30 00:43:11 2010 -0400

    [general] Install an icon.

 data/Makefile.am                          |    6 ++-
 data/icons/hicolor/scalable/apps/ease.svg |  103 +++++++++++++++++++++++++++++
 src/ease-main.vala                        |    6 ++-
 3 files changed, 113 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 5553ac3..7126473 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -4,6 +4,10 @@ desktopdir = $(datadir)/applications
 desktop_in_files = ease.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
+# install an icon for the app
+appicondir = $(datadir)/icons/hicolor/scalable/apps
+appicon_DATA = icons/hicolor/scalable/apps/ease.svg
+
 svgdir = $(datadir)/ease/svg
 svg_DATA = $(wildcard $(top_srcdir)/data/svg/*.svg)
 
@@ -35,6 +39,7 @@ whitedir = $(datadir)/ease/themes/White
 white_DATA = themes/White/Theme.json
 
 EXTRA_DIST = \
+    $(appicon_DATA) \
     $(ui_DATA) \
     $(svg_DATA) \
     $(desktop_in_files) \
@@ -46,4 +51,3 @@ EXTRA_DIST = \
     $(green_DATA) \
     $(red_DATA) \
     $(white_DATA)
-
diff --git a/data/icons/hicolor/scalable/apps/ease.svg b/data/icons/hicolor/scalable/apps/ease.svg
new file mode 100644
index 0000000..ab11b84
--- /dev/null
+++ b/data/icons/hicolor/scalable/apps/ease.svg
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; x="0px" y="0px"
+	 width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve">
+<rect x="2" y="8" fill="#888A85" width="44" height="35"/>
+<g>
+	<rect x="3" y="8" fill="#EEEEEC" width="42" height="34"/>
+</g>
+<g>
+	<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="5.751" y1="6.251" x2="42.2505" y2="42.7505">
+		<stop  offset="0" style="stop-color:#D3D7CF"/>
+		<stop  offset="1" style="stop-color:#BABDB6"/>
+	</linearGradient>
+	<rect x="4" y="8" fill="url(#SVGID_1_)" width="40" height="33"/>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="13" x2="40.062" y2="13"/>
+			<path fill="#888A85" d="M40.062,14H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,14,40.062,14z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="13" x2="7.938" y2="13"/>
+			<path fill="#888A85" d="M7.94,14c-0.27,0-0.52-0.11-0.71-0.29C7.04,13.52,6.94,13.26,6.94,13c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.05-0.37,1.42,0c0.18,0.19,0.29,0.45,0.29,0.71c0,0.26-0.11,0.52-0.29,0.71C8.46,13.89,8.2,14,7.94,14z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="19" x2="40.062" y2="19"/>
+			<path fill="#888A85" d="M40.062,20H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,20,40.062,20z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="19" x2="7.938" y2="19"/>
+			<path fill="#888A85" d="M7.94,20c-0.27,0-0.52-0.11-0.71-0.29C7.04,19.52,6.94,19.26,6.94,19c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.41,0c0.19,0.19,0.3,0.45,0.3,0.71c0,0.26-0.11,0.52-0.3,0.71C8.46,19.89,8.2,20,7.94,20z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="25" x2="40.062" y2="25"/>
+			<path fill="#888A85" d="M40.062,26H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,26,40.062,26z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="25" x2="7.938" y2="25"/>
+			<path fill="#888A85" d="M7.94,26c-0.27,0-0.52-0.11-0.71-0.29C7.04,25.52,6.94,25.27,6.94,25c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.41,0c0.19,0.19,0.3,0.45,0.3,0.71c0,0.27-0.11,0.52-0.3,0.71C8.46,25.89,8.2,26,7.94,26z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="31" x2="40.062" y2="31"/>
+			<path fill="#888A85" d="M40.062,32H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,32,40.062,32z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="31" x2="7.938" y2="31"/>
+			<path fill="#888A85" d="M7.94,32c-0.26,0-0.52-0.11-0.71-0.29C7.04,31.52,6.94,31.26,6.94,31c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.42,0c0.18,0.19,0.29,0.45,0.29,0.71c0,0.26-0.11,0.52-0.3,0.71C8.46,31.89,8.2,32,7.94,32z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="37" x2="40.062" y2="37"/>
+			<path fill="#888A85" d="M40.062,38H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,38,40.062,38z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="37" x2="7.938" y2="37"/>
+			<path fill="#888A85" d="M7.94,38c-0.27,0-0.52-0.11-0.71-0.29C7.04,37.52,6.94,37.26,6.94,37c0-0.27,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.41,0c0.19,0.19,0.3,0.44,0.3,0.71c0,0.26-0.11,0.52-0.3,0.71C8.46,37.89,8.2,38,7.94,38z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<path fill="#888A85" d="M1,7V6c0-2.757,2.243-5,5-5h36c2.757,0,5,2.243,5,5v1H1z"/>
+		<path fill="#2E3436" d="M42,2c2.209,0,4,1.791,4,4H2c0-2.209,1.791-4,4-4H42 M42,0H6C2.691,0,0,2.691,0,6v2h2h44h2V6
+			C48,2.691,45.309,0,42,0L42,0z"/>
+	</g>
+	<g>
+		<path fill="#555753" d="M1.5,6.5V6c0-2.481,2.019-4.5,4.5-4.5h36c2.481,0,4.5,2.019,4.5,4.5v0.5H1.5z"/>
+		<path fill="#888A85" d="M42,2c2.209,0,4,1.791,4,4H2c0-2.209,1.791-4,4-4H42 M42,1H6C3.243,1,1,3.243,1,6v1h1h44h1V6
+			C47,3.243,44.757,1,42,1L42,1z"/>
+	</g>
+</g>
+</svg>
diff --git a/src/ease-main.vala b/src/ease-main.vala
index 7cf1163..0bf7277 100644
--- a/src/ease-main.vala
+++ b/src/ease-main.vala
@@ -48,7 +48,11 @@ internal class Ease.Main : GLib.Object
 	 * @param args Program arguments.
 	 */
 	internal static int main(string[] args)
-	{	
+	{
+		// set application name and icon
+		Environment.set_application_name("Ease");
+		Gtk.Window.set_default_icon_name("ease");
+		
 		// parse command line options
 		var context = new OptionContext(_(" - a presentation editor"));
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]