gtk+ r20075 - in trunk: . gdk/quartz



Author: rhult
Date: Mon May  5 18:14:27 2008
New Revision: 20075
URL: http://svn.gnome.org/viewvc/gtk+?rev=20075&view=rev

Log:
2008-05-05  Richard Hult  <richard imendio com>

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


Modified:
   trunk/ChangeLog
   trunk/gdk/quartz/gdkmain-quartz.c

Modified: trunk/gdk/quartz/gdkmain-quartz.c
==============================================================================
--- trunk/gdk/quartz/gdkmain-quartz.c	(original)
+++ trunk/gdk/quartz/gdkmain-quartz.c	Mon May  5 18:14:27 2008
@@ -19,6 +19,7 @@
  */
 
 #include <config.h>
+#include <dlfcn.h>
 
 #include "gdk.h"
 #include <ApplicationServices/ApplicationServices.h>
@@ -31,11 +32,17 @@
 _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



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