* src/widgets/modest-recpt-view.c:
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 4 Sep 2007 15:33:54 +0000 (15:33 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 4 Sep 2007 15:33:54 +0000 (15:33 +0000)
* Grab focus on click, so that clipboard operations do what we
  expect them to do (fixes NB#64898).

pmo-trunk-r3204

src/widgets/modest-recpt-view.c

index 93edff3..3601c8e 100644 (file)
@@ -134,6 +134,7 @@ button_release_event (GtkWidget *widget,
                        gint buffer_x, buffer_y;
                        int index;
                        GtkTextIter iter;
+                       gtk_widget_grab_focus (GTK_WIDGET (text_view));
                        gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view), GTK_TEXT_WINDOW_WIDGET,
                                                               event->x, event->y, &buffer_x, &buffer_y);
                        gtk_text_view_get_iter_at_location (GTK_TEXT_VIEW (text_view), &iter, buffer_x, buffer_y);