[ease] [general] Added icon to about dialog.



commit 2249b0ea0884c613a3cf2b5af2448f6bd70628bb
Author: Nate Stedman <natesm gmail com>
Date:   Fri Jul 30 08:59:25 2010 -0400

    [general] Added icon to about dialog.

 src/ease-about-dialog.vala |   33 +++++++++++++++++++++------------
 1 files changed, 21 insertions(+), 12 deletions(-)
---
diff --git a/src/ease-about-dialog.vala b/src/ease-about-dialog.vala
index 34348fb..1bad285 100644
--- a/src/ease-about-dialog.vala
+++ b/src/ease-about-dialog.vala
@@ -19,17 +19,19 @@
  * A Gtk.AboutDialog subclass for Ease
  */
 
-internal class Ease.AboutDialog : Gtk.AboutDialog
+public class Ease.AboutDialog : Gtk.AboutDialog
 {
 	const string[] AUTHORS = { "Nate Stedman <natesm gmail com>",
 	                           "Stéphane Maniaci <stephane maniaci gmail com>",
 	                           null };
 	const string[] ARTISTS = { "Nate Stedman <natesm gmail com>", null };
 	
+	const int SIZE = 128;
+	
 	/**
 	 * Creates and runs an "about" dialog.
 	 */
-	internal static void show_about(Gtk.Widget sender)
+	public static void show_about(Gtk.Widget sender)
 	{
 		var about = new AboutDialog();
 		about.run();
@@ -41,7 +43,7 @@ internal class Ease.AboutDialog : Gtk.AboutDialog
 	 * Creates the "About Ease" dialog, with all fields filled out. This
 	 * constructor does not actually run the dialog.
 	 */
-	internal AboutDialog()
+	public AboutDialog()
 	{
 		program_name = "Ease";
 		
@@ -55,6 +57,13 @@ internal class Ease.AboutDialog : Gtk.AboutDialog
 		
 		artists = ARTISTS;
 		
+		try
+		{
+			var theme = Gtk.IconTheme.get_default();
+			logo = theme.load_icon("ease", SIZE, 0);
+		}
+		catch (Error e) { warning("Loading icon file: %s", e.message); }
+		
 		translator_credits = _("""Mario Blättermann
 Matej UrbanÄ?iÄ?
 Jorge González
@@ -158,7 +167,7 @@ permission, would make you directly or secondarily liable for
 infringement under applicable copyright law, except executing it on a
 computer or modifying a private copy.  Propagation includes copying,
 distribution (with or without modification), making available to the
-internal, and in some countries other activities as well.
+public, and in some countries other activities as well.
 
   To "convey" a work means any kind of propagation that enables other
 parties to make or receive copies.  Mere interaction with a user through
@@ -189,7 +198,7 @@ than the work as a whole, that (a) is included in the normal form of
 packaging a Major Component, but which is not part of that Major
 Component, and (b) serves only to enable use of the work with that
 Major Component, or to implement a Standard Interface for which an
-implementation is available to the internal in source code form.  A
+implementation is available to the public in source code form.  A
 "Major Component", in this context, means a major essential component
 (kernel, window system, and so on) of the specific operating system
 (if any) on which the executable work runs, or a compiler used to
@@ -351,7 +360,7 @@ in one of these ways:
 
     e) Convey the object code using peer-to-peer transmission, provided
     you inform other peers where the object code and Corresponding
-    Source of the work are being offered to the general internal at no
+    Source of the work are being offered to the general public at no
     charge under subsection 6d.
 
   A separable portion of the object code, whose source code is excluded
@@ -399,8 +408,8 @@ adversely affects the operation of the network or violates the rules and
 protocols for communication across the network.
 
   Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is internally
-documented (and with an implementation available to the internal in
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
 source code form), and must require no special password or key for
 unpacking, reading or copying.
 
@@ -437,7 +446,7 @@ that material) supplement the terms of this License with terms:
     requiring that modified versions of such material be marked in
     reasonable ways as different from the original version; or
 
-    d) Limiting the use for internality purposes of names of licensors or
+    d) Limiting the use for publicity purposes of names of licensors or
     authors of the material; or
 
     e) Declining to grant rights under trademark law for use of some
@@ -563,7 +572,7 @@ patent against the party.
   If you convey a covered work, knowingly relying on a patent license,
 and the Corresponding Source of the work is not available for anyone
 to copy, free of charge and under the terms of this License, through a
-internally available network server or other readily accessible means,
+publicly available network server or other readily accessible means,
 then you must either (1) cause the Corresponding Source to be so
 available, or (2) arrange to deprive yourself of the benefit of the
 patent license for this particular work, or (3) arrange, in a manner
@@ -642,7 +651,7 @@ by the Free Software Foundation.
 
   If the Program specifies that a proxy can decide which future
 versions of the GNU General Public License can be used, that proxy's
-internal statement of acceptance of a version permanently authorizes you
+public statement of acceptance of a version permanently authorizes you
 to choose that version for the Program.
 
   Later license versions may give you additional or different
@@ -687,7 +696,7 @@ copy of the Program in return for a fee.
             How to Apply These Terms to Your New Programs
 
   If you develop a new program, and you want it to be of the greatest
-possible use to the internal, the best way to achieve this is to make it
+possible use to the public, the best way to achieve this is to make it
 free software which everyone can redistribute and change under these terms.
 
   To do so, attach the following notices to the program.  It is safest



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