[gnome-chess] Use set_application_name and set_default_icon_name



commit 2bd3d33bc18ab6b91f52ca61d9e6e3f6efaf40fb
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Feb 5 15:46:09 2014 -0600

    Use set_application_name and set_default_icon_name

 src/gnome-chess.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index b0bda37..5214dd8 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -94,6 +94,9 @@ public class Application : Gtk.Application
     {
         base.startup ();
 
+        Environment.set_application_name (_("Chess"));
+        Gtk.Window.set_default_icon_name ("gnome-chess");
+
         settings = new Settings ("org.gnome.gnome-chess");
 
         var data_dir = File.new_for_path (Path.build_filename (Environment.get_user_data_dir (), 
"gnome-chess", null));
@@ -148,7 +151,6 @@ public class Application : Gtk.Application
         last_move_image.icon_name = rtl ? "go-last-rtl-symbolic" : "go-last-symbolic";
 
         window.add_action_entries (window_entries, this);
-        window.icon_name = "gnome-chess";
         add_window (window);
 
         scene = new ChessScene ();


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