app/dialogs/resize-dialog.c (resize_dialog_response) replaced "case

2004-11-08  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_response)
	* app/dialogs/scale-dialog.c (scale_dialog_response): replaced
	"case GTK_RESPONSE_CANCEL:" by "default:" so it also catches
	hitting the escape key or clicking the WM close button.
This commit is contained in:
Michael Natterer 2004-11-08 11:22:24 +00:00 committed by Michael Natterer
parent 4e78437cd6
commit 2c1fc59906
3 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2004-11-08 Michael Natterer <mitch@gimp.org>
* app/dialogs/resize-dialog.c (resize_dialog_response)
* app/dialogs/scale-dialog.c (scale_dialog_response): replaced
"case GTK_RESPONSE_CANCEL:" by "default:" so it also catches
hitting the escape key or clicking the WM close button.
2004-11-08 Øyvind Kolås <pippin@gimp.org>
* plug-ins/common/gqbist.c: fixed typo in construction of file

View File

@ -280,10 +280,6 @@ resize_dialog_response (GtkWidget *dialog,
switch (response_id)
{
case GTK_RESPONSE_CANCEL:
gtk_widget_destroy (dialog);
break;
case RESPONSE_RESET:
resize_dialog_reset (private);
break;
@ -302,6 +298,10 @@ resize_dialog_response (GtkWidget *dialog,
gimp_size_entry_get_refval (entry, 1),
private->user_data);
break;
default:
gtk_widget_destroy (dialog);
break;
}
}

View File

@ -219,10 +219,6 @@ scale_dialog_response (GtkWidget *dialog,
switch (response_id)
{
case GTK_RESPONSE_CANCEL:
gtk_widget_destroy (dialog);
break;
case RESPONSE_RESET:
scale_dialog_reset (private);
break;
@ -246,6 +242,10 @@ scale_dialog_response (GtkWidget *dialog,
xres, yres, resolution_unit,
private->user_data);
break;
default:
gtk_widget_destroy (dialog);
break;
}
}