[gimp] app: don't connect the print size and scale dialogs to GimpImage::disconnect



commit 0a0f8044aa54ac03fbfa7218492e6d22bf933778
Author: Michael Natterer <mitch gimp org>
Date:   Sat Sep 24 15:13:34 2016 +0200

    app: don't connect the print size and scale dialogs to GimpImage::disconnect
    
    GimpViewableDialog already does that.

 app/actions/image-commands.c |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/app/actions/image-commands.c b/app/actions/image-commands.c
index b973bd6..3ae34fc 100644
--- a/app/actions/image-commands.c
+++ b/app/actions/image-commands.c
@@ -480,8 +480,7 @@ image_color_profile_save_cmd_callback (GtkAction *action,
                         G_CALLBACK (image_profile_save_dialog_response),
                         image);
 
-      dialogs_attach_dialog (G_OBJECT (image),
-                             PROFILE_SAVE_DIALOG_KEY, dialog);
+      dialogs_attach_dialog (G_OBJECT (image), PROFILE_SAVE_DIALOG_KEY, dialog);
     }
 
   gtk_window_present (GTK_WINDOW (dialog));
@@ -600,12 +599,7 @@ image_print_size_cmd_callback (GtkAction *action,
                                       image_print_size_callback,
                                       NULL);
 
-      g_signal_connect_object (display, "disconnect",
-                               G_CALLBACK (gtk_widget_destroy),
-                               dialog, G_CONNECT_SWAPPED);
-
-      dialogs_attach_dialog (G_OBJECT (image),
-                             PRINT_SIZE_DIALOG_KEY, dialog);
+      dialogs_attach_dialog (G_OBJECT (image), PRINT_SIZE_DIALOG_KEY, dialog);
     }
 
   gtk_window_present (GTK_WINDOW (dialog));
@@ -644,12 +638,7 @@ image_scale_cmd_callback (GtkAction *action,
                                        image_scale_callback,
                                        display);
 
-      g_signal_connect_object (display, "disconnect",
-                               G_CALLBACK (gtk_widget_destroy),
-                               dialog, G_CONNECT_SWAPPED);
-
-      dialogs_attach_dialog (G_OBJECT (image),
-                             SCALE_DIALOG_KEY, dialog);
+      dialogs_attach_dialog (G_OBJECT (image), SCALE_DIALOG_KEY, dialog);
     }
 
   gtk_window_present (GTK_WINDOW (dialog));


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