[gnome-applets] trash: drop use of confirm-trash



commit db5157f1de816f0142b2bf1f9d1081e5b6205326
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 12 21:36:47 2022 +0200

    trash: drop use of confirm-trash
    
    Nautilus removed this key in:
    https://gitlab.gnome.org/GNOME/nautilus/-/commit/e96aac1f6526f537
    
    https://bugs.launchpad.net/bugs/1964679

 gnome-applets/trash/trash-empty.c | 16 ----------------
 1 file changed, 16 deletions(-)
---
diff --git a/gnome-applets/trash/trash-empty.c b/gnome-applets/trash/trash-empty.c
index 98cdfd3ce..0646f95a9 100644
--- a/gnome-applets/trash/trash-empty.c
+++ b/gnome-applets/trash/trash-empty.c
@@ -273,16 +273,6 @@ trash_empty_start (GtkWidget *parent)
   gtk_widget_show (GTK_WIDGET (trash_empty_dialog));
 }
 
-static gboolean
-trash_empty_require_confirmation (void)
-{
-  GSettings *settings = g_settings_new ("org.gnome.nautilus.preferences");
-  gboolean confirm_trash = g_settings_get_boolean (settings, "confirm-trash");
-  g_object_unref (settings);
-
-  return confirm_trash;
-}
-
 static void
 trash_empty_confirmation_response (GtkDialog *dialog,
                                    gint       response_id,
@@ -307,12 +297,6 @@ trash_empty_show_confirmation_dialog (GtkWidget *parent)
   GtkWidget *button;
   GdkScreen *screen;
 
-  if (!trash_empty_require_confirmation ())
-    {
-      trash_empty_start (parent);
-      return;
-    }
-
   screen = gtk_widget_get_screen (parent);
 
   dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,


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