Commit f2df31a5 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

converted tabs to spaces.

2006-04-12  Sven Neumann  <sven@gimp.org>

	* libgimp*/gimp*.[ch]: converted tabs to spaces.
parent 8ed41a7c
2006-04-12 Sven Neumann <sven@gimp.org>
* libgimp*/gimp*.[ch]: converted tabs to spaces.
2006-04-12 Sven Neumann <sven@gimp.org>
* tools/pdbgen/lib.pl: create code with spaces instead of tabs.
......
......@@ -42,13 +42,13 @@ enum
static void gimp_aspect_preview_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_aspect_preview_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void gimp_aspect_preview_style_set (GtkWidget *widget,
GtkStyle *prev_style);
static void gimp_aspect_preview_draw (GimpPreview *preview);
......@@ -57,7 +57,7 @@ static void gimp_aspect_preview_draw_buffer (GimpPreview *preview,
gint rowstride);
static void gimp_aspect_preview_set_drawable (GimpAspectPreview *preview,
GimpDrawable *drawable);
GimpDrawable *drawable);
G_DEFINE_TYPE (GimpAspectPreview, gimp_aspect_preview, GIMP_TYPE_PREVIEW);
......@@ -87,8 +87,8 @@ gimp_aspect_preview_class_init (GimpAspectPreviewClass *klass)
*/
g_object_class_install_property (object_class, PROP_DRAWABLE,
g_param_spec_pointer ("drawable", NULL, NULL,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
}
static void
......@@ -102,9 +102,9 @@ gimp_aspect_preview_init (GimpAspectPreview *preview)
static void
gimp_aspect_preview_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec)
guint property_id,
GValue *value,
GParamSpec *pspec)
{
GimpAspectPreview *preview = GIMP_ASPECT_PREVIEW (object);
......@@ -122,9 +122,9 @@ gimp_aspect_preview_get_property (GObject *object,
static void
gimp_aspect_preview_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec)
guint property_id,
const GValue *value,
GParamSpec *pspec)
{
GimpAspectPreview *preview = GIMP_ASPECT_PREVIEW (object);
......@@ -132,7 +132,7 @@ gimp_aspect_preview_set_property (GObject *object,
{
case PROP_DRAWABLE:
gimp_aspect_preview_set_drawable (preview,
g_value_get_pointer (value));
g_value_get_pointer (value));
break;
default:
......@@ -238,7 +238,7 @@ gimp_aspect_preview_draw_buffer (GimpPreview *preview,
static void
gimp_aspect_preview_set_drawable (GimpAspectPreview *preview,
GimpDrawable *drawable)
GimpDrawable *drawable)
{
gint width, height;
gint max_width, max_height;
......@@ -259,12 +259,12 @@ gimp_aspect_preview_set_drawable (GimpAspectPreview *preview,
max_width = (width * max_height) / height;
}
gimp_preview_set_bounds (GIMP_PREVIEW (preview),
0, 0, max_width, max_height);
0, 0, max_width, max_height);
if (height > 0)
g_object_set (GIMP_PREVIEW (preview)->frame,
"ratio", (gdouble) width / (gdouble) height,
NULL);
"ratio", (gdouble) width / (gdouble) height,
NULL);
}
static void
......@@ -295,8 +295,8 @@ gimp_aspect_preview_new (GimpDrawable *drawable,
g_return_val_if_fail (drawable != NULL, NULL);
preview = g_object_new (GIMP_TYPE_ASPECT_PREVIEW,
"drawable", drawable,
NULL);
"drawable", drawable,
NULL);
if (toggle)
{
......
......@@ -376,10 +376,10 @@ gimp_brush_select_widget_clicked (GtkWidget *widget,
{
/* calling gimp_brushes_set_popup() raises the dialog */
gimp_brushes_set_popup (brush_sel->temp_brush_callback,
brush_sel->brush_name,
brush_sel->opacity,
brush_sel->spacing,
brush_sel->paint_mode);
brush_sel->brush_name,
brush_sel->opacity,
brush_sel->spacing,
brush_sel->paint_mode);
}
else
{
......@@ -433,30 +433,30 @@ gimp_brush_select_preview_events (GtkWidget *widget,
if (brush_sel->mask_data)
{
switch (event->type)
{
case GDK_BUTTON_PRESS:
bevent = (GdkEventButton *) event;
if (bevent->button == 1)
{
gtk_grab_add (widget);
gimp_brush_select_popup_open (brush_sel, bevent->x, bevent->y);
}
break;
case GDK_BUTTON_RELEASE:
bevent = (GdkEventButton *) event;
if (bevent->button == 1)
{
gtk_grab_remove (widget);
gimp_brush_select_popup_close (brush_sel);
}
break;
default:
break;
}
{
case GDK_BUTTON_PRESS:
bevent = (GdkEventButton *) event;
if (bevent->button == 1)
{
gtk_grab_add (widget);
gimp_brush_select_popup_open (brush_sel, bevent->x, bevent->y);
}
break;
case GDK_BUTTON_RELEASE:
bevent = (GdkEventButton *) event;
if (bevent->button == 1)
{
gtk_grab_remove (widget);
gimp_brush_select_popup_close (brush_sel);
}
break;
default:
break;
}
}
return FALSE;
......
......@@ -86,17 +86,17 @@ gimp_brush_select_new (const gchar *title,
gchar *brush_callback = gimp_procedural_db_temp_name ();
gimp_install_temp_proc (brush_callback,
"Temporary brush popup callback procedure",
"",
"Andy Thomas",
"Andy Thomas",
"1997",
NULL,
"RGB*, GRAY*",
GIMP_TEMPORARY,
G_N_ELEMENTS (args), 0,
args, NULL,
gimp_temp_brush_run);
"Temporary brush popup callback procedure",
"",
"Andy Thomas",
"Andy Thomas",
"1997",
NULL,
"RGB*, GRAY*",
GIMP_TEMPORARY,
G_N_ELEMENTS (args), 0,
args, NULL,
gimp_temp_brush_run);
if (gimp_brushes_popup (brush_callback, title, brush_name,
opacity, spacing, paint_mode))
......
......@@ -47,16 +47,16 @@
*/
gint32
gimp_channel_new (gint32 image_ID,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color)
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color)
{
return _gimp_channel_new (image_ID,
width,
height,
name,
opacity,
color);
width,
height,
name,
opacity,
color);
}
......@@ -28,11 +28,11 @@ G_BEGIN_DECLS
gint32 gimp_channel_new (gint32 image_ID,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color);
const gchar *name,
guint width,
guint height,
gdouble opacity,
const GimpRGB *color);
G_END_DECLS
......
......@@ -145,9 +145,9 @@ gimp_drawable_flush (GimpDrawable *drawable)
GimpTile *
gimp_drawable_get_tile (GimpDrawable *drawable,
gboolean shadow,
gint row,
gint col)
gboolean shadow,
gint row,
gint col)
{
GimpTile *tiles;
guint right_tile;
......@@ -210,9 +210,9 @@ gimp_drawable_get_tile (GimpDrawable *drawable,
GimpTile *
gimp_drawable_get_tile2 (GimpDrawable *drawable,
gboolean shadow,
gint x,
gint y)
gboolean shadow,
gint x,
gint y)
{
gint row;
gint col;
......@@ -264,9 +264,9 @@ gimp_drawable_get_color_uchar (gint32 drawable_ID,
guchar *
gimp_drawable_get_thumbnail_data (gint32 drawable_ID,
gint *width,
gint *height,
gint *bpp)
gint *width,
gint *height,
gint *bpp)
{
gint ret_width;
gint ret_height;
......@@ -274,13 +274,13 @@ gimp_drawable_get_thumbnail_data (gint32 drawable_ID,
gint data_size;
_gimp_drawable_thumbnail (drawable_ID,
*width,
*height,
&ret_width,
&ret_height,
bpp,
&data_size,
&image_data);
*width,
*height,
&ret_width,
&ret_height,
bpp,
&data_size,
&image_data);
*width = ret_width;
*height = ret_height;
......@@ -338,10 +338,10 @@ gimp_drawable_get_sub_thumbnail_data (gint32 drawable_ID,
*/
gboolean
gimp_drawable_attach_new_parasite (gint32 drawable_ID,
const gchar *name,
gint flags,
gint size,
gconstpointer data)
const gchar *name,
gint flags,
gint size,
gconstpointer data)
{
GimpParasite *parasite = gimp_parasite_new (name, flags, size, data);
gboolean success;
......
......@@ -190,7 +190,7 @@ gimp_drawable_combo_box_new (GimpDrawableConstraintFunc constraint,
G_DEFINE_TYPE(GimpChannelComboBox,
gimp_channel_combo_box,
GIMP_TYPE_INT_COMBO_BOX);
GIMP_TYPE_INT_COMBO_BOX);
static void
gimp_channel_combo_box_class_init (GimpChannelComboBoxClass *klass)
......@@ -269,7 +269,7 @@ gimp_channel_combo_box_new (GimpDrawableConstraintFunc constraint,
G_DEFINE_TYPE(GimpLayerComboBox,
gimp_layer_combo_box,
GIMP_TYPE_INT_COMBO_BOX);
GIMP_TYPE_INT_COMBO_BOX);
static void
gimp_layer_combo_box_class_init (GimpLayerComboBoxClass *klass)
......
......@@ -48,17 +48,17 @@ typedef struct
static GObject * gimp_drawable_preview_constructor (GType type,
guint n_params,
GObjectConstructParam *params);
guint n_params,
GObjectConstructParam *params);
static void gimp_drawable_preview_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_drawable_preview_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void gimp_drawable_preview_destroy (GtkObject *object);
static void gimp_drawable_preview_style_set (GtkWidget *widget,
......@@ -74,7 +74,7 @@ static void gimp_drawable_preview_draw_buffer (GimpPreview *preview,
gint rowstride);
static void gimp_drawable_preview_set_drawable (GimpDrawablePreview *preview,
GimpDrawable *drawable);
GimpDrawable *drawable);
G_DEFINE_TYPE (GimpDrawablePreview, gimp_drawable_preview,
......@@ -110,8 +110,8 @@ gimp_drawable_preview_class_init (GimpDrawablePreviewClass *klass)
*/
g_object_class_install_property (object_class, PROP_DRAWABLE,
g_param_spec_pointer ("drawable", NULL, NULL,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
}
static void
......@@ -125,8 +125,8 @@ gimp_drawable_preview_init (GimpDrawablePreview *preview)
static GObject *
gimp_drawable_preview_constructor (GType type,
guint n_params,
GObjectConstructParam *params)
guint n_params,
GObjectConstructParam *params)
{
GObject *object;
PreviewSettings settings;
......@@ -145,9 +145,9 @@ gimp_drawable_preview_constructor (GType type,
static void
gimp_drawable_preview_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec)
guint property_id,
GValue *value,
GParamSpec *pspec)
{
GimpDrawablePreview *preview = GIMP_DRAWABLE_PREVIEW (object);
......@@ -155,7 +155,7 @@ gimp_drawable_preview_get_property (GObject *object,
{
case PROP_DRAWABLE:
g_value_set_pointer (value,
gimp_drawable_preview_get_drawable (preview));
gimp_drawable_preview_get_drawable (preview));
break;
default:
......@@ -166,9 +166,9 @@ gimp_drawable_preview_get_property (GObject *object,
static void
gimp_drawable_preview_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec)
guint property_id,
const GValue *value,
GParamSpec *pspec)
{
GimpDrawablePreview *preview = GIMP_DRAWABLE_PREVIEW (object);
......@@ -176,7 +176,7 @@ gimp_drawable_preview_set_property (GObject *object,
{
case PROP_DRAWABLE:
gimp_drawable_preview_set_drawable (preview,
g_value_get_pointer (value));
g_value_get_pointer (value));
break;
default:
......@@ -277,9 +277,9 @@ gimp_drawable_preview_draw_thumb (GimpPreview *preview,
void
_gimp_drawable_preview_area_draw_thumb (GimpPreviewArea *area,
GimpDrawable *drawable,
gint width,
gint height)
GimpDrawable *drawable,
gint width,
gint height)
{
guchar *buffer;
gint x1, y1, x2, y2;
......@@ -317,13 +317,13 @@ _gimp_drawable_preview_area_draw_thumb (GimpPreviewArea *area,
buffer = gimp_drawable_get_sub_thumbnail_data (drawable->drawable_id,
x1, y1, x2 - x1, y2 - y1,
&nav_width, &nav_height,
&bpp);
&bpp);
}
else
{
buffer = gimp_drawable_get_thumbnail_data (drawable->drawable_id,
&nav_width, &nav_height,
&bpp);
&bpp);
}
if (buffer)
......@@ -467,10 +467,10 @@ gimp_drawable_preview_set_drawable (GimpDrawablePreview *drawable_preview,
gboolean
_gimp_drawable_preview_get_bounds (GimpDrawable *drawable,
gint *xmin,
gint *ymin,
gint *xmax,
gint *ymax)
gint *xmin,
gint *ymin,
gint *xmax,
gint *ymax)
{
gint width;
gint height;
......@@ -533,8 +533,8 @@ gimp_drawable_preview_new (GimpDrawable *drawable,
g_return_val_if_fail (drawable != NULL, NULL);
preview = g_object_new (GIMP_TYPE_DRAWABLE_PREVIEW,
"drawable", drawable,
NULL);
"drawable", drawable,
NULL);
if (toggle)
{
......
......@@ -70,14 +70,14 @@ void gimp_drawable_preview_draw_region (GimpDrawablePreview *preview,
/* for internal use only */
void _gimp_drawable_preview_area_draw_thumb (GimpPreviewArea *area,
GimpDrawable *drawable,
gint width,
gint height) G_GNUC_INTERNAL;
GimpDrawable *drawable,
gint width,
gint height) G_GNUC_INTERNAL;
gboolean _gimp_drawable_preview_get_bounds (GimpDrawable *drawable,
gint *xmin,
gint *ymin,
gint *xmax,
gint *ymax) G_GNUC_INTERNAL;
gint *xmin,
gint *ymin,
gint *xmax,
gint *ymax) G_GNUC_INTERNAL;
G_END_DECLS
......
This diff is collapsed.
......@@ -70,17 +70,17 @@ gimp_font_select_new (const gchar *title,
gchar *font_callback = gimp_procedural_db_temp_name ();
gimp_install_temp_proc (font_callback,
"Temporary font popup callback procedure",
"",
"Andy Thomas",
"Andy Thomas",
"1997",
NULL,
"RGB*, GRAY*",
GIMP_TEMPORARY,
G_N_ELEMENTS (args), 0,
args, NULL,
gimp_temp_font_run);
"Temporary font popup callback procedure",
"",
"Andy Thomas",
"Andy Thomas",
"1997",
NULL,
"RGB*, GRAY*",
GIMP_TEMPORARY,
G_N_ELEMENTS (args), 0,
args, NULL,
gimp_temp_font_run);
if (gimp_fonts_popup (font_callback, title, font_name))
{
......
......@@ -234,12 +234,12 @@ gimp_gradient_select_widget_set (GtkWidget *widget,
&n_samples,
&samples))
{
gimp_gradient_select_widget_callback (name,
gimp_gradient_select_widget_callback (name,
n_samples, samples,
FALSE, gradient_sel);
g_free (samples);
}
}
g_free (name);
}
......@@ -368,15 +368,15 @@ gimp_gradient_select_preview_expose (GtkWidget *widget,
a = src[x * 4 + 3];
if ((x / GIMP_CHECK_SIZE_SM) & 1)
{
c0 = GIMP_CHECK_LIGHT;
c1 = GIMP_CHECK_DARK;
}
{
c0 = GIMP_CHECK_LIGHT;
c1 = GIMP_CHECK_DARK;
}
else
{
c0 = GIMP_CHECK_DARK;
c1 = GIMP_CHECK_LIGHT;
}
{
c0 = GIMP_CHECK_DARK;
c1 = GIMP_CHECK_LIGHT;
}
*p0++ = (c0 + (r - c0) * a) * 255.0;
*p0++ = (c0 + (g - c0) * a) * 255.0;
......
......@@ -75,17 +75,17 @@ gimp_gradient_select_new (const gchar *title,
gchar *gradient_callback = gimp_procedural_db_temp_name ();
gimp_install_temp_proc (gradient_callback,
"Temporary gradient popup callback procedure",
"",
"Andy Thomas",
"Andy Thomas",
"1997",
NULL,
"RGB*, GRAY*",
GIMP_TEMPORARY,
G_N_ELEMENTS (args), 0,
args, NULL,
gimp_temp_gradient_run);
"Temporary gradient popup callback procedure",
"",
"Andy Thomas",
"Andy Thomas",
"1997",
NULL,
"RGB*, GRAY*",
GIMP_TEMPORARY,
G_N_ELEMENTS (args), 0,
args, NULL,
gimp_temp_gradient_run);
if (gimp_gradients_popup (gradient_callback, title, gradient_name,
sample_size))
......@@ -97,7 +97,7 @@ gimp_gradient_select_new (const gchar *title,
/* Now add to hash table so we can find it again */
if (! gimp_gradient_select_ht)
gimp_gradient_select_ht = g_hash_table_new_full (g_str_hash,
g_str_equal,
g_str_equal,
g_free, g_free);
gradient_data = g_new0 (GimpGradientData, 1);
......
......@@ -35,7 +35,7 @@
*/
guchar *
gimp_image_get_cmap (gint32 image_ID,
gint *num_colors)
gint *num_colors)
{
return gimp_image_get_colormap (image_ID, num_colors);
}
......@@ -52,8 +52,8 @@ gimp_image_get_cmap (gint32 image_ID,
*/
gboolean
gimp_image_set_cmap (gint32 image_ID,
const guchar *cmap,
gint num_colors)
const guchar *cmap,
gint num_colors)
{
return gimp_image_set_colormap (image_ID, cmap, num_colors);
}
......@@ -110,9 +110,9 @@ gimp_image_set_colormap (gint32 image_ID,
guchar *
gimp_image_get_thumbnail_data (gint32 image_ID,
gint *width,
gint *height,
gint *bpp)
gint *width,
gint *height,
gint *bpp)
{
gint ret_width;
gint ret_height;
......@@ -120,13 +120,13 @@ gimp_image_get_thumbnail_data (gint32 image_ID,
gint data_size;
_gimp_image_thumbnail (image_ID,
*width,
*height,
&ret_width,
&ret_height,
bpp,
&data_size,
&image_data);
*width,
*height,
&ret_width,
&ret_height,
bpp,
&data_size,
&image_data);
*width = ret_width;
*height = ret_height;
......@@ -152,10 +152,10 @@ gimp_image_get_thumbnail_data (gint32 image_ID,
*/
gboolean
gimp_image_attach_new_parasite (gint32 image_ID,
const gchar *name,
gint flags,
gint size,
gconstpointer data)
const gchar *name,
gint flags,
gint size,
gconstpointer data)
{
GimpParasite *parasite = gimp_parasite_new (name, flags, size, data);
gboolean success;
......
......@@ -32,7 +32,7 @@ guchar * gimp_image_get_cmap (gint32 image_ID,
gint *num_colors);