summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-08-31 09:38:14 +0200
committerAlexander Larsson <alexl@redhat.com>2009-08-31 15:06:01 +0200
commitb18afe905437f0d4a0faad03cee2fb1770b68b69 (patch)
treee4a081fde30194db9938da84e2799e298e142a1c /gdk/gdk.c
parent4d3b19fa7cd4177d66ab6f20b52bf49ead10eb41 (diff)
downloadgtk+-b18afe905437f0d4a0faad03cee2fb1770b68b69.tar.gz
Don't propagate GDK_NATIVE_WINDOWS to child processes
Generally you only need to work around bugs in one specific app, so we don't want to affect the applications that application will start. Thus we unset GDK_NATIVE_WINDOWS after reading it.
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 6b81cc7de2..5dd2fae952 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -206,8 +206,13 @@ gdk_pre_parse_libgtk_only (void)
}
#endif /* G_ENABLE_DEBUG */
- if (getenv("GDK_NATIVE_WINDOWS"))
- _gdk_native_windows = TRUE;
+ if (getenv ("GDK_NATIVE_WINDOWS"))
+ {
+ _gdk_native_windows = TRUE;
+ /* Ensure that this is not propagated
+ to spawned applications */
+ g_unsetenv ("GDK_NATIVE_WINDOWS");
+ }
g_type_init ();