Make the process a foreground application. (#322481, Wolfgang Thaller)

2006-01-18  Anders Carlsson  <andersca@imendio.com>

        * gdk/quartz/gdkmain-quartz.c:
        (_gdk_windowing_init):
        Make the process a foreground application.
        (#322481, Wolfgang Thaller)
This commit is contained in:
Anders Carlsson 2006-01-18 09:17:39 +00:00 committed by Anders Carlsson
parent 1e05106801
commit 6ebd463287
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2006-01-18 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkmain-quartz.c:
(_gdk_windowing_init):
Make the process a foreground application.
(#322481, Wolfgang Thaller)
2006-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrbtree.c:

View File

@ -1,3 +1,10 @@
2006-01-18 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkmain-quartz.c:
(_gdk_windowing_init):
Make the process a foreground application.
(#322481, Wolfgang Thaller)
2006-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrbtree.c:

View File

@ -21,6 +21,7 @@
#include <config.h>
#include "gdk.h"
#include <ApplicationServices/ApplicationServices.h>
GOptionEntry _gdk_windowing_args[] = {
{ NULL }
@ -29,6 +30,13 @@ GOptionEntry _gdk_windowing_args[] = {
void
_gdk_windowing_init (void)
{
ProcessSerialNumber psn;
/* 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
*/
GetCurrentProcess (&psn);
TransformProcessType (&psn, kProcessTransformToForegroundApplication);
}
void