[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnash-commit
Subject:    [Gnash-commit] gnash ChangeLog gui/aqua.cpp
From:       Markus Gothe <markus () unixrus ! se>
Date:       2007-07-30 17:22:02
Message-ID: E1IFYwU-0005e6-1g () cvs ! savannah ! gnu ! org
[Download RAW message or body]

CVSROOT:	/sources/gnash
Module name:	gnash
Changes by:	Markus Gothe <nihilus>	07/07/30 17:22:01

Modified files:
	.              : ChangeLog 
	gui            : aqua.cpp 

Log message:
	Added 'About' and 'Preferences...' menus.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3870&r2=1.3871
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/aqua.cpp?cvsroot=gnash&r1=1.25&r2=1.26

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3870
retrieving revision 1.3871
diff -u -b -r1.3870 -r1.3871
--- ChangeLog	30 Jul 2007 17:07:01 -0000	1.3870
+++ ChangeLog	30 Jul 2007 17:22:01 -0000	1.3871
@@ -15,6 +15,7 @@
 	* gui/Info.plist.in: Tidy up the version info, fixed icon.
 	* gui/Makefile.am: Build OS X bundle if GUI == AQUA.
 	* gui/aqua.cpp: Implemented OS-version checking and setCursor.
+	  Added 'About' and 'Preferences...' menus.
 
 2007-07-29  Rob Savoye  <rob@deal.welcomehome.org>
 

Index: gui/aqua.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/aqua.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- gui/aqua.cpp	30 Jul 2007 17:07:01 -0000	1.25
+++ gui/aqua.cpp	30 Jul 2007 17:22:01 -0000	1.26
@@ -18,7 +18,7 @@
 // 
 //
 
-/* $Id: aqua.cpp,v 1.25 2007/07/30 17:07:01 nihilus Exp $ */
+/* $Id: aqua.cpp,v 1.26 2007/07/30 17:22:01 nihilus Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -189,14 +189,18 @@
 
 bool AquaGui::createMenu()
 { 	  
+	MenuRef rApplicationMenu;
+	MenuItemIndex outIndex[1];	  
+	
 	GNASH_REPORT_FUNCTION;
-#if 0	
-	/* Enable 'About' */
-	EnableMenuCommand(NULL, kHICommandAbout);	   
+	
 	/* Enable 'Prefereces...' */
 	EnableMenuCommand(NULL, kHICommandPreferences);
-#endif
 	
+	GetIndMenuItemWithCommandID(NULL, kHICommandPreferences, 1, &rApplicationMenu, outIndex);
+
+	/* Enable 'About' */
+	InsertMenuItemTextWithCFString(rApplicationMenu, CFSTR("About gnash"), (short) 0, 0, kHICommandAbout);
 
 	//HIAboutBox(NULL);	
 	return true;



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic