]> Pileus Git - ~andy/gtk/blob - gdk/quartz/gdkmain-quartz.c
3dfe53ea7e79801a7879ba53076d3760bcbf586b
[~andy/gtk] / gdk / quartz / gdkmain-quartz.c
1 /* gdkmain-quartz.c
2  *
3  * Copyright (C) 2005 Imendio AB
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #include "config.h"
22 #include <dlfcn.h>
23
24 #include "gdk.h"
25 #include <ApplicationServices/ApplicationServices.h>
26
27 const GOptionEntry _gdk_windowing_args[] = {
28   { NULL }
29 };
30
31 void
32 _gdk_windowing_init (void)
33 {
34   ProcessSerialNumber psn = { 0, kCurrentProcess };
35   void (*_gtk_quartz_framework_init_ptr) (void);
36
37   /* Make the current process a foreground application, i.e. an app
38    * with a user interface, in case we're not running from a .app bundle
39    */
40   TransformProcessType (&psn, kProcessTransformToForegroundApplication);
41
42   /* Initialize GTK+ framework if there is one. */
43   _gtk_quartz_framework_init_ptr = dlsym (RTLD_DEFAULT, "_gtk_quartz_framework_init");
44   if (_gtk_quartz_framework_init_ptr)
45     _gtk_quartz_framework_init_ptr ();
46 }
47
48 void
49 gdk_error_trap_push (void)
50 {
51 }
52
53 gint
54 gdk_error_trap_pop (void)
55 {
56   return 0;
57 }
58
59 void
60 gdk_error_trap_pop_ignored (void)
61 {
62 }
63
64 void
65 gdk_notify_startup_complete (void)
66 {
67   /* FIXME: Implement? */
68 }
69
70 void
71 gdk_notify_startup_complete_with_id (const gchar* startup_id)
72 {
73   /* FIXME: Implement? */
74 }
75
76 void          
77 gdk_window_set_startup_id (GdkWindow   *window,
78                            const gchar *startup_id)
79 {
80   /* FIXME: Implement? */
81 }