Commit 2c1fc599 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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.
parent 4e78437c
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
......
......@@ -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;
}
}
......
......@@ -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;
}
}
......
Markdown is supported
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