mirror of https://github.com/GNOME/gimp.git
changed select_feather_cmd_callback to pass the gimage->ID rather than the
Mon Mar 16 17:05:54 CST 1998 Larry Ewing <lewing@gimp.org> * app/commands.c: changed select_feather_cmd_callback to pass the gimage->ID rather than the gimage to prevent a fatal error. If you have objections to this speak now.
This commit is contained in:
parent
d728bead19
commit
723ea64bb4
|
@ -1,3 +1,9 @@
|
||||||
|
Mon Mar 16 17:05:54 CST 1998 Larry Ewing <lewing@gimp.org>
|
||||||
|
|
||||||
|
* app/commands.c: changed select_feather_cmd_callback to pass the
|
||||||
|
gimage->ID rather than the gimage to prevent a fatal error. If
|
||||||
|
you have objections to this speak now.
|
||||||
|
|
||||||
Mon Mar 16 17:50:56 EST 1998 Adrian Likins <adrian@gimp.org>
|
Mon Mar 16 17:50:56 EST 1998 Adrian Likins <adrian@gimp.org>
|
||||||
|
|
||||||
* plugins/illusion/illusion.c:
|
* plugins/illusion/illusion.c:
|
||||||
|
|
|
@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
||||||
|
|
||||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||||
gimage_mask_feather_callback, gdisp->gimage);
|
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
|
||||||
GImage *gimage;
|
GImage *gimage;
|
||||||
double feather_radius;
|
double feather_radius;
|
||||||
|
|
||||||
gimage = (GImage *) client_data;
|
if (!(gimage = gimage_get_ID ((int)client_data)))
|
||||||
|
return;
|
||||||
|
|
||||||
feather_radius = atof (call_data);
|
feather_radius = atof (call_data);
|
||||||
|
|
||||||
gimage_mask_feather (gimage, feather_radius);
|
gimage_mask_feather (gimage, feather_radius);
|
||||||
|
|
|
@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
||||||
|
|
||||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||||
gimage_mask_feather_callback, gdisp->gimage);
|
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
|
||||||
GImage *gimage;
|
GImage *gimage;
|
||||||
double feather_radius;
|
double feather_radius;
|
||||||
|
|
||||||
gimage = (GImage *) client_data;
|
if (!(gimage = gimage_get_ID ((int)client_data)))
|
||||||
|
return;
|
||||||
|
|
||||||
feather_radius = atof (call_data);
|
feather_radius = atof (call_data);
|
||||||
|
|
||||||
gimage_mask_feather (gimage, feather_radius);
|
gimage_mask_feather (gimage, feather_radius);
|
||||||
|
|
|
@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
||||||
|
|
||||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||||
gimage_mask_feather_callback, gdisp->gimage);
|
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
|
||||||
GImage *gimage;
|
GImage *gimage;
|
||||||
double feather_radius;
|
double feather_radius;
|
||||||
|
|
||||||
gimage = (GImage *) client_data;
|
if (!(gimage = gimage_get_ID ((int)client_data)))
|
||||||
|
return;
|
||||||
|
|
||||||
feather_radius = atof (call_data);
|
feather_radius = atof (call_data);
|
||||||
|
|
||||||
gimage_mask_feather (gimage, feather_radius);
|
gimage_mask_feather (gimage, feather_radius);
|
||||||
|
|
|
@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
||||||
|
|
||||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||||
gimage_mask_feather_callback, gdisp->gimage);
|
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
|
||||||
GImage *gimage;
|
GImage *gimage;
|
||||||
double feather_radius;
|
double feather_radius;
|
||||||
|
|
||||||
gimage = (GImage *) client_data;
|
if (!(gimage = gimage_get_ID ((int)client_data)))
|
||||||
|
return;
|
||||||
|
|
||||||
feather_radius = atof (call_data);
|
feather_radius = atof (call_data);
|
||||||
|
|
||||||
gimage_mask_feather (gimage, feather_radius);
|
gimage_mask_feather (gimage, feather_radius);
|
||||||
|
|
Loading…
Reference in New Issue