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:
parent
80b99a7e99
commit
b136668cb2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user