mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
app/core/gimp.c converted tabs to spaces, cosmetic changes.
2004-08-11 Michael Natterer <mitch@gimp.org> * app/core/gimp.c * app/core/gimpimagefile.c: converted tabs to spaces, cosmetic changes.
This commit is contained in:
parent
a59c673d03
commit
db1d6b0d6e
|
@ -1,3 +1,9 @@
|
|||
2004-08-11 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimp.c
|
||||
* app/core/gimpimagefile.c: converted tabs to spaces, cosmetic
|
||||
changes.
|
||||
|
||||
2004-08-11 DindinX <david@dindinx.org>
|
||||
|
||||
* plug-ins/common/waves.c: GimpPreviewArea-ified.
|
||||
|
|
|
@ -122,19 +122,19 @@ gimp_get_type (void)
|
|||
static const GTypeInfo object_info =
|
||||
{
|
||||
sizeof (GimpClass),
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
(GClassInitFunc) gimp_class_init,
|
||||
NULL, /* class_finalize */
|
||||
NULL, /* class_data */
|
||||
sizeof (Gimp),
|
||||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gimp_init,
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
(GClassInitFunc) gimp_class_init,
|
||||
NULL, /* class_finalize */
|
||||
NULL, /* class_data */
|
||||
sizeof (Gimp),
|
||||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gimp_init,
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GIMP_TYPE_OBJECT,
|
||||
"Gimp",
|
||||
&object_info, 0);
|
||||
"Gimp",
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
return object_type;
|
||||
|
@ -572,41 +572,41 @@ gimp_real_initialize (Gimp *gimp,
|
|||
gimp->brush_factory =
|
||||
gimp_data_factory_new (gimp,
|
||||
GIMP_TYPE_BRUSH,
|
||||
"brush-path", "brush-path-writable",
|
||||
brush_loader_entries,
|
||||
G_N_ELEMENTS (brush_loader_entries),
|
||||
gimp_brush_new,
|
||||
gimp_brush_get_standard);
|
||||
"brush-path", "brush-path-writable",
|
||||
brush_loader_entries,
|
||||
G_N_ELEMENTS (brush_loader_entries),
|
||||
gimp_brush_new,
|
||||
gimp_brush_get_standard);
|
||||
gimp_object_set_name (GIMP_OBJECT (gimp->brush_factory), "brush factory");
|
||||
|
||||
gimp->pattern_factory =
|
||||
gimp_data_factory_new (gimp,
|
||||
GIMP_TYPE_PATTERN,
|
||||
"pattern-path", "pattern-path-writable",
|
||||
pattern_loader_entries,
|
||||
G_N_ELEMENTS (pattern_loader_entries),
|
||||
NULL,
|
||||
gimp_pattern_get_standard);
|
||||
"pattern-path", "pattern-path-writable",
|
||||
pattern_loader_entries,
|
||||
G_N_ELEMENTS (pattern_loader_entries),
|
||||
NULL,
|
||||
gimp_pattern_get_standard);
|
||||
gimp_object_set_name (GIMP_OBJECT (gimp->pattern_factory), "pattern factory");
|
||||
|
||||
gimp->gradient_factory =
|
||||
gimp_data_factory_new (gimp,
|
||||
GIMP_TYPE_GRADIENT,
|
||||
"gradient-path", "gradient-path-writable",
|
||||
gradient_loader_entries,
|
||||
G_N_ELEMENTS (gradient_loader_entries),
|
||||
gimp_gradient_new,
|
||||
gimp_gradient_get_standard);
|
||||
"gradient-path", "gradient-path-writable",
|
||||
gradient_loader_entries,
|
||||
G_N_ELEMENTS (gradient_loader_entries),
|
||||
gimp_gradient_new,
|
||||
gimp_gradient_get_standard);
|
||||
gimp_object_set_name (GIMP_OBJECT (gimp->gradient_factory), "gradient factory");
|
||||
|
||||
gimp->palette_factory =
|
||||
gimp_data_factory_new (gimp,
|
||||
GIMP_TYPE_PALETTE,
|
||||
"palette-path", "palette-path-writable",
|
||||
palette_loader_entries,
|
||||
G_N_ELEMENTS (palette_loader_entries),
|
||||
gimp_palette_new,
|
||||
gimp_palette_get_standard);
|
||||
"palette-path", "palette-path-writable",
|
||||
palette_loader_entries,
|
||||
G_N_ELEMENTS (palette_loader_entries),
|
||||
gimp_palette_new,
|
||||
gimp_palette_get_standard);
|
||||
gimp_object_set_name (GIMP_OBJECT (gimp->palette_factory), "palette factory");
|
||||
|
||||
gimp_paint_init (gimp);
|
||||
|
@ -947,10 +947,10 @@ gimp_set_last_plug_in (Gimp *gimp,
|
|||
|
||||
GimpImage *
|
||||
gimp_create_image (Gimp *gimp,
|
||||
gint width,
|
||||
gint height,
|
||||
GimpImageBaseType type,
|
||||
gboolean attach_comment)
|
||||
gint width,
|
||||
gint height,
|
||||
GimpImageBaseType type,
|
||||
gboolean attach_comment)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
|
||||
|
@ -980,7 +980,7 @@ gimp_create_image (Gimp *gimp,
|
|||
|
||||
void
|
||||
gimp_set_default_context (Gimp *gimp,
|
||||
GimpContext *context)
|
||||
GimpContext *context)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_GIMP (gimp));
|
||||
g_return_if_fail (! context || GIMP_IS_CONTEXT (context));
|
||||
|
@ -1004,7 +1004,7 @@ gimp_get_default_context (Gimp *gimp)
|
|||
|
||||
void
|
||||
gimp_set_user_context (Gimp *gimp,
|
||||
GimpContext *context)
|
||||
GimpContext *context)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_GIMP (gimp));
|
||||
g_return_if_fail (! context || GIMP_IS_CONTEXT (context));
|
||||
|
|
|
@ -95,18 +95,18 @@ gimp_imagefile_get_type (void)
|
|||
static const GTypeInfo imagefile_info =
|
||||
{
|
||||
sizeof (GimpImagefileClass),
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
(GClassInitFunc) gimp_imagefile_class_init,
|
||||
NULL, /* class_finalize */
|
||||
NULL, /* class_data */
|
||||
sizeof (GimpImagefile),
|
||||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gimp_imagefile_init,
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
(GClassInitFunc) gimp_imagefile_class_init,
|
||||
NULL, /* class_finalize */
|
||||
NULL, /* class_data */
|
||||
sizeof (GimpImagefile),
|
||||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gimp_imagefile_init,
|
||||
};
|
||||
|
||||
imagefile_type = g_type_register_static (GIMP_TYPE_VIEWABLE,
|
||||
"GimpImagefile",
|
||||
"GimpImagefile",
|
||||
&imagefile_info, 0);
|
||||
}
|
||||
|
||||
|
@ -116,25 +116,21 @@ gimp_imagefile_get_type (void)
|
|||
static void
|
||||
gimp_imagefile_class_init (GimpImagefileClass *klass)
|
||||
{
|
||||
GObjectClass *object_class;
|
||||
GimpObjectClass *gimp_object_class;
|
||||
GimpViewableClass *viewable_class;
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass);
|
||||
GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass);
|
||||
gchar *creator;
|
||||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
||||
object_class = G_OBJECT_CLASS (klass);
|
||||
gimp_object_class = GIMP_OBJECT_CLASS (klass);
|
||||
viewable_class = GIMP_VIEWABLE_CLASS (klass);
|
||||
|
||||
gimp_imagefile_signals[INFO_CHANGED] =
|
||||
g_signal_new ("info_changed",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GimpImagefileClass, info_changed),
|
||||
NULL, NULL,
|
||||
gimp_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GimpImagefileClass, info_changed),
|
||||
NULL, NULL,
|
||||
gimp_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
object_class->finalize = gimp_imagefile_finalize;
|
||||
|
||||
|
|
Loading…
Reference in a new issue