[balsa/gtk4: 255/311] main-window: Use the default "accept" handler




commit 6d94e9f65c02af49852b8b150323199d4a9273f6
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Nov 2 14:56:48 2020 -0500

    main-window: Use the default "accept" handler

 src/main-window.c | 15 ---------------
 1 file changed, 15 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index a21c80187..d1d331c9f 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2737,20 +2737,6 @@ bw_mailbox_changed(LibBalsaMailbox * mailbox, GtkLabel * lab)
     bw_notebook_label_style(lab, libbalsa_mailbox_get_unread(mailbox) > 0);
 }
 
-/*
- * bw_notebook_tab_drag_accept
- *
- * Handler for the "accept" signal
- */
-
-static gboolean
-bw_notebook_tab_drag_accept(GtkDropTarget *drop_target,
-                            GdkDrop       *drop,
-                            gpointer       user_data)
-{
-    return TRUE;
-}
-
 /*
  * bw_notebook_tab_drag_drop
  *
@@ -2848,7 +2834,6 @@ bw_notebook_label_new(BalsaMailboxNode * mbnode)
     /* Drag and drop */
     drop_target = gtk_drop_target_new(BALSA_TYPE_INDEX, GDK_ACTION_COPY | GDK_ACTION_MOVE);
     gtk_widget_add_controller(box, GTK_EVENT_CONTROLLER(drop_target));
-    g_signal_connect(drop_target, "accept", G_CALLBACK(bw_notebook_tab_drag_accept), box);
     g_signal_connect(drop_target, "drop", G_CALLBACK(bw_notebook_tab_drag_drop), box);
     g_object_set_data(G_OBJECT(box), BALSA_WINDOW_MAILBOX_KEY, mailbox);
 


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