Commit fb1ec398 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

remove check for putenv().

2007-11-06  Michael Natterer  <mitch@gimp.org>

	* configure.in: remove check for putenv().

	* app/composite/gimp-composite-3dnow-test.c
	* app/composite/gimp-composite-altivec-test.c
	* app/composite/gimp-composite-mmx-test.c
	* app/composite/gimp-composite-sse-test.c
	* app/composite/gimp-composite-sse2-test.c
	* app/composite/gimp-composite-vis-test.c
	* libgimp/gimpui.c
	* plug-ins/uri/uri-backend-wget.c
	* tools/gimp-remote-x11.c: use g_setenv() instead of putenv().


svn path=/trunk/; revision=24076
parent 3ed5d3d7
2007-11-06 Michael Natterer <mitch@gimp.org>
* configure.in: remove check for putenv().
* app/composite/gimp-composite-3dnow-test.c
* app/composite/gimp-composite-altivec-test.c
* app/composite/gimp-composite-mmx-test.c
* app/composite/gimp-composite-sse-test.c
* app/composite/gimp-composite-sse2-test.c
* app/composite/gimp-composite-vis-test.c
* libgimp/gimpui.c
* plug-ins/uri/uri-backend-wget.c
* tools/gimp-remote-x11.c: use g_setenv() instead of putenv().
2007-11-06 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/plug_in.pdb: improved documentation for
......
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>
......@@ -74,7 +73,7 @@ main (int argc, char *argv[])
srand (314159);
putenv ("GIMP_COMPOSITE=0x1");
g_setenv ("GIMP_COMPOSITE", "0x1", TRUE);
iterations = 10;
n_pixels = 8388625;
......
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>
......@@ -74,7 +73,7 @@ main (int argc, char *argv[])
srand (314159);
putenv ("GIMP_COMPOSITE=0x1");
g_setenv ("GIMP_COMPOSITE", "0x1", TRUE);
iterations = 10;
n_pixels = 8388625;
......
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>
......@@ -218,7 +217,7 @@ main (int argc, char *argv[])
srand (314159);
putenv ("GIMP_COMPOSITE=0x1");
g_setenv ("GIMP_COMPOSITE", "0x1", TRUE);
iterations = 10;
n_pixels = 8388625;
......
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>
......@@ -195,7 +194,7 @@ main (int argc, char *argv[])
srand (314159);
putenv ("GIMP_COMPOSITE=0x1");
g_setenv ("GIMP_COMPOSITE", "0x1", TRUE);
iterations = 10;
n_pixels = 8388625;
......
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>
......@@ -151,7 +150,7 @@ main (int argc, char *argv[])
srand (314159);
putenv ("GIMP_COMPOSITE=0x1");
g_setenv ("GIMP_COMPOSITE", "0x1", TRUE);
iterations = 10;
n_pixels = 8388625;
......
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>
......@@ -74,7 +73,7 @@ main (int argc, char *argv[])
srand (314159);
putenv ("GIMP_COMPOSITE=0x1");
g_setenv ("GIMP_COMPOSITE", "0x1", TRUE);
iterations = 10;
n_pixels = 8388625;
......
......@@ -381,7 +381,7 @@ AC_FUNC_VPRINTF
AC_FUNC_ALLOCA
dnl check some more funcs
AC_CHECK_FUNCS(difftime putenv mmap)
AC_CHECK_FUNCS(difftime mmap)
AM_BINRELOC
......
......@@ -19,8 +19,6 @@
#include "config.h"
#include <stdlib.h>
#include <gtk/gtk.h>
#include "libgimpmodule/gimpmodule.h"
......@@ -83,12 +81,10 @@ gimp_ui_init (const gchar *prog_name,
if (display_name)
{
#if defined (GDK_WINDOWING_X11)
const gchar var_name[] = "DISPLAY";
g_setenv ("DISPLAY", display_name, TRUE);
#else
const gchar var_name[] = "GDK_DISPLAY";
g_setenv ("GDK_DISPLAY", display_name, TRUE);
#endif
putenv (g_strdup_printf ("%s=%s", var_name, display_name));
}
gtk_init (NULL, NULL);
......
......@@ -20,7 +20,6 @@
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
......@@ -113,12 +112,10 @@ uri_backend_load_image (const gchar *uri,
dup (p[1]);
close (p[1]);
#ifdef HAVE_PUTENV
/* produce deterministic output */
putenv ("LANGUAGE=C");
putenv ("LC_ALL=C");
putenv ("LANG=C");
#endif
g_setenv ("LANGUAGE", "C", TRUE);
g_setenv ("LC_ALL", "C", TRUE);
g_setenv ("LANG", "C", TRUE);
g_snprintf (timeout_str, sizeof (timeout_str), "%d", TIMEOUT);
......
......@@ -24,8 +24,8 @@
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
......@@ -163,7 +163,7 @@ gimp_remote_launch (GdkScreen *screen,
gint i;
if (startup_id)
putenv (g_strdup_printf ("DESKTOP_STARTUP_ID=%s", startup_id));
g_setenv ("DESKTOP_STARTUP_ID", startup_id, TRUE);
if (file_list->len > 0)
file_list = g_string_prepend (file_list, "\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment