summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/window/gtkobject.cxx
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2010-09-16 15:34:55 +0200
committerRadek Doulik <rodo@novell.com>2010-09-16 15:34:55 +0200
commitac78f4a9b199ea0f6f4afe58034fb82c9af11672 (patch)
treebdcc80909133616a572400f62673a3b94139e8f8 /vcl/unx/gtk/window/gtkobject.cxx
parent0ef4991ae907cdb25c1ffcb96e842fa2629dc3e0 (diff)
patches/gstreamer/gstreamer-vcl.diff: gstreamer
- make it possible to forward key events to child window so that gstreamer receives them
Diffstat (limited to 'vcl/unx/gtk/window/gtkobject.cxx')
-rw-r--r--vcl/unx/gtk/window/gtkobject.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/unx/gtk/window/gtkobject.cxx b/vcl/unx/gtk/window/gtkobject.cxx
index 2a2bbe78078a..aefb60f5606b 100644
--- a/vcl/unx/gtk/window/gtkobject.cxx
+++ b/vcl/unx/gtk/window/gtkobject.cxx
@@ -209,3 +209,12 @@ void GtkSalObject::signalDestroy( GtkObject* pObj, gpointer object )
pThis->m_pSocket = NULL;
}
}
+
+void GtkSalObject::SetForwardKey( BOOL bEnable )
+{
+ printf ("GtkSalObject::SetForwardKey\n");
+ if( bEnable )
+ gtk_widget_add_events( GTK_WIDGET( m_pSocket ), GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE );
+ else
+ gtk_widget_set_events( GTK_WIDGET( m_pSocket ), ~(GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE) & gtk_widget_get_events( GTK_WIDGET( m_pSocket ) ) );
+}