summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-07 11:04:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-07 11:04:33 +0100
commitfbe26ca557fc9dfd1ed904d08251b6cd34e6ce5d (patch)
tree2ec9730d2c5c870794eea3c37d82251c8fbe2179
parentfef5c2b81d1ac7d64e01521da792f470b03a1841 (diff)
VclInputFlags fix
Change-Id: I60c989a86ad94d35c7bfa650a0bd993a23b26c0d
-rw-r--r--vcl/unx/gtk/app/gtkinst.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/unx/gtk/app/gtkinst.cxx b/vcl/unx/gtk/app/gtkinst.cxx
index c93dbe2bd7c7..99efa229bd3e 100644
--- a/vcl/unx/gtk/app/gtkinst.cxx
+++ b/vcl/unx/gtk/app/gtkinst.cxx
@@ -115,9 +115,9 @@ extern "C"
}
#if GTK_CHECK_VERSION(3,0,0)
-static sal_uInt16 categorizeEvent(const GdkEvent *pEvent)
+static VclInputFlags categorizeEvent(const GdkEvent *pEvent)
{
- sal_uInt16 nType = 0;
+ VclInputFlags nType = VclInputFlags::NONE;
switch( pEvent->type )
{
case GDK_MOTION_NOTIFY:
@@ -425,8 +425,8 @@ bool GtkInstance::AnyInput( VclInputFlags nType )
while ((pEvent = gdk_event_get()))
{
aEvents.push(pEvent);
- sal_uInt16 nEventType = categorizeEvent(pEvent);
- if ( (nEventType & nType) || ( ! nEventType && (nType & VclInputFlags::OTHER) ) )
+ VclInputFlags nEventType = categorizeEvent(pEvent);
+ if ( (nEventType & nType) || ( nEventType == VclInputFlags::NONE && (nType & VclInputFlags::OTHER) ) )
{
bRet = true;
break;