gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/gui aqua.cpp


From: Markus Gothe
Subject: [Gnash-commit] gnash/gui aqua.cpp
Date: Tue, 24 Jul 2007 14:02:27 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  07/07/24 14:02:27

Modified files:
        gui            : aqua.cpp 

Log message:
        Fixed title...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/aqua.cpp?cvsroot=gnash&r1=1.20&r2=1.21

Patches:
Index: aqua.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/aqua.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- aqua.cpp    24 Jul 2007 13:41:34 -0000      1.20
+++ aqua.cpp    24 Jul 2007 14:02:27 -0000      1.21
@@ -18,7 +18,7 @@
 // 
 //
 
-/* $Id: aqua.cpp,v 1.20 2007/07/24 13:41:34 nihilus Exp $ */
+/* $Id: aqua.cpp,v 1.21 2007/07/24 14:02:27 nihilus Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -125,12 +125,8 @@
 bool AquaGui::run()
 {
        GNASH_REPORT_FUNCTION;
-       CreateNewWindow (kDocumentWindowClass,
-                        kWindowStandardDocumentAttributes 
-                       | kWindowStandardHandlerAttribute
-                       | kWindowInWindowMenuAttribute,
-                       &theBounds,
-                       &myWindow);
+       
+       RepositionWindow (myWindow, NULL, kWindowCascadeOnMainScreen);
     ShowWindow(myWindow);
     RunApplicationEventLoop();
     return true;
@@ -195,9 +191,23 @@
 
 bool AquaGui::createWindow(const char* title, int width, int height)
 {
+       CFStringRef     windowTitle;
+       OSStatus        result;
+       
        GNASH_REPORT_FUNCTION;
 
        SetRect(&theBounds, 0, 0, width, height);
+       CreateNewWindow (kDocumentWindowClass,
+                        kWindowStandardDocumentAttributes 
+                       | kWindowStandardHandlerAttribute
+                       | kWindowInWindowMenuAttribute,
+                       &theBounds,
+                       &myWindow);
+                       
+       windowTitle = CFStringCreateWithCString(NULL, title, NULL);
+       result = SetWindowTitleWithCFString(myWindow, windowTitle);
+       CFRelease (windowTitle);                        
+       
        _glue.prepDrawingArea(_width, _height);
     set_render_handler(_renderer);
     return true;




reply via email to

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