take const GimpRGB* instead of just GimpRGB*. Converted tabs to spaces.

2004-06-30  Michael Natterer  <mitch@gimp.org>

	* app/core/gimppalette.[ch] (gimp_palette_add_entry): take
	const GimpRGB* instead of just GimpRGB*.
	Converted tabs to spaces.
This commit is contained in:
Michael Natterer
2004-06-30 11:09:44 +00:00
committed by Michael Natterer
parent 425fd699e3
commit 12355969f6
5 changed files with 337 additions and 346 deletions

View File

@ -1,3 +1,9 @@
2004-06-30 Michael Natterer <mitch@gimp.org>
* app/core/gimppalette.[ch] (gimp_palette_add_entry): take
const GimpRGB* instead of just GimpRGB*.
Converted tabs to spaces.
2004-06-30 Michael Natterer <mitch@gimp.org> 2004-06-30 Michael Natterer <mitch@gimp.org>
* widgets/gimpselectiondata.[ch] (gimp_selection_data_get_svg): * widgets/gimpselectiondata.[ch] (gimp_selection_data_get_svg):

View File

@ -112,15 +112,10 @@ gimp_palette_get_type (void)
static void static void
gimp_palette_class_init (GimpPaletteClass *klass) gimp_palette_class_init (GimpPaletteClass *klass)
{ {
GObjectClass *object_class; GObjectClass *object_class = G_OBJECT_CLASS (klass);
GimpObjectClass *gimp_object_class; GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass);
GimpViewableClass *viewable_class; GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass);
GimpDataClass *data_class; GimpDataClass *data_class = GIMP_DATA_CLASS (klass);
object_class = G_OBJECT_CLASS (klass);
gimp_object_class = GIMP_OBJECT_CLASS (klass);
viewable_class = GIMP_VIEWABLE_CLASS (klass);
data_class = GIMP_DATA_CLASS (klass);
parent_class = g_type_class_peek_parent (klass); parent_class = g_type_class_peek_parent (klass);
@ -629,7 +624,7 @@ gimp_palette_duplicate (GimpData *data,
GimpPaletteEntry * GimpPaletteEntry *
gimp_palette_add_entry (GimpPalette *palette, gimp_palette_add_entry (GimpPalette *palette,
const gchar *name, const gchar *name,
GimpRGB *color) const GimpRGB *color)
{ {
GimpPaletteEntry *entry; GimpPaletteEntry *entry;

View File

@ -112,15 +112,10 @@ gimp_palette_get_type (void)
static void static void
gimp_palette_class_init (GimpPaletteClass *klass) gimp_palette_class_init (GimpPaletteClass *klass)
{ {
GObjectClass *object_class; GObjectClass *object_class = G_OBJECT_CLASS (klass);
GimpObjectClass *gimp_object_class; GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass);
GimpViewableClass *viewable_class; GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass);
GimpDataClass *data_class; GimpDataClass *data_class = GIMP_DATA_CLASS (klass);
object_class = G_OBJECT_CLASS (klass);
gimp_object_class = GIMP_OBJECT_CLASS (klass);
viewable_class = GIMP_VIEWABLE_CLASS (klass);
data_class = GIMP_DATA_CLASS (klass);
parent_class = g_type_class_peek_parent (klass); parent_class = g_type_class_peek_parent (klass);
@ -629,7 +624,7 @@ gimp_palette_duplicate (GimpData *data,
GimpPaletteEntry * GimpPaletteEntry *
gimp_palette_add_entry (GimpPalette *palette, gimp_palette_add_entry (GimpPalette *palette,
const gchar *name, const gchar *name,
GimpRGB *color) const GimpRGB *color)
{ {
GimpPaletteEntry *entry; GimpPaletteEntry *entry;

View File

@ -112,15 +112,10 @@ gimp_palette_get_type (void)
static void static void
gimp_palette_class_init (GimpPaletteClass *klass) gimp_palette_class_init (GimpPaletteClass *klass)
{ {
GObjectClass *object_class; GObjectClass *object_class = G_OBJECT_CLASS (klass);
GimpObjectClass *gimp_object_class; GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass);
GimpViewableClass *viewable_class; GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass);
GimpDataClass *data_class; GimpDataClass *data_class = GIMP_DATA_CLASS (klass);
object_class = G_OBJECT_CLASS (klass);
gimp_object_class = GIMP_OBJECT_CLASS (klass);
viewable_class = GIMP_VIEWABLE_CLASS (klass);
data_class = GIMP_DATA_CLASS (klass);
parent_class = g_type_class_peek_parent (klass); parent_class = g_type_class_peek_parent (klass);
@ -629,7 +624,7 @@ gimp_palette_duplicate (GimpData *data,
GimpPaletteEntry * GimpPaletteEntry *
gimp_palette_add_entry (GimpPalette *palette, gimp_palette_add_entry (GimpPalette *palette,
const gchar *name, const gchar *name,
GimpRGB *color) const GimpRGB *color)
{ {
GimpPaletteEntry *entry; GimpPaletteEntry *entry;

View File

@ -73,7 +73,7 @@ GimpData * gimp_palette_load (const gchar *filename,
GimpPaletteEntry * gimp_palette_add_entry (GimpPalette *palette, GimpPaletteEntry * gimp_palette_add_entry (GimpPalette *palette,
const gchar *name, const gchar *name,
GimpRGB *color); const GimpRGB *color);
void gimp_palette_delete_entry (GimpPalette *palette, void gimp_palette_delete_entry (GimpPalette *palette,
GimpPaletteEntry *entry); GimpPaletteEntry *entry);