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:
CST 1998 Larry Ewing 1998-03-16 23:16:51 +00:00 committed by Larry Ewing
parent d728bead19
commit 723ea64bb4
5 changed files with 22 additions and 8 deletions

View File

@ -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>
* plugins/illusion/illusion.c:

View File

@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
sprintf (initial, "%f", gimage_mask_feather_radius);
query_string_box ("Feather Selection", "Feather selection by:", initial,
gimage_mask_feather_callback, gdisp->gimage);
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
}
void
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
GImage *gimage;
double feather_radius;
gimage = (GImage *) client_data;
if (!(gimage = gimage_get_ID ((int)client_data)))
return;
feather_radius = atof (call_data);
gimage_mask_feather (gimage, feather_radius);

View File

@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
sprintf (initial, "%f", gimage_mask_feather_radius);
query_string_box ("Feather Selection", "Feather selection by:", initial,
gimage_mask_feather_callback, gdisp->gimage);
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
}
void
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
GImage *gimage;
double feather_radius;
gimage = (GImage *) client_data;
if (!(gimage = gimage_get_ID ((int)client_data)))
return;
feather_radius = atof (call_data);
gimage_mask_feather (gimage, feather_radius);

View File

@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
sprintf (initial, "%f", gimage_mask_feather_radius);
query_string_box ("Feather Selection", "Feather selection by:", initial,
gimage_mask_feather_callback, gdisp->gimage);
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
}
void
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
GImage *gimage;
double feather_radius;
gimage = (GImage *) client_data;
if (!(gimage = gimage_get_ID ((int)client_data)))
return;
feather_radius = atof (call_data);
gimage_mask_feather (gimage, feather_radius);

View File

@ -1666,7 +1666,7 @@ select_feather_cmd_callback (GtkWidget *widget,
sprintf (initial, "%f", gimage_mask_feather_radius);
query_string_box ("Feather Selection", "Feather selection by:", initial,
gimage_mask_feather_callback, gdisp->gimage);
gimage_mask_feather_callback, (gpointer) gdisp->gimage->ID);
}
void
@ -2482,7 +2482,9 @@ gimage_mask_feather_callback (GtkWidget *w,
GImage *gimage;
double feather_radius;
gimage = (GImage *) client_data;
if (!(gimage = gimage_get_ID ((int)client_data)))
return;
feather_radius = atof (call_data);
gimage_mask_feather (gimage, feather_radius);