mostly header cleanup and i18n

--Sven
This commit is contained in:
Sven Neumann 2000-01-31 23:59:05 +00:00
parent a4025e057b
commit c9482821ab
204 changed files with 1180 additions and 1162 deletions

View File

@ -1,3 +1,16 @@
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

View File

@ -56,6 +56,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \

View File

@ -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 */

View File

@ -21,8 +21,6 @@
#include "boundary.h"
#include "tile.h"
#include "libgimp/gimpintl.h"
/* half intensity for mask */
#define HALF_WAY 127

View File

@ -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"

View File

@ -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"

View File

@ -29,6 +29,7 @@
#include "hue_saturation.h"
#include "interface.h"
#include "config.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"

View File

@ -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 *);

View File

@ -23,6 +23,7 @@
#include "interface.h"
#include "threshold.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define HISTOGRAM_WIDTH 256

View File

@ -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

View File

@ -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,

View File

@ -26,8 +26,6 @@
#define _O_TEMPORARY 0
#endif
#include "libgimp/gimpintl.h"
#define MAX_OPEN_SWAP_FILES 16
#include "tile.h"

View File

@ -6,8 +6,6 @@
#include "tile_manager.h"
#include "tile_swap.h"
#include "libgimp/gimpintl.h"
static void tile_destroy (Tile *tile);

View File

@ -1,3 +1,20 @@
/* 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,

View File

@ -21,8 +21,6 @@
#include "boundary.h"
#include "tile.h"
#include "libgimp/gimpintl.h"
/* half intensity for mask */
#define HALF_WAY 127

View File

@ -24,6 +24,7 @@
#include "image_map.h"
#include "lut_funcs.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define SLIDER_WIDTH 200

View File

@ -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);

View File

@ -34,6 +34,7 @@
#include "paint_options.h"
#include "session.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define MIN_CELL_SIZE 25

View File

@ -34,6 +34,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* the bucket fill structures */

View File

@ -31,6 +31,7 @@
#include "tile.h" /* ick. */
#include "config.h"
#include "libgimp/gimpintl.h"
#define DEFAULT_FUZZINESS 15

View File

@ -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"

View File

@ -35,6 +35,7 @@
#include "paint_funcs.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "pixmaps/eye.xbm"

View File

@ -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"

View File

@ -28,6 +28,7 @@
#include "tools.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* maximum information buffer size */

View File

@ -14,6 +14,7 @@
#include "gimpdnd.h"
#include "gimpui.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* Add these features:

View File

@ -56,6 +56,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \

View File

@ -32,6 +32,7 @@
#include "tools.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define FIELD_COLS 4

View File

@ -30,6 +30,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"

View File

@ -25,6 +25,7 @@
#include "gimprc.h"
#include "brush_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
enum{

View File

@ -25,6 +25,7 @@
#include "gimprc.h"
#include "brush_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
enum{

View File

@ -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))

View File

@ -21,6 +21,7 @@
#include "paint_funcs.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void

View File

@ -22,6 +22,7 @@
#include "lut_funcs.h"
#include "gimphistogram.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void

View File

@ -26,6 +26,7 @@
#include "gimplut.h"
#include "lut_funcs.h"
#include "config.h"
#include "libgimp/gimpintl.h"

View File

@ -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"

View File

@ -26,6 +26,7 @@
#include "parasitelist.h"
#include "undo.h"
#include "config.h"
#include "libgimp/parasite.h"
#include "libgimp/gimpintl.h"

View File

@ -30,6 +30,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"

View File

@ -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"

View File

@ -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"

View File

@ -30,6 +30,7 @@
#include "paint_options.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -29,8 +29,6 @@
#include "tile_manager_pvt.h"
#include "libgimp/gimpintl.h"
#define WAITING 0
#define WORKING 1

View File

@ -30,6 +30,7 @@
#include "paint_funcs.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"

View File

@ -35,7 +35,7 @@
#include "gimpsignal.h"
#include "gimppreviewcache.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "libgimp/parasite.h"

View File

@ -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"

View File

@ -20,7 +20,6 @@
#include "scan_convert.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
#ifdef DEBUG

View File

@ -32,6 +32,7 @@
#include "info_dialog.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpintl.h"

View File

@ -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"

View File

@ -21,6 +21,7 @@
#include "paint_funcs.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void

View File

@ -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"

View File

@ -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);

View File

@ -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"

View File

@ -27,7 +27,6 @@
#include "gimpui.h"
#include "libgimp/parasite.h"
#include "libgimp/gimpintl.h"
#include <gtk/gtk.h>

View File

@ -26,6 +26,7 @@
#include "layer_select.h"
#include "layers_dialogP.h"
#include "config.h"
#include "libgimp/gimpintl.h"

View File

@ -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"

View File

@ -22,6 +22,7 @@
#include "gimpdnd.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpenv.h"
#include "libgimp/gimpintl.h"

View File

@ -21,6 +21,7 @@
#include "gimage.h"
#include "gimphelp.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void

View File

@ -22,8 +22,6 @@
#include "gdisplay.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
gint
drawable_ID (GimpDrawable *drawable)
{

View File

@ -30,6 +30,7 @@
#include "gimprc.h"
#include "paths_dialogP.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define EDIT_SELECT_SCROLL_LOCK FALSE

View File

@ -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;

View File

@ -22,6 +22,7 @@
#include "lut_funcs.h"
#include "gimphistogram.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void

View File

@ -33,6 +33,7 @@
#include "selection.h"
#include "tools.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/* Defaults */

View File

@ -40,8 +40,6 @@
#include "errors.h"
#include "gimpui.h"
#include "libgimp/gimpintl.h"
#ifdef G_OS_WIN32
#include <windows.h>
#endif

View File

@ -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"

View File

@ -32,6 +32,7 @@
#include "undo.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h" /* ick. */

View File

@ -30,6 +30,7 @@
#include "paint_funcs.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"

View File

@ -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

View File

@ -27,7 +27,6 @@
#include "gimpui.h"
#include "libgimp/parasite.h"
#include "libgimp/gimpintl.h"
#include <gtk/gtk.h>

View File

@ -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"

View File

@ -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);

View File

@ -30,6 +30,7 @@
#include "paint_options.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"

View File

@ -25,6 +25,7 @@
#include "gimprc.h"
#include "brush_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
enum{

View File

@ -44,8 +44,6 @@
#include "gimpbrushlistP.h"
#include "general.h"
#include "libgimp/gimpintl.h"
/* global variables */
GimpBrushList *brush_list = NULL;

View File

@ -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))

View File

@ -21,6 +21,7 @@
#include "paint_funcs.h"
#include "gimage.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void

View File

@ -22,6 +22,7 @@
#include "lut_funcs.h"
#include "gimphistogram.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void

View File

@ -26,6 +26,7 @@
#include "gimplut.h"
#include "lut_funcs.h"
#include "config.h"
#include "libgimp/gimpintl.h"

View File

@ -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"

View File

@ -26,6 +26,7 @@
#include "parasitelist.h"
#include "undo.h"
#include "config.h"
#include "libgimp/parasite.h"
#include "libgimp/gimpintl.h"

View File

@ -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"

View File

@ -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"

View File

@ -35,7 +35,7 @@
#include "gimpsignal.h"
#include "gimppreviewcache.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "libgimp/parasite.h"

View File

@ -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"

View File

@ -30,6 +30,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"

View File

@ -43,6 +43,7 @@
#include "gradient_select.h"
#include "session.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void gradient_change_callbacks (GradientSelect *gsp,

View File

@ -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);

View File

@ -34,6 +34,7 @@
#include "paint_options.h"
#include "session.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define MIN_CELL_SIZE 25

View File

@ -35,6 +35,7 @@
#include "paint_funcs.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "pixmaps/eye.xbm"

View File

@ -56,6 +56,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \

View File

@ -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"

View File

@ -43,6 +43,7 @@
#include "gradient_select.h"
#include "session.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void gradient_change_callbacks (GradientSelect *gsp,

View File

@ -56,6 +56,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \

View File

@ -26,6 +26,7 @@
#include "indicator_area.h"
#include "pattern_select.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define CELL_SIZE 23 /* The size of the previews */

View File

@ -26,6 +26,7 @@
#include "layer_select.h"
#include "layers_dialogP.h"
#include "config.h"
#include "libgimp/gimpintl.h"

View File

@ -38,6 +38,7 @@
#include "resize.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimplimits.h"
#include "libgimp/gimpsizeentry.h"

View File

@ -540,6 +540,13 @@ static GimpItemFactoryEntry image_entries[] =
{ { "/Tools/---", NULL, NULL, 0, "<Separator>" },
NULL, NULL },
{ { N_("/Tools/Select Tools"), NULL, NULL, 0, "<Branch>" },
NULL, NULL },
{ { N_("/Tools/Transform Tools"), NULL, NULL, 0, "<Branch>" },
NULL, NULL },
{ { N_("/Tools/Paint Tools"), NULL, NULL, 0, "<Branch>" },
NULL, NULL },
/* <Image>/Dialogs */
{ { N_("/Dialogs"), NULL, NULL, 0, "<Branch>" },
@ -1607,8 +1614,6 @@ menus_init (void)
GtkWidget *menu_item;
gchar *filename;
gint i;
GimpItemFactoryEntry tool_separator =
{ { "/Tools/---", NULL, NULL, 0, "<Separator>" }, NULL, NULL };
if (! initialize)
return;
@ -1690,13 +1695,6 @@ menus_init (void)
for (i = 0; i < num_tools; i++)
{
/* insert separators between tool_groups */
if (tool_info[i].tool_id == TEXT ||
tool_info[i].tool_id == BUCKET_FILL ||
tool_info[i].tool_id == MEASURE)
{
menus_create_item (image_factory, &tool_separator, NULL, 2);
}
/* FIXME this need to use access functions to check a flag */
if (tool_info[i].menu_path)
menus_tools_create (&tool_info[i]);

Some files were not shown because too many files have changed in this diff Show More