[Libreoffice-commits] core.git: libreofficekit/source

Pranav Kant pranavk at gnome.org
Tue Jul 7 00:30:24 PDT 2015


 libreofficekit/source/gtk/lokdocview.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit a625cd702700ae1773966a3133d27027d1c4d083
Author: Pranav Kant <pranavk at gnome.org>
Date:   Thu Jul 2 23:47:33 2015 +0530

    lokdocview: Grab focus on mouse 'button-press-event'
    
    Change-Id: I65187bbd2cc32d9278d8b3890a82b5555390858a

diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 62f1e61..bf12ca0 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -812,6 +812,7 @@ lok_doc_view_signal_button(GtkWidget* pWidget, GdkEventButton* pEvent)
            (int)pEvent->x, (int)pEvent->y,
            (int)pixelToTwip(pEvent->x, priv->m_fZoom),
            (int)pixelToTwip(pEvent->y, priv->m_fZoom));
+    gtk_widget_grab_focus(GTK_WIDGET(pDocView));
 
     if (pEvent->type == GDK_BUTTON_RELEASE)
     {


More information about the Libreoffice-commits mailing list