summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2003-08-02 21:35:44 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-08-02 21:35:44 +0000
commit0df78ed774d18bb9ee9676cfb79a00eccbee741c (patch)
treefcb00c597922a9253e65d613d5862d146bdf58bf /gdk/x11
parent88c1c94651750789dcad613ee8b09024df142ba2 (diff)
downloadgdk-pixbuf-0df78ed774d18bb9ee9676cfb79a00eccbee741c.tar.gz
Use g_setenv() instead of putenv().
Diffstat (limited to 'gdk/x11')
-rw-r--r--gdk/x11/gdkdisplay-x11.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index dea04722d..0de2d587e 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -764,10 +764,9 @@ _gdk_windowing_set_default_display (GdkDisplay *display)
display_x11->startup_notification_id = g_strdup (startup_id);
/* Clear the environment variable so it won't be inherited by
- * child processes and confuse things. unsetenv isn't portable,
- * right...
+ * child processes and confuse things.
*/
- putenv ("DESKTOP_STARTUP_ID=");
+ g_unsetenv ("DESKTOP_STARTUP_ID");
/* Set the startup id on the leader window so it
* applies to all windows we create on this display