Revision: 6788
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6788&view=rev
Author:   jeremy_asher
Date:     2008-07-07 14:26:06 -0700 (Mon, 07 Jul 2008)

Log Message:
-----------
Fixed title bar to update when a new worldfile is loaded

Modified Paths:
--------------
    code/stage/trunk/libstage/worldgui.cc

Modified: code/stage/trunk/libstage/worldgui.cc
===================================================================
--- code/stage/trunk/libstage/worldgui.cc       2008-07-07 21:18:14 UTC (rev 
6787)
+++ code/stage/trunk/libstage/worldgui.cc       2008-07-07 21:26:06 UTC (rev 
6788)
@@ -138,12 +138,7 @@
   graphics = true;
   paused = false;
 
-  // improve the title bar to say "Stage: <worldfile name>"
-  std::string title = PROJECT;
-  title += ": ";
-  if ( L )
-    title += L;
-  label( title.c_str() );
+  label( PROJECT );
 
   interval_real = (stg_usec_t)thousand * DEFAULT_INTERVAL_REAL;
        
@@ -224,6 +219,14 @@
   // configure the canvas
   canvas->Load(  wf, window_section );
        
+  std::string title = PROJECT;
+  if ( wf->filename ) {
+    // improve the title bar to say "Stage: <worldfile name>"
+    title += ": ";             
+    title += wf->filename;
+  }
+  label( title.c_str() );
+       
   updateOptions();
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to