Commit 5f90fb1f authored by Emmanuel Puig's avatar Emmanuel Puig

* Fixed GTK2 events

parent 1377f497
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_run.cpp: * gtk2_run.cpp:
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_run.cpp,v 1.7 2003/04/15 20:33:58 karibu Exp $ * $Id: gtk2_run.cpp,v 1.8 2003/04/15 20:42:04 karibu Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -72,18 +72,28 @@ void GTK2Proc( GdkEvent *event, gpointer data ) ...@@ -72,18 +72,28 @@ void GTK2Proc( GdkEvent *event, gpointer data )
unsigned int msg; unsigned int msg;
VlcProc *proc = (VlcProc *)data; VlcProc *proc = (VlcProc *)data;
intf_thread_t *p_intf = proc->GetpIntf(); intf_thread_t *p_intf = proc->GetpIntf();
Event *evt;
list<Window *>::const_iterator win; list<Window *>::const_iterator win;
GdkWindow *gwnd = ((GdkEventAny *)event)->window; GdkWindow *gwnd = ((GdkEventAny *)event)->window;
// Create event to dispatch in windows
// Skin event
if( event->type == GDK_CLIENT_EVENT ) if( event->type == GDK_CLIENT_EVENT )
{
msg = ( (GdkEventClient *)event )->data.l[0]; msg = ( (GdkEventClient *)event )->data.l[0];
evt = (Event *)new OSEvent( p_intf,
((GdkEventAny *)event)->window,
msg,
( (GdkEventClient *)event )->data.l[1],
( (GdkEventClient *)event )->data.l[2] );
}
// System event
else else
{
msg = event->type; msg = event->type;
evt = (Event *)new OSEvent( p_intf,
// Create event to dispatch in windows ((GdkEventAny *)event)->window, msg, 0, (long)event );
Event *evt = (Event *)new OSEvent( p_intf, ((GdkEventAny *)event)->window, }
msg, 0, (long)event );
if( IsVLCEvent( msg ) ) if( IsVLCEvent( msg ) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment