mirror of https://github.com/GNOME/gimp.git
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
This commit is contained in:
parent
3ed5d3d7ce
commit
fb1ec39812
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#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;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#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;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#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;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#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;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#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;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#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");
|
||||
|
|
Loading…
Reference in New Issue