[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - libreofficekit/qa
Miklos Vajna
vmiklos at collabora.co.uk
Thu Jan 8 06:59:17 PST 2015
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 7389f2fa5484897ee3b02ea50a88b1a40f8257fa
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Thu Jan 8 10:13:54 2015 +0100
gtktiledviewer: react to key releases
Change-Id: I5cbbd482fcf2e36851e1f82efc1cd511d856d10b
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index 6aea0f8..bb3c28a 100644
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
@@ -124,8 +124,8 @@ void changeQuadView( GtkWidget* /*pButton*/, gpointer /* pItem */ )
}
}
-/// Receives a key press event.
-static void docViewKeyPress(GtkWidget* /*pWidget*/, GdkEvent* /*pEvent*/, gpointer /*pData*/)
+/// Receives a key press or release event.
+static void signalKey(GtkWidget* /*pWidget*/, GdkEventKey* /*pEvent*/, gpointer /*pData*/)
{
}
@@ -284,7 +284,8 @@ int main( int argc, char* argv[] )
pDocViewQuad = 0;
// Input handling.
- g_signal_connect(pWindow, "key-press-event", G_CALLBACK(docViewKeyPress), NULL);
+ g_signal_connect(pWindow, "key-press-event", G_CALLBACK(signalKey), NULL);
+ g_signal_connect(pWindow, "key-release-event", G_CALLBACK(signalKey), NULL);
gtk_container_add( GTK_CONTAINER(pVBox), pDocView );
More information about the Libreoffice-commits
mailing list