[balsa/gtk4: 247/286] main-window: Use the default "accept" handler
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 247/286] main-window: Use the default "accept" handler
- Date: Thu, 24 Dec 2020 17:07:35 +0000 (UTC)
commit 87b12222d27056da340987c79b30af0e1cf8d831
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 2aeccd372..20993eeb0 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]