]> Pileus Git - ~andy/gtk/blob - gdk/quartz/gdkmain-quartz.c
Always set success to TRUE. (gdk_color_change): Implement.
[~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
23 #include "gdk.h"
24 #include <ApplicationServices/ApplicationServices.h>
25
26 const GOptionEntry _gdk_windowing_args[] = {
27   { NULL }
28 };
29
30 void
31 _gdk_windowing_init (void)
32 {
33   ProcessSerialNumber psn = { 0, kCurrentProcess };
34
35   /* Make the current process a foreground application, i.e. an app
36    * with a user interface, in case we're not running from a .app bundle
37    */
38   TransformProcessType (&psn, kProcessTransformToForegroundApplication);
39 }
40
41 void
42 gdk_error_trap_push (void)
43 {
44 }
45
46 gint
47 gdk_error_trap_pop (void)
48 {
49   return 0;
50 }
51
52 gchar *
53 gdk_get_display (void)
54 {
55   return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
56 }
57
58 void
59 gdk_notify_startup_complete (void)
60 {
61   /* FIXME: Implement */
62 }
63
64
65 void
66 _gdk_windowing_display_set_sm_client_id (GdkDisplay  *display,
67                                          const gchar *sm_client_id)
68 {
69 }
70
71 void
72 gdk_set_use_xshm (gboolean use_xshm)
73 {
74   /* Always on, since we're always on the local machine */
75 }
76
77 gboolean
78 gdk_get_use_xshm (void)
79 {
80   return TRUE;
81 }
82