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

please picky compilers


--Sven
parent 8e950e6a
Mon Dec 6 23:39:34 MET 1999 Sven Neumann <sven@gimp.org>
* app/channel.c
* app/channel.h
* app/gimpbrushpipe.c
* app/gradient.c
* app/nav_window.c
* app/paint_funcs.c
* app/palette.c
* app/paths_dialog.c
* app/patterns.c
* app/tools.c
* app/tools.h
* libgimp/gimp.c
* libgimp/gimpcolorbutton.c
* libgimp/gimpdrawable.c
* libgimp/gimpfileselection.c
* libgimp/gimpimage.c
* libgimp/gimppatheditor.c
* libgimp/gimpsizeentry.c
* libgimp/gimpunitmenu.c
* libgimp/gimpwire.c
* libgimp/parasiteio.c
* plug-ins/script-fu/script-fu-server.c: fixed lots of wrongly typed
variables that made picky compilers complain (still some left...)
1999-12-06 Tuomas Kuosmanen <tigert@gimp.org>
 
* pixmaps/anchor.xpm: The Smaller Anchor Icon. Still a bit unpolished,
......
......@@ -237,7 +237,7 @@ channel_get_name (Channel *channel)
void
channel_set_color (Channel *channel,
gchar *color)
guchar *color)
{
gint i;
......@@ -248,7 +248,7 @@ channel_set_color (Channel *channel,
}
}
gchar *
guchar *
channel_get_color (Channel *channel)
{
return (GIMP_CHANNEL (channel)->col);
......
......@@ -83,8 +83,8 @@ void channel_set_name (Channel *, gchar *);
gint channel_get_opacity (Channel *);
void channel_set_opacity (Channel *, gint);
gchar * channel_get_color (Channel *);
void channel_set_color (Channel *, gchar *);
guchar * channel_get_color (Channel *);
void channel_set_color (Channel *, guchar *);
Channel * channel_get_ID (gint);
void channel_delete (Channel *);
......
......@@ -275,8 +275,8 @@ gimp_brush_pipe_load (char *filename)
GPattern *pattern;
PixPipeParams params;
FILE *fp;
guchar buf[1024];
guchar *name;
gchar buf[1024];
gchar *name;
int i;
int num_of_brushes;
int totalcells;
......
......@@ -275,8 +275,8 @@ gimp_brush_pipe_load (char *filename)
GPattern *pattern;
PixPipeParams params;
FILE *fp;
guchar buf[1024];
guchar *name;
gchar buf[1024];
gchar *name;
int i;
int num_of_brushes;
int totalcells;
......
......@@ -237,7 +237,7 @@ channel_get_name (Channel *channel)
void
channel_set_color (Channel *channel,
gchar *color)
guchar *color)
{
gint i;
......@@ -248,7 +248,7 @@ channel_set_color (Channel *channel,
}
}
gchar *
guchar *
channel_get_color (Channel *channel)
{
return (GIMP_CHANNEL (channel)->col);
......
......@@ -83,8 +83,8 @@ void channel_set_name (Channel *, gchar *);
gint channel_get_opacity (Channel *);
void channel_set_opacity (Channel *, gint);
gchar * channel_get_color (Channel *);
void channel_set_color (Channel *, gchar *);
guchar * channel_get_color (Channel *);
void channel_set_color (Channel *, guchar *);
Channel * channel_get_ID (gint);
void channel_delete (Channel *);
......
......@@ -237,7 +237,7 @@ channel_get_name (Channel *channel)
void
channel_set_color (Channel *channel,
gchar *color)
guchar *color)
{
gint i;
......@@ -248,7 +248,7 @@ channel_set_color (Channel *channel,
}
}
gchar *
guchar *
channel_get_color (Channel *channel)
{
return (GIMP_CHANNEL (channel)->col);
......
......@@ -83,8 +83,8 @@ void channel_set_name (Channel *, gchar *);
gint channel_get_opacity (Channel *);
void channel_set_opacity (Channel *, gint);
gchar * channel_get_color (Channel *);
void channel_set_color (Channel *, gchar *);
guchar * channel_get_color (Channel *);
void channel_set_color (Channel *, guchar *);
Channel * channel_get_ID (gint);
void channel_delete (Channel *);
......
......@@ -490,12 +490,12 @@ nav_window_update_preview (NavWinData *iwd)
pwidth = iwd->pwidth;
pheight = iwd->pheight;
src = (gchar *) temp_buf_data (preview_buf_notdot);
src = (guchar *) temp_buf_data (preview_buf_notdot);
preview_buf_ptr = preview_buf_notdot;
}
else
{
src = (gchar *) temp_buf_data (preview_buf);
src = (guchar *) temp_buf_data (preview_buf);
preview_buf_ptr = preview_buf;
}
......
......@@ -490,12 +490,12 @@ nav_window_update_preview (NavWinData *iwd)
pwidth = iwd->pwidth;
pheight = iwd->pheight;
src = (gchar *) temp_buf_data (preview_buf_notdot);
src = (guchar *) temp_buf_data (preview_buf_notdot);
preview_buf_ptr = preview_buf_notdot;
}
else
{
src = (gchar *) temp_buf_data (preview_buf);
src = (guchar *) temp_buf_data (preview_buf);
preview_buf_ptr = preview_buf;
}
......
......@@ -275,8 +275,8 @@ gimp_brush_pipe_load (char *filename)
GPattern *pattern;
PixPipeParams params;
FILE *fp;
guchar buf[1024];
guchar *name;
gchar buf[1024];
gchar *name;
int i;
int num_of_brushes;
int totalcells;
......
......@@ -237,7 +237,7 @@ channel_get_name (Channel *channel)
void
channel_set_color (Channel *channel,
gchar *color)
guchar *color)
{
gint i;
......@@ -248,7 +248,7 @@ channel_set_color (Channel *channel,
}
}
gchar *
guchar *
channel_get_color (Channel *channel)
{
return (GIMP_CHANNEL (channel)->col);
......
......@@ -83,8 +83,8 @@ void channel_set_name (Channel *, gchar *);
gint channel_get_opacity (Channel *);
void channel_set_opacity (Channel *, gint);
gchar * channel_get_color (Channel *);
void channel_set_color (Channel *, gchar *);
guchar * channel_get_color (Channel *);
void channel_set_color (Channel *, guchar *);
Channel * channel_get_ID (gint);
void channel_delete (Channel *);
......
......@@ -1456,7 +1456,7 @@ gradient_clist_draw_small_preview (GdkGC *gc,
gradient_t *gradient,
gint pos)
{
gchar rgb_buf[48 * 16 * 3];
guchar rgb_buf[48 * 16 * 3];
gradient_clist_fill_preview (gradient, rgb_buf, 48, 16, 0.0, 1.0);
......
......@@ -1456,7 +1456,7 @@ gradient_clist_draw_small_preview (GdkGC *gc,
gradient_t *gradient,
gint pos)
{
gchar rgb_buf[48 * 16 * 3];
guchar rgb_buf[48 * 16 * 3];
gradient_clist_fill_preview (gradient, rgb_buf, 48, 16, 0.0, 1.0);
......
......@@ -1456,7 +1456,7 @@ gradient_clist_draw_small_preview (GdkGC *gc,
gradient_t *gradient,
gint pos)
{
gchar rgb_buf[48 * 16 * 3];
guchar rgb_buf[48 * 16 * 3];
gradient_clist_fill_preview (gradient, rgb_buf, 48, 16, 0.0, 1.0);
......
......@@ -2914,7 +2914,7 @@ palette_import_image_make_palette (GHashTable *h_array,
static void
palette_import_create_from_image (GImage *gimage,
guchar *pname)
gchar *pname)
{
PixelRegion imagePR;
guchar *image_data;
......@@ -2995,7 +2995,7 @@ palette_import_create_from_image (GImage *gimage,
static void
palette_import_create_from_indexed (GImage *gimage,
guchar *pname)
gchar *pname)
{
PaletteEntries *entries;
gint samples, count;
......@@ -3042,7 +3042,7 @@ palette_import_import_callback (GtkWidget *widget,
if (import_dialog)
{
guchar *pname;
gchar *pname;
pname = gtk_entry_get_text (GTK_ENTRY (import_dialog->entry));
if (!pname || !strlen (pname))
......
......@@ -738,14 +738,14 @@ paths_set_dash_line (GdkGC *gc,
static void
clear_pixmap_preview (PathWidget *pwidget)
{
gchar *rgb_buf;
guchar *rgb_buf;
rgb_buf = g_new0(gchar,
(paths_dialog->image_width + 4)
*(paths_dialog->image_height + 4)*3);
rgb_buf = g_new0 (guchar,
(paths_dialog->image_width + 4)
*(paths_dialog->image_height + 4) * 3);
memset(rgb_buf,0xFF,(paths_dialog->image_width + 4)
*(paths_dialog->image_height + 4)*3);
memset (rgb_buf,0xFF,(paths_dialog->image_width + 4)
*(paths_dialog->image_height + 4) * 3);
gdk_draw_rgb_image (pwidget->paths_pixmap,
paths_dialog->gc,
......
......@@ -490,12 +490,12 @@ nav_window_update_preview (NavWinData *iwd)
pwidth = iwd->pwidth;
pheight = iwd->pheight;
src = (gchar *) temp_buf_data (preview_buf_notdot);
src = (guchar *) temp_buf_data (preview_buf_notdot);
preview_buf_ptr = preview_buf_notdot;
}
else
{
src = (gchar *) temp_buf_data (preview_buf);
src = (guchar *) temp_buf_data (preview_buf);
preview_buf_ptr = preview_buf;
}
......
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