Commit c9482821 authored by Sven Neumann's avatar Sven Neumann

mostly header cleanup and i18n


--Sven
parent a4025e05
Tue Feb 1 22:42:26 CET 2000
* app/regex.c
* plug-ins/script-fu/regex.c: remove occurences of gettext, since
we don't translate error messages
* app/[lotsa files]: only include libgimp/gimpintl.h if needed; but
if it gets included, include config.h too
* po/POTFILES.in
* po-plug-ins/POTFILES.in: only list files that mark strings for
translation
2000-02-01 Michael Natterer <mitch@gimp.org>
* app/menus.c
......
......@@ -56,6 +56,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \
......
......@@ -32,6 +32,7 @@
#include "selection.h"
#include "tools.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* The maximum amount of pressure that can be exerted */
......
......@@ -21,8 +21,6 @@
#include "boundary.h"
#include "tile.h"
#include "libgimp/gimpintl.h"
/* half intensity for mask */
#define HALF_WAY 127
......
......@@ -23,6 +23,7 @@
#include "gimpui.h"
#include "image_map.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
......
......@@ -26,6 +26,7 @@
#include "curves.h"
#include "gimplut.h"
#include "config.h"
#include "libgimp/gimpenv.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
......
......@@ -29,6 +29,7 @@
#include "hue_saturation.h"
#include "interface.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
......
......@@ -43,7 +43,6 @@
#include "temp_buf.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
static unsigned char * temp_buf_allocate (unsigned int);
static void temp_buf_to_color (TempBuf *, TempBuf *);
......
......@@ -23,6 +23,7 @@
#include "interface.h"
#include "threshold.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define HISTOGRAM_WIDTH 256
......
......@@ -10,8 +10,6 @@
#include "tile_pvt.h" /* ick. */
#include "libgimp/gimpintl.h"
#include "stdio.h"
/* This is the percentage of the maximum cache size that should be cleared
......
......@@ -25,8 +25,6 @@
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
#include "libgimp/gimpintl.h"
static int tile_manager_get_tile_num (TileManager *tm,
int xpixel,
......
......@@ -26,8 +26,6 @@
#define _O_TEMPORARY 0
#endif
#include "libgimp/gimpintl.h"
#define MAX_OPEN_SWAP_FILES 16
#include "tile.h"
......
......@@ -6,8 +6,6 @@
#include "tile_manager.h"
#include "tile_swap.h"
#include "libgimp/gimpintl.h"
static void tile_destroy (Tile *tile);
......
/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <ctype.h>
......@@ -14,8 +31,6 @@
#include "batch.h"
#include "procedural_db.h"
#include "libgimp/gimpintl.h"
static void batch_run_cmd (char *cmd);
static void batch_read (gpointer data,
gint source,
......
......@@ -21,8 +21,6 @@
#include "boundary.h"
#include "tile.h"
#include "libgimp/gimpintl.h"
/* half intensity for mask */
#define HALF_WAY 127
......
......@@ -24,6 +24,7 @@
#include "image_map.h"
#include "lut_funcs.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define SLIDER_WIDTH 200
......
......@@ -25,6 +25,7 @@
#include "brush_edit.h"
#include "gimpui.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void brush_edit_close_callback (GtkWidget *, gpointer);
......
......@@ -34,6 +34,7 @@
#include "paint_options.h"
#include "session.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define MIN_CELL_SIZE 25
......
......@@ -34,6 +34,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* the bucket fill structures */
......
......@@ -31,6 +31,7 @@
#include "tile.h" /* ick. */
#include "config.h"
#include "libgimp/gimpintl.h"
#define DEFAULT_FUZZINESS 15
......
......@@ -27,6 +27,7 @@
#include "gimpui.h"
#include "interface.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......
......@@ -35,6 +35,7 @@
#include "paint_funcs.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "pixmaps/eye.xbm"
......
......@@ -23,6 +23,7 @@
#include "gimpui.h"
#include "image_map.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
......
......@@ -28,6 +28,7 @@
#include "tools.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* maximum information buffer size */
......
......@@ -14,6 +14,7 @@
#include "gimpdnd.h"
#include "gimpui.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* Add these features:
......
......@@ -56,6 +56,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \
......
......@@ -32,6 +32,7 @@
#include "tools.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define FIELD_COLS 4
......
......@@ -30,6 +30,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"
......
......@@ -25,6 +25,7 @@
#include "gimprc.h"
#include "brush_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
enum{
......
......@@ -25,6 +25,7 @@
#include "gimprc.h"
#include "brush_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
enum{
......
......@@ -28,8 +28,6 @@
#include "gradient_header.h"
#include "patterns.h"
#include "libgimp/gimpintl.h"
#define context_return_if_fail(context) \
g_return_if_fail ((context) != NULL); \
g_return_if_fail (GIMP_IS_CONTEXT (context))
......
......@@ -21,6 +21,7 @@
#include "paint_funcs.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void
......
......@@ -22,6 +22,7 @@
#include "lut_funcs.h"
#include "gimphistogram.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void
......
......@@ -26,6 +26,7 @@
#include "gimplut.h"
#include "lut_funcs.h"
#include "config.h"
#include "libgimp/gimpintl.h"
......
......@@ -27,6 +27,7 @@
#include "gimpui.h"
#include "interface.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......
......@@ -26,6 +26,7 @@
#include "parasitelist.h"
#include "undo.h"
#include "config.h"
#include "libgimp/parasite.h"
#include "libgimp/gimpintl.h"
......
......@@ -30,6 +30,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"
......
......@@ -27,6 +27,7 @@
#include "gimpui.h"
#include "interface.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......
......@@ -33,6 +33,7 @@
#include "pathsP.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimplimits.h"
......
......@@ -30,6 +30,7 @@
#include "paint_options.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"
......
......@@ -33,6 +33,7 @@
#include "pathsP.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimplimits.h"
......
......@@ -33,6 +33,7 @@
#include "pathsP.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimplimits.h"
......
......@@ -33,6 +33,7 @@
#include "pathsP.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimplimits.h"
......
......@@ -33,6 +33,7 @@
#include "pathsP.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimplimits.h"
......
......@@ -33,6 +33,7 @@
#include "pathsP.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimplimits.h"
......
......@@ -29,8 +29,6 @@
#include "tile_manager_pvt.h"
#include "libgimp/gimpintl.h"
#define WAITING 0
#define WORKING 1
......
......@@ -30,6 +30,7 @@
#include "paint_funcs.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"
......
......@@ -35,7 +35,7 @@
#include "gimpsignal.h"
#include "gimppreviewcache.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "libgimp/parasite.h"
......
......@@ -33,6 +33,7 @@
#include "pathsP.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimplimits.h"
......
......@@ -20,7 +20,6 @@
#include "scan_convert.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
#ifdef DEBUG
......
......@@ -32,6 +32,7 @@
#include "info_dialog.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpintl.h"
......
......@@ -26,6 +26,7 @@
#include "curves.h"
#include "gimplut.h"
#include "config.h"
#include "libgimp/gimpenv.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
......
......@@ -21,6 +21,7 @@
#include "paint_funcs.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void
......
......@@ -20,6 +20,7 @@
#include "gimpui.h"
#include "gdisplay.h"
#include "config.h"
#include "libgimp/gimpchainbutton.h"
#include "libgimp/gimplimits.h"
#include "libgimp/gimpsizeentry.h"
......
......@@ -29,6 +29,7 @@
#include "scale.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void gdisplay_close_warning_callback (GtkWidget *, gpointer);
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "color_area.h"
#include "gdisplay.h"
#include "gdisplay_color.h"
......
......@@ -27,7 +27,6 @@
#include "gimpui.h"
#include "libgimp/parasite.h"
#include "libgimp/gimpintl.h"
#include <gtk/gtk.h>
......
......@@ -26,6 +26,7 @@
#include "layer_select.h"
#include "layers_dialogP.h"
#include "config.h"
#include "libgimp/gimpintl.h"
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "appenv.h"
#include "gdisplay.h"
#include "libgimp/gimpintl.h"
......
......@@ -22,6 +22,7 @@
#include "gimpdnd.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpenv.h"
#include "libgimp/gimpintl.h"
......
......@@ -21,6 +21,7 @@
#include "gimage.h"
#include "gimphelp.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void
......
......@@ -22,8 +22,6 @@
#include "gdisplay.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
gint
drawable_ID (GimpDrawable *drawable)
{
......
......@@ -30,6 +30,7 @@
#include "gimprc.h"
#include "paths_dialogP.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define EDIT_SELECT_SCROLL_LOCK FALSE
......
......@@ -26,8 +26,6 @@
#include "rect_selectP.h"
#include "selection_options.h"
#include "libgimp/gimpintl.h"
/* the ellipse selection tool options */
SelectionOptions * ellipse_options = NULL;
......
......@@ -22,6 +22,7 @@
#include "lut_funcs.h"
#include "gimphistogram.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void
......
......@@ -33,6 +33,7 @@
#include "selection.h"
#include "tools.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* Defaults */
......
......@@ -40,8 +40,6 @@
#include "errors.h"
#include "gimpui.h"
#include "libgimp/gimpintl.h"
#ifdef G_OS_WIN32
#include <windows.h>
#endif
......
......@@ -20,6 +20,7 @@
#include "gimpui.h"
#include "gdisplay.h"
#include "config.h"
#include "libgimp/gimpchainbutton.h"
#include "libgimp/gimplimits.h"
#include "libgimp/gimpsizeentry.h"
......
......@@ -32,6 +32,7 @@
#include "undo.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h" /* ick. */
......
......@@ -30,6 +30,7 @@
#include "paint_funcs.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"
......
......@@ -28,7 +28,6 @@
#include "selection_options.h"
#include "scan_convert.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#define DEFAULT_MAX_INC 1024
......
......@@ -27,7 +27,6 @@
#include "gimpui.h"
#include "libgimp/parasite.h"
#include "libgimp/gimpintl.h"
#include <gtk/gtk.h>
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "color_area.h"
#include "gdisplay.h"
#include "gdisplay_color.h"
......
......@@ -29,6 +29,7 @@
#include "scale.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void gdisplay_close_warning_callback (GtkWidget *, gpointer);
......
......@@ -30,6 +30,7 @@
#include "paint_options.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"
......