Initalize framework if there is one.

2008-05-05  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkmain-quartz.c (_gdk_windowing_init): Initalize
	framework if there is one.

svn path=/trunk/; revision=20075
This commit is contained in:
Richard Hult 2008-05-05 18:14:27 +00:00 committed by Richard Hult
parent 80b99a7e99
commit b136668cb2
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-05-05 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkmain-quartz.c (_gdk_windowing_init): Initalize
framework if there is one.
2008-05-05 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellrenderercombo.h

View File

@ -19,6 +19,7 @@
*/
#include <config.h>
#include <dlfcn.h>
#include "gdk.h"
#include <ApplicationServices/ApplicationServices.h>
@ -31,11 +32,17 @@ void
_gdk_windowing_init (void)
{
ProcessSerialNumber psn = { 0, kCurrentProcess };
void (*_gtk_quartz_framework_init_ptr) (void);
/* Make the current process a foreground application, i.e. an app
* with a user interface, in case we're not running from a .app bundle
*/
TransformProcessType (&psn, kProcessTransformToForegroundApplication);
/* Initialize GTK+ framework if there is one. */
_gtk_quartz_framework_init_ptr = dlsym (RTLD_DEFAULT, "_gtk_quartz_framework_init");
if (_gtk_quartz_framework_init_ptr)
_gtk_quartz_framework_init_ptr ();
}
void