From df07861ba38a971b7b37c7420398c81bace29b07 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Wed, 13 May 2009 20:18:28 +0200 Subject: [PATCH] Request motion events after processing the first one in attachments view --- src/widgets/modest-attachments-view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/modest-attachments-view.c b/src/widgets/modest-attachments-view.c index ac8d05b..a6e55a4 100644 --- a/src/widgets/modest-attachments-view.c +++ b/src/widgets/modest-attachments-view.c @@ -502,9 +502,12 @@ motion_notify_event (GtkWidget *widget, (gint) event->x_root, (gint) event->y_root); if (priv->style == MODEST_ATTACHMENTS_VIEW_STYLE_LINKS) { if (att_view == priv->press_att_view) { + if (priv->selected == NULL) set_selected (MODEST_ATTACHMENTS_VIEW (widget), MODEST_ATTACHMENT_VIEW (att_view)); } else { - unselect_all (MODEST_ATTACHMENTS_VIEW (widget)); + if (priv->selected) { + unselect_all (MODEST_ATTACHMENTS_VIEW (widget)); + } } } else { @@ -515,6 +518,7 @@ motion_notify_event (GtkWidget *widget, MODEST_ATTACHMENT_VIEW (att_view)); } } + gdk_event_request_motions (event); } return TRUE; } -- 1.7.9.5