removed BOUNDS, MINIMUM and MAXIMUM. No need to include both <glib.h> and

2000-01-25  Michael Natterer  <mitch@gimp.org>

	* app/appenv.h: removed BOUNDS, MINIMUM and MAXIMUM. No need to
	include both <glib.h> and <gtk/gtk.h>.

	* app/*
	* tools/pdbgen/pdb/text_tool.pdb: s/BOUNDS/CLAMP/,
	same for MIN and MAX.

	* app/preferences_dialog.c: the "Check Size" widget was connected
	to the transparency_type variable.

	* plug-ins/common/sobel.c: removed definitions of MIN and ROUND.

	* libgimp/gimp.h: #include "gimplimits.h" and "gimpcolorspace.h".

	* plug-ins/*: don't include the two files.
This commit is contained in:
Michael Natterer 2000-01-25 23:05:44 +00:00 committed by Michael Natterer
parent 37fc444397
commit 87e527137b
1 changed files with 15 additions and 21 deletions

View File

@ -18,37 +18,31 @@
#ifndef __APPENV_H__ #ifndef __APPENV_H__
#define __APPENV_H__ #define __APPENV_H__
#include "glib.h" #include <gtk/gtk.h>
#include "gtk/gtk.h"
#include "gimpsetF.h" #include "gimpsetF.h"
#include "colormap_dialog.t.h"
/* important macros - we reuse the ones from glib */ typedef enum
#define BOUNDS(a,x,y) CLAMP(a,x,y) {
#define MINIMUM(x,y) MIN(x,y)
#define MAXIMUM(x,y) MAX(x,y)
typedef enum {
MESSAGE_BOX, MESSAGE_BOX,
CONSOLE, CONSOLE,
ERROR_CONSOLE ERROR_CONSOLE
} MessageHandlerType; } MessageHandlerType;
extern int no_interface; extern gint no_interface;
extern int no_splash; extern gint no_splash;
extern int no_splash_image; extern gint no_splash_image;
extern int no_data; extern gint no_data;
extern int be_verbose; extern gint be_verbose;
extern int use_debug_handler; extern gint use_debug_handler;
extern int console_messages; extern gint console_messages;
extern int restore_session; extern gint restore_session;
extern int we_are_exiting; /* this is used in session_get_window_info() */ extern gint we_are_exiting; /* this is used in session_get_window_info() */
extern GimpSet* image_context; extern GimpSet *image_context;
extern MessageHandlerType message_handler; extern MessageHandlerType message_handler;
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
char *quote_spaces (char *string); gchar * quote_spaces (gchar *string);
#endif #endif
#endif /* APPENV_H */ #endif /* __APPENV_H__ */