Commit ab6afdc2 authored by Sven Neumann's avatar Sven Neumann
Browse files

removed compiler warnings


--Sven
parent 93b9d086
Sat Jan 29 12:06:51 CET 2000 Sven Neumann <sven@gimp.org>
* plug-ins/common/curve_bend.c
* plug-ins/common/deinterlace.c
* plug-ins/common/despeckle.c
* plug-ins/common/plasma.c
* plug-ins/common/randomize.c
* plug-ins/common/sharpen.c
* plug-ins/gap/gap_frontends_main.c
* plug-ins/gdyntext/gdyntext.c
* plug-ins/gfig/gfig.c
* plug-ins/print/print-ps.c
* plug-ins/print/print.c
* plug-ins/sel2path/global.h
* plug-ins/sel2path/math.c
* plug-ins/sel2path/vector.c: removed warnings
Fri Jan 28 17:38:36 CET 2000 Marc Lehmann <pcg@goof.com>
 
* PLUGIN_MAINTAINERS, PLUGIN_CVS: mark Robert Krawitz with write
......
......@@ -688,14 +688,13 @@ run (char *name, /* name of plugin */
{
char *l_env;
BenderDialog *cd;
gint l_nreturn_vals;
GDrawable *l_active_drawable = NULL;
gint32 l_image_id = -1;
gint32 l_layer_id = -1;
gint32 l_layer_mask_id = -1;
gint32 l_bent_layer_id = -1;
GDrawable *l_active_drawable = NULL;
gint32 l_image_id = -1;
gint32 l_layer_id = -1;
gint32 l_layer_mask_id = -1;
gint32 l_bent_layer_id = -1;
/* Get the runmode from the in-parameters */
GRunModeType run_mode = param[0].data.d_int32;
......
......@@ -261,7 +261,6 @@ deinterlace_dialog (void)
GtkWidget *frame;
gchar **argv;
gint argc;
gint i;
/* Set args */
argc = 1;
......
......@@ -36,318 +36,10 @@
* dialog_recursive_callback() - Update the filter type...
* dialog_ok_callback() - Start the filter...
*
* Revision History:
*
* $Log$
* Revision 1.26 2000/01/25 23:05:57 mitch
* 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.
*
* Revision 1.25 2000/01/15 15:32:28 mitch
* 2000-01-15 Michael Natterer <mitch@gimp.org>
*
* * libgimp/gimpwidgets.[ch]: added a float adjustment callback.
*
* * plug-ins/common/bumpmap.c
* * plug-ins/common/depthmerge.c
* * plug-ins/common/despeckle.c
* * plug-ins/common/destripe.c
* * plug-ins/common/gpb.c
* * plug-ins/common/iwarp.c
* * plug-ins/common/polar.c
* * plug-ins/common/sharpen.c
* * plug-ins/common/tileit.c
* * plug-ins/common/whirlpinch.c
* * plug-ins/common/wind.c:
*
* - Some more hscale+spinbutton instead of hscale+entry widgets.
* - Get the CHECK_SIZE constants from libgimp in some plugins.
*
* Revision 1.24 2000/01/14 12:40:59 mitch
* 2000-01-14 Michael Natterer <mitch@gimp.org>
*
* * app/Makefile.am
* * app/tool_options_ui.h: removed.
*
* * app/tool_options.c
* * libgimp/gimpwidgets.[ch]: moved some more ui utility functions
* to libgimp.
*
* * app/airbrush.c
* * app/blend.c
* * app/bucket_fill.c
* * app/channel_ops.c
* * app/clone.c
* * app/color_picker.c
* * app/convolve.c
* * app/crop.c
* * app/dodgeburn.c
* * app/eraser.c
* * app/file_new_dialog.[ch]
* * app/flip_tool.c
* * app/image_new.[ch]
* * app/ink.c
* * app/layers_dialog.c
* * app/magnify.c
* * app/measure.c
* * app/paintbrush.c
* * app/pencil.c
* * app/smudge.c
* * app/text_tool.c
* * app/tool_options.c
* * app/transform_tool.c
* * app/xinput_airbrush.c: use the libgimp functions (esp. the radio
* button group constructor), some code cleanup.
*
* * plug-ins/common/csource.c
* * plug-ins/common/despeckle.c
* * plug-ins/common/diffraction.c
* * plug-ins/common/jpeg.c
* * plug-ins/common/png.c
* * plug-ins/unsharp/unsharp.c: more plugin ui tuning.
*
* * plug-ins/unsharp/Makefile.am
* * plug-ins/unsharp/dialog_f.[ch]
* * plug-ins/unsharp/dialog_i.[ch]: removed.
*
* Revision 1.23 2000/01/13 15:39:24 mitch
* 2000-01-13 Michael Natterer <mitch@gimp.org>
*
* * app/gimpui.[ch]
* * app/preferences_dialog.c: removed & renamed some functions from
* gimpui.[ch] (see below).
*
* * libgimp/Makefile.am
* * libgimp/gimpwidgets.[ch]; new files. Functions moved from
* app/gimpui.[ch]. Added a constructor for the label + hscale +
* entry combination used in many plugins (now hscale + spinbutton).
*
* * libgimp/gimpui.h: include gimpwidgets.h
*
* * plug-ins/megawidget/megawidget.[ch]: removed all functions
* except the preview stuff (I'm not yet sure how to implement this
* in libgimp because the libgimp preview should be general enough to
* replace all the other plugin previews, too).
*
* * plug-ins/borderaverage/Makefile.am
* * plug-ins/borderaverage/borderaverage.c
* * plug-ins/common/plugin-defs.pl
* * plug-ins/common/Makefile.am
* * plug-ins/common/aa.c
* * plug-ins/common/align_layers.c
* * plug-ins/common/animationplay.c
* * plug-ins/common/apply_lens.c
* * plug-ins/common/blinds.c
* * plug-ins/common/bumpmap.c
* * plug-ins/common/checkerboard.c
* * plug-ins/common/colorify.c
* * plug-ins/common/convmatrix.c
* * plug-ins/common/cubism.c
* * plug-ins/common/curve_bend.c
* * plug-ins/common/deinterlace.c
* * plug-ins/common/despeckle.c
* * plug-ins/common/destripe.c
* * plug-ins/common/displace.c
* * plug-ins/common/edge.c
* * plug-ins/common/emboss.c
* * plug-ins/common/hot.c
* * plug-ins/common/nlfilt.c
* * plug-ins/common/pixelize.c
* * plug-ins/common/waves.c
* * plug-ins/sgi/sgi.c
* * plug-ins/sinus/sinus.c: ui updates like removing megawidget,
* using the dialog constructor, I18N fixes, indentation, ...
*
* Revision 1.22 2000/01/06 16:40:17 mitch
* 2000-01-06 Michael Natterer <mitch@gimp.org>
*
* * app/[all files using the dialog or action area constructors]
* * libgimp/gimpdialog.[ch]: added a "slot_object" agrument to the
* constructors' va_args lists to allow the action area buttons to be
* connected wich gtk_signal_connect_object().
*
* * libgimp/gimphelp.c: show the correct help page for plugins.
*
* * plug-ins/common/CEL.c
* * plug-ins/common/CML_explorer.c
* * plug-ins/common/Makefile.am
* * plug-ins/common/aa.c
* * plug-ins/common/align_layers.c
* * plug-ins/common/animationplay.c
* * plug-ins/common/apply_lens.c
* * plug-ins/common/blinds.c
* * plug-ins/common/blur.c
* * plug-ins/common/bumpmap.c
* * plug-ins/common/checkerboard.c
* * plug-ins/common/colorify.c
* * plug-ins/common/colortoalpha.c
* * plug-ins/common/compose.c
* * plug-ins/common/convmatrix.c
* * plug-ins/common/csource.c
* * plug-ins/common/cubism.c
* * plug-ins/common/curve_bend.c
* * plug-ins/common/decompose.c
* * plug-ins/common/deinterlace.c
* * plug-ins/common/depthmerge.c
* * plug-ins/common/despeckle.c
* * plug-ins/common/destripe.c
* * plug-ins/common/diffraction.c
* * plug-ins/common/displace.c
* * plug-ins/common/grid.c
* * plug-ins/helpbrowser/Makefile.am
* * plug-ins/helpbrowser/helpbrowser.c: use the dialog constructor
* and enable the "F1" help key.
*
* Revision 1.21 1999/12/29 18:07:43 neo
* NEVER EVER use sprintf together with _(...) !
*
*
* --Sven
*
* Revision 1.20 1999/12/27 18:43:09 neo
* small dialog changes and german translation update
*
*
* --Sven
*
* Revision 1.19 1997/01/03 15:15:10 yasuhiro
* 1999-12-20 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
*
* * plug-ins/common/blinds.c
* * plug-ins/common/curve_bend.c
* * plug-ins/common/deinterlace.c
* * plug-ins/common/despeckle.c
* * po-plug-ins/POTFILES.in: Added gettext support
*
* -- yasuhiro
*
* Revision 1.18 1999/11/23 23:49:42 neo
* added dots to all menu entries of interactive plug-ins and did the usual
* action area fixes on lots of them
*
*
*
* --Sven
*
* Revision 1.17 1999/10/24 20:48:58 pcg
* api change #2, fix #1
*
* Revision 1.16 1999/10/17 00:07:38 pcg
* API PATCH #2 or so
*
* Revision 1.15 1999/04/23 06:35:14 asbjoer
* use MAIN macro
*
* Revision 1.14 1999/01/15 17:33:24 unammx
* 1999-01-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
*
* * Updated gtk_toggle_button_set_state() to
* gtk_toggle_button_set_active() in all the files.
*
* Revision 1.13 1998/06/06 23:22:16 yosh
* * adding Lighting plugin
*
* * updated despeckle, png, sgi, and sharpen
*
* -Yosh
*
* Revision 1.21 1998/05/17 15:57:33 mike
* Removed extra variables.
* Removed signal handlers (used for debugging)
*
* Revision 1.20 1998/04/27 15:59:17 mike
* Fixed RGB preview problem...
*
* Revision 1.19 1998/04/27 15:45:27 mike
* OK, put the shadow buffer stuff back in - without shadowing the undo stuff
* will *not* work... sigh...
* Doubled tile cache to avoid cache thrashing with shadow buffer.
*
* Revision 1.18 1998/04/27 15:39:48 mike
* Fixed destination region code - was using a shadow buffer when it wasn't
* needed.
* Now add 1 to the number of tiles needed in the cache to avoid possible
* rounding error and resulting cache thrashing.
*
* Revision 1.17 1998/04/23 14:39:47 mike
* Updated preview code to handle images with alpha (preview now shows checker
* pattern).
* Added call to gtk_window_set_wmclass() to make sure the GIMP icon is used
* by default.
*
* Revision 1.16 1998/01/22 14:35:03 mike
* Added black & white level controls.
* Fixed bug in despeckle code that caused the borders to darken.
*
* Revision 1.15 1998/01/21 21:33:47 mike
* Fixed malloc buffer overflow bug - wasn't realloc'ing buffers
* when the filter radius changed.
*
* Revision 1.14 1997/11/14 17:17:59 mike
* Updated to dynamically allocate return params in the run() function.
*
* Revision 1.13 1997/11/12 15:53:34 mike
* Added <string.h> header file for Digital UNIX...
*
* Revision 1.12 1997/10/17 13:56:54 mike
* Updated author/contact information.
*
* Revision 1.11 1997/06/12 16:58:11 mike
* Optimized final despeckle - now grab gimp_tile_height() rows at a time
* for faster filtering.
*
* Revision 1.10 1997/06/08 23:30:29 mike
* Improved the preview update speed significantly by loading the entire
* source (preview) image first.
*
* Revision 1.9 1997/06/08 16:48:21 mike
* Renamed "adaptive" argument to "type" (filter type).
*
* Revision 1.8 1997/06/08 12:45:09 mike
* Added recursive filter option.
* Cleaned up UI.
*
* Revision 1.7 1997/06/08 04:27:19 mike
* Updated documentation.
* Moved plug-in back to original location in menu tree.
*
* Revision 1.6 1997/06/08 04:24:56 mike
* Added filter type argument & control.
*
* Revision 1.5 1997/06/08 04:12:36 mike
* Added preview window.
*
* Revision 1.4 1997/06/08 02:18:22 mike
* Updated to adjust the despeckling radius based upon the window's
* histogram. This improves filter quality significantly as surface
* details are preserved and not blurred...
*
* Revision 1.3 1997/06/07 01:29:47 mike
* Added some minor optimizations.
* Updated version to 1.01.
* Fixed minor bug in dialog_ientry_update() - was using gdouble instead
* of gint for new_value...
*
* Revision 1.2 1997/06/07 01:03:07 mike
* Updated docos, changed maximum radius to 20.
* Revision History:
*
* Revision 1.1 1997/06/07 00:01:15 mike
* Initial Revision.
* See ChangeLog
*/
#include "config.h"
......
......@@ -277,7 +277,6 @@ plasma_dialog (void)
GtkWidget *dlg;
GtkWidget *frame;
GtkWidget *table;
GtkWidget *spinbutton;
GtkWidget *seed_hbox;
GtkObject *adj;
gchar **argv;
......
......@@ -184,8 +184,6 @@ static inline void randomize_prepare_row (GPixelRgn *pixel_rgn,
static gint randomize_dialog (void);
static void randomize_ok_callback (GtkWidget *widget,
gpointer data);
static void randomize_time_toggle_update (GtkWidget *widget,
gpointer data);
/************************************ Guts ***********************************/
......@@ -791,17 +789,3 @@ randomize_ok_callback (GtkWidget *widget,
gtk_widget_destroy (GTK_WIDGET (data));
}
static void
randomize_time_toggle_update (GtkWidget *widget,
gpointer data)
{
gint *toggle_val;
toggle_val = (gint *) data;
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
*toggle_val = SEED_TIME;
else
*toggle_val = SEED_USER;
}
......@@ -39,174 +39,7 @@
*
* Revision History:
*
* $Log$
* Revision 1.17 2000/01/25 23:05:59 mitch
* 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.
*
* Revision 1.16 2000/01/15 15:32:28 mitch
* 2000-01-15 Michael Natterer <mitch@gimp.org>
*
* * libgimp/gimpwidgets.[ch]: added a float adjustment callback.
*
* * plug-ins/common/bumpmap.c
* * plug-ins/common/depthmerge.c
* * plug-ins/common/despeckle.c
* * plug-ins/common/destripe.c
* * plug-ins/common/gpb.c
* * plug-ins/common/iwarp.c
* * plug-ins/common/polar.c
* * plug-ins/common/sharpen.c
* * plug-ins/common/tileit.c
* * plug-ins/common/whirlpinch.c
* * plug-ins/common/wind.c:
*
* - Some more hscale+spinbutton instead of hscale+entry widgets.
* - Get the CHECK_SIZE constants from libgimp in some plugins.
*
* Revision 1.15 2000/01/08 15:23:28 mitch
* 2000-01-08 Michael Natterer <mitch@gimp.org>
*
* * plug-ins/common/Makefile.am
* * plug-ins/common/hrz.c
* * plug-ins/common/papertile.c
* * plug-ins/common/pat.c
* * plug-ins/common/pixelize.c
* * plug-ins/common/plasma.c
* * plug-ins/common/plugindetails.c
* * plug-ins/common/png.c
* * plug-ins/common/pnm.c
* * plug-ins/common/polar.c
* * plug-ins/common/ps.c
* * plug-ins/common/psp.c
* * plug-ins/common/randomize.c
* * plug-ins/common/ripple.c
* * plug-ins/common/sample_colorize.c
* * plug-ins/common/scatter_hsv.c
* * plug-ins/common/screenshot.c
* * plug-ins/common/sel_gauss.c
* * plug-ins/common/sharpen.c
* * plug-ins/common/shift.c
* * plug-ins/common/smooth_palette.c
* * plug-ins/common/snoise.c
* * plug-ins/common/sobel.c
* * plug-ins/common/sparkle.c
* * plug-ins/common/spheredesigner.c
* * plug-ins/common/spread.c
* * plug-ins/common/sunras.c: more plugins which use the dialog
* constructor. Hacked many UIs to look like the app's dialogs.
*
* Revision 1.14 2000/01/07 17:18:44 yasuhiro
* * plug-ins/common/scatter_hsv.c
* * plug-ins/common/semiflatten.c
* * plug-ins/common/sharpen.c
* * plug-ins/common/shift.c
* * plug-ins/common/smooth_palette.c
* * plug-ins/common/snoise.c
* * plug-ins/common/sobel.c
* * plug-ins/common/sparkle.c
* * plug-ins/common/spread.c
* * po-plug-ins/POTFILES.in: added gettext support.
*
* -- yasuhiro
*
* Revision 1.13 1999/11/23 23:49:42 neo
* added dots to all menu entries of interactive plug-ins and did the usual
* action area fixes on lots of them
*
*
*
* --Sven
*
* Revision 1.12 1999/10/24 20:48:59 pcg
* api change #2, fix #1
*
* Revision 1.11 1999/10/17 00:07:40 pcg
* API PATCH #2 or so
*
* Revision 1.10 1999/04/22 14:05:58 asbjoer
* use MAIN macro
*
* Revision 1.9 1999/03/28 22:03:12 raph
* Fixed a silly bug causing sharpen to not work in the non-rgb cases.
*
* Revision 1.8 1999/03/15 22:38:36 raph
* Improved the quality of the algorithm in the sharpen plugin.
*
* Revision 1.7 1998/06/06 23:22:22 yosh
* * adding Lighting plugin
*
* * updated despeckle, png, sgi, and sharpen
*
* -Yosh
*
* Revision 1.14 1998/05/17 16:01:33 mike
* Removed signal handler stuff used for debugging.
* Added gtk_rc_parse().
* Removed extra variables.
*
* Revision 1.13 1998/04/27 15:55:38 mike
* Sharpen would shift the image down one pixel; was using the wrong "source"
* row...
*
* Revision 1.12 1998/04/27 15:45:27 mike
* OK, put the shadow buffer stuff back in - without shadowing the undo stuff
* will *not* work... sigh...
* Doubled tile cache to avoid cache thrashing with shadow buffer.
*
* Revision 1.11 1998/04/27 15:33:45 mike
* Updated to use LUTs for coefficients.
* Broke out filter code for GRAY, GRAYA, RGB, RGBA modes.
* Fixed destination region code - was using a shadow buffer when it wasn't
* needed.
* Now add 1 to the number of tiles needed in the cache to avoid possible
* rounding error and resulting cache thrashing.
*
* Revision 1.10 1998/04/23 14:39:47 mike
* Whoops - wasn't copying the preview image over for RGB mode...
*
* Revision 1.9 1998/04/23 13:56:02 mike
* Updated preview to do checkerboard pattern for transparency (thanks Yosh!)
* Added gtk_window_set_wmclass() call to make sure this plug-in gets to use
* the standard GIMP icon if none is otherwise created...
*
* Revision 1.8 1998/04/22 16:25:45 mike
* Fixed RGBA preview problems...
*
* Revision 1.7 1998/03/12 18:48:52 mike
* Fixed pixel errors around the edge of the bounding rectangle - the
* original pixels weren't being written back to the image...
*
* Revision 1.6 1997/11/14 17:17:59 mike
* Updated to dynamically allocate return params in the run() function.
*
* Revision 1.5 1997/10/17 13:56:54 mike
* Updated author/contact information.
*
* Revision 1.4 1997/09/29 17:16:29 mike
* To average 8 numbers you do *not* divide by 9! This caused the brightening
* problem when sharpening was "turned up".
*
* Revision 1.2 1997/06/08 22:27:35 mike
* Updated sharpen code for hard-coded 3x3 convolution matrix.
*
* Revision 1.1 1997/06/08 16:46:07 mike
* Initial revision
* See ChangeLog
*/
#include "config.h"
......
......@@ -193,19 +193,11 @@ run (char *name,
char *l_env;
char l_extension[32];
char *l_basename_ptr;
char *l_palette_ptr;
static GParam values[2];
GRunModeType run_mode;
GStatusType status = STATUS_SUCCESS;
gint32 image_id;
gint32 nr;
long range_from, range_to;
gint32 inverse_order;
gint32 no_alpha;
long framerate;
#define FRAME_BASENAME_LEN 256
char frame_basename[FRAME_BASENAME_LEN];
gint32 l_rc;
......
......@@ -412,10 +412,12 @@ void gdt_render_text(GdtVals *data)
void gdt_render_text_p(GdtVals *data, gboolean show_progress)
{
gint layer_ox, layer_oy, i, nret_vals, xoffs;
gint32 layer_f, selection_channel;
gint32 text_width, text_height;
gint32 text_ascent, text_descent;
gint32 layer_width, layer_height;
gint32 layer_f;
gint32 selection_channel = -1;
gint32 text_width = 0;
gint32 text_height = 0;
gint32 text_ascent, text_descent;
gint32 layer_width, layer_height;
gint32 space_width;
gchar **text_style, **text_lines;
gint32 *text_lines_w;
......
......@@ -65,7 +65,7 @@
#include <math.h>
#include <gtk/gtk.h>
#include "libgimp/stdplugins-intl.h"
#include <libgimp/stdplugins-intl.h>
#ifdef G_OS_WIN32
# include <io.h>
......@@ -6474,10 +6474,9 @@ static void
gfig_copy_menu_callback(GtkWidget *widget, gpointer data)
{
/* Create new entry with name + copy at end & copy object into it */
gchar *new_name =