2005-11-22 10:03:32 +00:00
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
|
2008-06-22 14:28:52 +00:00
|
|
|
#include "config.h"
|
2008-05-05 18:14:27 +00:00
|
|
|
#include <dlfcn.h>
|
2005-11-22 10:03:32 +00:00
|
|
|
|
|
|
|
#include "gdk.h"
|
2006-01-18 09:17:39 +00:00
|
|
|
#include <ApplicationServices/ApplicationServices.h>
|
2005-11-22 10:03:32 +00:00
|
|
|
|
2006-04-03 20:36:52 +00:00
|
|
|
const GOptionEntry _gdk_windowing_args[] = {
|
2005-11-22 10:03:32 +00:00
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_init (void)
|
|
|
|
{
|
2006-07-29 11:05:15 +00:00
|
|
|
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
2008-05-05 18:14:27 +00:00
|
|
|
void (*_gtk_quartz_framework_init_ptr) (void);
|
2006-01-18 09:17:39 +00:00
|
|
|
|
|
|
|
/* 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);
|
2008-05-05 18:14:27 +00:00
|
|
|
|
|
|
|
/* 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 ();
|
2005-11-22 10:03:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_error_trap_push (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
gint
|
|
|
|
gdk_error_trap_pop (void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-03-27 10:47:29 +00:00
|
|
|
gchar *
|
|
|
|
gdk_get_display (void)
|
|
|
|
{
|
|
|
|
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
|
|
|
|
}
|
|
|
|
|
2005-11-22 10:03:32 +00:00
|
|
|
void
|
|
|
|
gdk_notify_startup_complete (void)
|
|
|
|
{
|
2007-03-15 18:06:58 +00:00
|
|
|
/* FIXME: Implement? */
|
2005-11-22 10:03:32 +00:00
|
|
|
}
|
|
|
|
|
2007-03-15 18:06:58 +00:00
|
|
|
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? */
|
|
|
|
}
|
2005-11-22 10:03:32 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_display_set_sm_client_id (GdkDisplay *display,
|
|
|
|
const gchar *sm_client_id)
|
|
|
|
{
|
|
|
|
}
|