Move Environment.set_application_name call before the main window creation
authorPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 15 Oct 2009 13:37:54 +0000 (15:37 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 30 Oct 2009 22:10:29 +0000 (23:10 +0100)
So the application name appears as window title.

src/main.vala

index 6da6bfd..28ec410 100644 (file)
@@ -22,12 +22,12 @@ public class CinaestProgram : Hildon.Program {
        MovieListWindow window;
 
        construct {
+               Environment.set_application_name ("Cinæst");
+
                window = new MovieListWindow ();
                window.destroy.connect (Gtk.main_quit);
 
                add_window (window);
-
-               Environment.set_application_name ("Cinæst");
        }
 
        public void run () {