[balsa/gtk4: 244/276] main-window: Use the default "accept" handler
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 244/276] main-window: Use the default "accept" handler
- Date: Sat, 12 Dec 2020 16:03:35 +0000 (UTC)
commit d5bc0d8f42c0e97d9f18d008def779159113e8f6
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 3f52b37a7..4fe8ed755 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2738,20 +2738,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
*
@@ -2849,7 +2835,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]