diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-08 10:13:54 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-12 11:06:41 +0100 |
commit | 8d8729cecd3b1707c936873ec02c9fbca3c66cf2 (patch) | |
tree | f8fa6a1784f3115bfd1e70658f0ba3e5da81e700 /libreofficekit | |
parent | 92e350866c024710e830ca03489e81d64e0e7303 (diff) |
gtktiledviewer: react to key releases
Change-Id: I5cbbd482fcf2e36851e1f82efc1cd511d856d10b
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index 6aea0f84a9ae..bb3c28ae3cad 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 ); |