gdkmain-quartz.c 2.03 KB
Newer Older
Anders Carlsson's avatar
Anders Carlsson committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/* gdkmain-quartz.c
 *
 * Copyright (C) 2005 Imendio AB
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

21
#include "config.h"
22
#include <dlfcn.h>
Anders Carlsson's avatar
Anders Carlsson committed
23 24

#include "gdk.h"
25
#include <ApplicationServices/ApplicationServices.h>
Anders Carlsson's avatar
Anders Carlsson committed
26

27
const GOptionEntry _gdk_windowing_args[] = {
Anders Carlsson's avatar
Anders Carlsson committed
28 29 30 31 32 33
  { NULL }
};

void
_gdk_windowing_init (void)
{
34
  ProcessSerialNumber psn = { 0, kCurrentProcess };
35
  void (*_gtk_quartz_framework_init_ptr) (void);
36 37 38 39 40

  /* 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);
41 42 43 44 45

  /* 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 ();
Anders Carlsson's avatar
Anders Carlsson committed
46 47 48 49 50 51 52 53 54 55 56 57 58
}

void
gdk_error_trap_push (void)
{
}

gint
gdk_error_trap_pop (void)
{
  return 0;
}

59 60 61 62 63
void
gdk_error_trap_pop_ignored (void)
{
}

Anders Carlsson's avatar
Anders Carlsson committed
64 65 66
void
gdk_notify_startup_complete (void)
{
67
  /* FIXME: Implement? */
Anders Carlsson's avatar
Anders Carlsson committed
68 69
}

70 71 72 73 74 75 76 77 78 79 80 81
void
gdk_notify_startup_complete_with_id (const gchar* startup_id)
{
  /* FIXME: Implement? */
}

void          
gdk_window_set_startup_id (GdkWindow   *window,
			   const gchar *startup_id)
{
  /* FIXME: Implement? */
}
Anders Carlsson's avatar
Anders Carlsson committed
82 83 84 85 86 87

void
_gdk_windowing_display_set_sm_client_id (GdkDisplay  *display,
					 const gchar *sm_client_id)
{
}