mirror of https://github.com/GNOME/gimp.git
parent
ac30648449
commit
411e605ebd
|
@ -1079,8 +1079,9 @@ bezier_convert (BezierSelect *bezier_sel,
|
|||
}
|
||||
|
||||
/* create a new mask */
|
||||
bezier_sel->mask = channel_new_mask (gdisp->gimage->ID, gdisp->gimage->width,
|
||||
gdisp->gimage->height);
|
||||
bezier_sel->mask = channel_ref (channel_new_mask (gdisp->gimage->ID,
|
||||
gdisp->gimage->width,
|
||||
gdisp->gimage->height));
|
||||
|
||||
/* allocate room for the scanlines */
|
||||
bezier_sel->scanlines = g_malloc (sizeof (GSList *) * height);
|
||||
|
|
|
@ -212,7 +212,7 @@ channel_get_ID (int ID)
|
|||
void
|
||||
channel_delete (Channel *channel)
|
||||
{
|
||||
gtk_object_destroy (GTK_OBJECT (channel));
|
||||
gtk_object_unref (GTK_OBJECT (channel));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -212,7 +212,7 @@ channel_get_ID (int ID)
|
|||
void
|
||||
channel_delete (Channel *channel)
|
||||
{
|
||||
gtk_object_destroy (GTK_OBJECT (channel));
|
||||
gtk_object_unref (GTK_OBJECT (channel));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -212,7 +212,7 @@ channel_get_ID (int ID)
|
|||
void
|
||||
channel_delete (Channel *channel)
|
||||
{
|
||||
gtk_object_destroy (GTK_OBJECT (channel));
|
||||
gtk_object_unref (GTK_OBJECT (channel));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -504,7 +504,7 @@ layer_get_ID (ID)
|
|||
void
|
||||
layer_delete (Layer * layer)
|
||||
{
|
||||
gtk_object_destroy (GTK_OBJECT (layer));
|
||||
gtk_object_unref (GTK_OBJECT (layer));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
|
|||
|
||||
if (fuzzy_mask)
|
||||
channel_delete (fuzzy_mask);
|
||||
fuzzy_mask = new;
|
||||
fuzzy_mask = channel_ref (new);
|
||||
|
||||
/* calculate and allocate a new XSegment array which represents the boundary
|
||||
* of the color-contiguous region
|
||||
|
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
|
|||
sample_merged = (int_value) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
/* call the ellipse_select procedure */
|
||||
/* call the fuzzy_select procedure */
|
||||
if (success)
|
||||
{
|
||||
Channel *new;
|
||||
|
|
|
@ -212,7 +212,7 @@ channel_get_ID (int ID)
|
|||
void
|
||||
channel_delete (Channel *channel)
|
||||
{
|
||||
gtk_object_destroy (GTK_OBJECT (channel));
|
||||
gtk_object_unref (GTK_OBJECT (channel));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -504,7 +504,7 @@ layer_get_ID (ID)
|
|||
void
|
||||
layer_delete (Layer * layer)
|
||||
{
|
||||
gtk_object_destroy (GTK_OBJECT (layer));
|
||||
gtk_object_unref (GTK_OBJECT (layer));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -504,7 +504,7 @@ layer_get_ID (ID)
|
|||
void
|
||||
layer_delete (Layer * layer)
|
||||
{
|
||||
gtk_object_destroy (GTK_OBJECT (layer));
|
||||
gtk_object_unref (GTK_OBJECT (layer));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -1079,8 +1079,9 @@ bezier_convert (BezierSelect *bezier_sel,
|
|||
}
|
||||
|
||||
/* create a new mask */
|
||||
bezier_sel->mask = channel_new_mask (gdisp->gimage->ID, gdisp->gimage->width,
|
||||
gdisp->gimage->height);
|
||||
bezier_sel->mask = channel_ref (channel_new_mask (gdisp->gimage->ID,
|
||||
gdisp->gimage->width,
|
||||
gdisp->gimage->height));
|
||||
|
||||
/* allocate room for the scanlines */
|
||||
bezier_sel->scanlines = g_malloc (sizeof (GSList *) * height);
|
||||
|
|
|
@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
|
|||
|
||||
if (fuzzy_mask)
|
||||
channel_delete (fuzzy_mask);
|
||||
fuzzy_mask = new;
|
||||
fuzzy_mask = channel_ref (new);
|
||||
|
||||
/* calculate and allocate a new XSegment array which represents the boundary
|
||||
* of the color-contiguous region
|
||||
|
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
|
|||
sample_merged = (int_value) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
/* call the ellipse_select procedure */
|
||||
/* call the fuzzy_select procedure */
|
||||
if (success)
|
||||
{
|
||||
Channel *new;
|
||||
|
|
|
@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
|
|||
|
||||
if (fuzzy_mask)
|
||||
channel_delete (fuzzy_mask);
|
||||
fuzzy_mask = new;
|
||||
fuzzy_mask = channel_ref (new);
|
||||
|
||||
/* calculate and allocate a new XSegment array which represents the boundary
|
||||
* of the color-contiguous region
|
||||
|
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
|
|||
sample_merged = (int_value) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
/* call the ellipse_select procedure */
|
||||
/* call the fuzzy_select procedure */
|
||||
if (success)
|
||||
{
|
||||
Channel *new;
|
||||
|
|
|
@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
|
|||
|
||||
if (fuzzy_mask)
|
||||
channel_delete (fuzzy_mask);
|
||||
fuzzy_mask = new;
|
||||
fuzzy_mask = channel_ref (new);
|
||||
|
||||
/* calculate and allocate a new XSegment array which represents the boundary
|
||||
* of the color-contiguous region
|
||||
|
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
|
|||
sample_merged = (int_value) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
/* call the ellipse_select procedure */
|
||||
/* call the fuzzy_select procedure */
|
||||
if (success)
|
||||
{
|
||||
Channel *new;
|
||||
|
|
Loading…
Reference in New Issue