[gimp/gimp-2-10] Show message dialogs in preferences dialog



commit 939f0caa19ee7044bfe591bc543cd720fed6408b
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Wed Aug 11 10:49:35 2021 +0200

    Show message dialogs in preferences dialog
    
    (cherry picked from commit ac0a084e6e007cc0b035c5f8f351d4c157cfb2fe)

 app/dialogs/preferences-dialog.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index 37973176df..0bbf675d95 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -1082,10 +1082,9 @@ prefs_message (GtkMessageType  type,
                                    type, GTK_BUTTONS_OK,
                                    "%s", message);
 
-  g_signal_connect (dialog, "response",
-                    G_CALLBACK (gtk_widget_destroy),
-                    NULL);
-  gtk_widget_show (dialog);
+  gtk_dialog_run (GTK_DIALOG (dialog));
+
+  gtk_widget_destroy (dialog);
 }
 
 static GtkWidget *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]