added "gboolean use_shm" to the Gimp struct and to gimp_new().

2002-12-01  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp.[ch]: added "gboolean use_shm" to the Gimp struct
	and to gimp_new().

	* app/app_procs.c: pass "use_shm" to gimp_new().

	* app/plug-in/plug-in.c (plug_in_init): get "use_shm" from the
	passed "gimp".  Don't include "appenv.h" and "app_procs.h".
This commit is contained in:
Michael Natterer 2002-12-01 12:16:03 +00:00 committed by Michael Natterer
parent 7fe6f39fb4
commit 319173b14c
13 changed files with 25 additions and 36 deletions

View File

@ -1,3 +1,13 @@
2002-12-01 Michael Natterer <mitch@gimp.org>
* app/core/gimp.[ch]: added "gboolean use_shm" to the Gimp struct
and to gimp_new().
* app/app_procs.c: pass "use_shm" to gimp_new().
* app/plug-in/plug-in.c (plug_in_init): get "use_shm" from the
passed "gimp". Don't include "appenv.h" and "app_procs.h".
2002-11-30 Michael Natterer <mitch@gimp.org>
* app/display/gimpnavigationview.c: no need to include "appenv.h"

View File

@ -97,6 +97,7 @@ app_init (gint gimp_argc,
the_gimp = gimp_new (be_verbose,
no_data,
no_interface,
use_shm,
stack_trace_mode);
gimp_object_set_name (GIMP_OBJECT (the_gimp), prog_name);

View File

@ -136,6 +136,7 @@ gimp_init (Gimp *gimp)
gimp->be_verbose = FALSE;
gimp->no_data = FALSE;
gimp->no_interface = FALSE;
gimp->use_shm = FALSE;
gimp->message_handler = GIMP_CONSOLE;
gimp->stack_trace_mode = GIMP_STACK_TRACE_NEVER;
@ -426,6 +427,7 @@ Gimp *
gimp_new (gboolean be_verbose,
gboolean no_data,
gboolean no_interface,
gboolean use_shm,
GimpStackTraceMode stack_trace_mode)
{
Gimp *gimp;
@ -435,6 +437,7 @@ gimp_new (gboolean be_verbose,
gimp->be_verbose = be_verbose ? TRUE : FALSE;
gimp->no_data = no_data ? TRUE : FALSE;
gimp->no_interface = no_interface ? TRUE : FALSE;
gimp->use_shm = use_shm ? TRUE : FALSE;
gimp->stack_trace_mode = stack_trace_mode;
return gimp;

View File

@ -54,6 +54,7 @@ struct _Gimp
gboolean be_verbose;
gboolean no_data;
gboolean no_interface;
gboolean use_shm;
GimpMessageHandlerType message_handler;
GimpStackTraceMode stack_trace_mode;
@ -143,6 +144,7 @@ GType gimp_get_type (void) G_GNUC_CONST;
Gimp * gimp_new (gboolean be_verbose,
gboolean no_data,
gboolean no_interface,
gboolean use_shm,
GimpStackTraceMode stack_trace_mode);
void gimp_set_config (Gimp *gimp,

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}

View File

@ -104,9 +104,6 @@
#include "plug-in-progress.h"
#include "plug-in-rc.h"
#include "appenv.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
@ -273,7 +270,7 @@ plug_in_init (Gimp *gimp)
* to plug-ins. if we can't allocate a piece of shared memory then
* we'll fall back on sending the data over the pipe.
*/
if (use_shm)
if (gimp->use_shm)
plug_in_init_shm ();
}