Commit ef206e7f authored by Simon Budig's avatar Simon Budig Committed by Simon Budig
Browse files

Fix warnings and coding style.

2004-09-13  Simon Budig  <simon@gimp.org>

	* app/tools/gimpcroptool.c: Fix warnings and coding style.
parent 8be9e2b2
2004-09-13 Simon Budig <simon@gimp.org>
* app/tools/gimpcroptool.c: Fix warnings and coding style.
2004-09-12 Nathan Summers <rock@gimp.org>
* app/tools/gimpcroptool.c: disable crop and resize buttons while the
......
......@@ -938,10 +938,10 @@ crop_start (GimpCropTool *crop)
gimp_tool_push_status_coords (tool, _("Crop: "), 0, " x ", 0);
/* restore sensitivity of buttons */
gtk_dialog_set_response_sensitive(crop->crop_info->shell,
GIMP_CROP_MODE_CROP, TRUE);
gtk_dialog_set_response_sensitive(crop->crop_info->shell,
GIMP_CROP_MODE_RESIZE, TRUE);
gtk_dialog_set_response_sensitive (GTK_DIALOG (crop->crop_info->shell),
GIMP_CROP_MODE_CROP, TRUE);
gtk_dialog_set_response_sensitive (GTK_DIALOG (crop->crop_info->shell),
GIMP_CROP_MODE_RESIZE, TRUE);
gimp_draw_tool_start (GIMP_DRAW_TOOL (tool), tool->gdisp);
}
......@@ -1105,16 +1105,16 @@ crop_response (GtkWidget *widget,
case GIMP_CROP_MODE_CROP:
case GIMP_CROP_MODE_RESIZE:
if (crop->crop_info)
{
/* set these buttons to be insensitive so that you cannot
* accidentially trigger a crop while one is ongoing */
gtk_dialog_set_response_sensitive(crop->crop_info->shell,
GIMP_CROP_MODE_CROP, FALSE);
gtk_dialog_set_response_sensitive(crop->crop_info->shell,
GIMP_CROP_MODE_RESIZE, FALSE);
{
/* set these buttons to be insensitive so that you cannot
* accidentially trigger a crop while one is ongoing */
gtk_dialog_set_response_sensitive (GTK_DIALOG (crop->crop_info->shell),
GIMP_CROP_MODE_CROP, FALSE);
gtk_dialog_set_response_sensitive (GTK_DIALOG (crop->crop_info->shell),
GIMP_CROP_MODE_RESIZE, FALSE);
}
crop_tool_crop_image (tool->gdisp->gimage,
GIMP_CONTEXT (options),
crop->x1, crop->y1,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment