Commit 319173b1 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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".
parent 7fe6f39f
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"
......
......@@ -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);
......
......@@ -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;
......
......@@ -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,
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
......@@ -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 ();
}
......
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