[gtk+] Don't propagate GDK_NATIVE_WINDOWS to child processes
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Don't propagate GDK_NATIVE_WINDOWS to child processes
- Date: Mon, 31 Aug 2009 13:49:09 +0000 (UTC)
commit b18afe905437f0d4a0faad03cee2fb1770b68b69
Author: Alexander Larsson <alexl redhat com>
Date: Mon Aug 31 09:38:14 2009 +0200
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.
gdk/gdk.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 6b81cc7..5dd2fae 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]