From ca4937f8f76ed57b3ab7a00b3de8a721321f4ba6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 20 May 2010 17:02:47 -0400 Subject: Bug 608855 - Can't drag and drop multiple attachments Based on EggTreeMultiDragSource in libegg. --- widgets/misc/e-attachment-tree-view.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'widgets/misc/e-attachment-tree-view.c') diff --git a/widgets/misc/e-attachment-tree-view.c b/widgets/misc/e-attachment-tree-view.c index 5729a68069..09602ca186 100644 --- a/widgets/misc/e-attachment-tree-view.c +++ b/widgets/misc/e-attachment-tree-view.c @@ -143,6 +143,20 @@ attachment_tree_view_button_release_event (GtkWidget *widget, button_release_event (widget, event); } +static gboolean +attachment_tree_view_motion_notify_event (GtkWidget *widget, + GdkEventMotion *event) +{ + EAttachmentView *view = E_ATTACHMENT_VIEW (widget); + + if (e_attachment_view_motion_notify_event (view, event)) + return TRUE; + + /* Chain up to parent's motion_notify_event() method. */ + return GTK_WIDGET_CLASS (parent_class)-> + motion_notify_event (widget, event); +} + static gboolean attachment_tree_view_key_press_event (GtkWidget *widget, GdkEventKey *event) @@ -440,6 +454,7 @@ attachment_tree_view_class_init (EAttachmentTreeViewClass *class) widget_class = GTK_WIDGET_CLASS (class); widget_class->button_press_event = attachment_tree_view_button_press_event; widget_class->button_release_event = attachment_tree_view_button_release_event; + widget_class->motion_notify_event = attachment_tree_view_motion_notify_event; widget_class->key_press_event = attachment_tree_view_key_press_event; widget_class->drag_begin = attachment_tree_view_drag_begin; widget_class->drag_end = attachment_tree_view_drag_end; -- cgit