diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-21 05:02:47 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-21 05:05:37 +0800 |
commit | ca4937f8f76ed57b3ab7a00b3de8a721321f4ba6 (patch) | |
tree | e462b131e66f7146f6c673897bb81fbad63a3736 /widgets/misc/e-attachment-tree-view.c | |
parent | 077c5ca3abc299f41c74d48958477fa574d1824c (diff) | |
download | gsoc2013-evolution-ca4937f8f76ed57b3ab7a00b3de8a721321f4ba6.tar.gz gsoc2013-evolution-ca4937f8f76ed57b3ab7a00b3de8a721321f4ba6.tar.zst gsoc2013-evolution-ca4937f8f76ed57b3ab7a00b3de8a721321f4ba6.zip |
Bug 608855 - Can't drag and drop multiple attachments
Based on EggTreeMultiDragSource in libegg.
Diffstat (limited to 'widgets/misc/e-attachment-tree-view.c')
-rw-r--r-- | widgets/misc/e-attachment-tree-view.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -144,6 +144,20 @@ attachment_tree_view_button_release_event (GtkWidget *widget, } 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; |