gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash backend/gnash.cpp ./ChangeLog


From: John Gilmore
Subject: [Gnash-commit] gnash backend/gnash.cpp ./ChangeLog
Date: Sat, 04 Feb 2006 09:57:27 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     John Gilmore <address@hidden>   06/02/04 09:57:27

Modified files:
        backend        : gnash.cpp 
        .              : ChangeLog 

Log message:
        * backend/gnash.cpp:  Set window title to "gnash: " and movie name.
        Correct help/usage string.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/backend/gnash.cpp.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.82&tr2=1.83&r1=text&r2=text

Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.82 gnash/ChangeLog:1.83
--- gnash/ChangeLog:1.82        Sat Feb  4 09:14:25 2006
+++ gnash/ChangeLog     Sat Feb  4 09:57:27 2006
@@ -1,3 +1,8 @@
+2006-02-04  John Gilmore  <address@hidden>
+
+       * backend/gnash.cpp:  Set window title to "gnash: " and movie name.
+       Correct help/usage string.
+
 2006-02-04  Rob Savoye  <address@hidden>
 
        * doc/C/netconnection.xml: Update with more detailed data on this
Index: gnash/backend/gnash.cpp
diff -u gnash/backend/gnash.cpp:1.9 gnash/backend/gnash.cpp:1.10
--- gnash/backend/gnash.cpp:1.9 Wed Feb  1 23:58:32 2006
+++ gnash/backend/gnash.cpp     Sat Feb  4 09:57:27 2006
@@ -54,7 +54,7 @@
 print_usage()
 {
   printf(
-         "gnash -- a standalone OpenGL player.\n"
+         "gnash -- a standalone Flash player.\n"
          "\n"
          "usage: gnash [options] movie_file.swf\n"
          "\n"
@@ -471,6 +471,13 @@
       exit(1);
     }
     
+    // Set the window title
+    char *window_title = new char[1+strlen("gnash: ")+strlen(infile)];
+    strcpy(window_title, "gnash: ");
+    strcat(window_title, infile);
+    SDL_WM_SetCaption(window_title, window_title);
+
+    //
     ogl::open();
     
     // Turn on alpha blending.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]