From: Jose Dapena Paz Date: Wed, 13 May 2009 18:18:28 +0000 (+0200) Subject: Request motion events after processing the first one in attachments view X-Git-Tag: 3.0.17-rc5~8 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=df07861ba38a971b7b37c7420398c81bace29b07 Request motion events after processing the first one in attachments view --- 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; }