[gnome-builder/wip/gtk4-port] libide/greeter: cleanup delete message dialog text



commit 84c05340480ccd00bc74120a6b15586da908b3a6
Author: Christian Hergert <chergert redhat com>
Date:   Thu Mar 31 00:24:41 2022 -0700

    libide/greeter: cleanup delete message dialog text

 src/libide/greeter/ide-greeter-workspace.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/libide/greeter/ide-greeter-workspace.c b/src/libide/greeter/ide-greeter-workspace.c
index b45dbe54b..1941e4de1 100644
--- a/src/libide/greeter/ide-greeter-workspace.c
+++ b/src/libide/greeter/ide-greeter-workspace.c
@@ -592,8 +592,8 @@ ide_greeter_workspace_purge_selected_rows (GSimpleAction *action,
   dialog = g_object_new (GTK_TYPE_MESSAGE_DIALOG,
                          "modal", TRUE,
                          "transient-for", parent,
-                         "attached-to", parent,
-                         "text", _("Removing project sources will delete them from your computer and cannot 
be undone."),
+                         "text", _("Delete Project Sources?"),
+                         "secondary-text", _("Deleting the project source code from your computer cannot be 
undone."),
                          NULL);
   gtk_dialog_add_buttons (dialog,
                           _("Cancel"), GTK_RESPONSE_CANCEL,
@@ -601,13 +601,12 @@ ide_greeter_workspace_purge_selected_rows (GSimpleAction *action,
                           NULL);
   button = gtk_dialog_get_widget_for_response (dialog, GTK_RESPONSE_OK);
   gtk_widget_add_css_class (button, "destructive-action");
-  g_signal_connect_data (dialog,
-                         "response",
-                         G_CALLBACK (purge_selected_rows_response),
-                         g_object_ref (self),
-                         (GClosureNotify)g_object_unref,
-                         G_CONNECT_SWAPPED);
-  ide_gtk_window_present (GTK_WINDOW (dialog));
+  g_signal_connect_object (dialog,
+                           "response",
+                           G_CALLBACK (purge_selected_rows_response),
+                           self,
+                           G_CONNECT_SWAPPED);
+  gtk_window_present (GTK_WINDOW (dialog));
 }
 
 static void


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