Don't call Cancel from OK in the Arbitrary rotation and scale dialogs
Effects:
* Pressing enter applies the transformation before closing the dialog
* Pressing OK doesn't clear the values
See merge request !4
static gboolean rotatedlg_ok( GtkWidget *widget, RotateDialog* rotateDialog ){
rotatedlg_apply( widget, rotateDialog );
- rotatedlg_cancel( widget, rotateDialog );
+ gtk_widget_hide( GTK_WIDGET( rotateDialog->window ) );
return TRUE;
}
static gboolean scaledlg_ok( GtkWidget *widget, ScaleDialog* scaleDialog ){
scaledlg_apply( widget, scaleDialog );
- scaledlg_cancel( widget, scaleDialog );
+ gtk_widget_hide( GTK_WIDGET( scaleDialog->window ) );
return TRUE;
}