[gimp] app: fix gimp_test_utils_create_image_from_dialog()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix gimp_test_utils_create_image_from_dialog()
- Date: Sat, 26 May 2018 10:42:02 +0000 (UTC)
commit a33fcfd43c6134d4ade37d4fa772f60a96a5ba4a
Author: Michael Natterer <mitch gimp org>
Date: Sat May 26 12:40:53 2018 +0200
app: fix gimp_test_utils_create_image_from_dialog()
to reliably press the OK button. Makes tests fail a bit later.
app/tests/gimp-app-test-utils.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/tests/gimp-app-test-utils.c b/app/tests/gimp-app-test-utils.c
index a5617e3f07..989b7b7806 100644
--- a/app/tests/gimp-app-test-utils.c
+++ b/app/tests/gimp-app-test-utils.c
@@ -311,10 +311,10 @@ gimp_test_utils_create_image_from_dialog (Gimp *gimp)
"gimp-image-new-dialog",
-1 /*view_size*/);
- /* Press the focused widget, it should be the Ok button. It will
- * take a while for the image to be created so loop for a while
+ /* Press the OK button. It will take a while for the image to be
+ * created so loop for a while
*/
- gtk_widget_activate (gtk_window_get_focus (GTK_WINDOW (new_image_dialog)));
+ gtk_dialog_response (GTK_DIALOG (new_image_dialog), GTK_RESPONSE_OK);
do
{
g_usleep (20 * 1000);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]