Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
be0b6cf0
Commit
be0b6cf0
authored
Apr 15, 2003
by
Emmanuel Puig
Browse files
* GTK2 events work even better
parent
5f90fb1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins/gtk2/gtk2_api.cpp
View file @
be0b6cf0
...
...
@@ -2,7 +2,7 @@
* gtk2_api.cpp: Various gtk2-specific functions
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_api.cpp,v 1.
7
2003/04/15 20:
33
:58 karibu Exp $
* $Id: gtk2_api.cpp,v 1.
8
2003/04/15 20:
54
:58 karibu Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -121,11 +121,7 @@ void OSAPI_GetScreenSize( int &w, int &h )
//---------------------------------------------------------------------------
void
OSAPI_GetMousePos
(
int
&
x
,
int
&
y
)
{
/* LPPOINT MousePos = new POINT;
GetCursorPos( MousePos );
x = MousePos->x;
y = MousePos->y;
delete MousePos;*/
gdk_window_get_pointer
(
gdk_get_default_root_window
(),
&
x
,
&
y
,
NULL
);
}
//---------------------------------------------------------------------------
string
OSAPI_GetWindowTitle
(
Window
*
win
)
...
...
modules/gui/skins/gtk2/gtk2_event.cpp
View file @
be0b6cf0
...
...
@@ -2,7 +2,7 @@
* gtk2_event.cpp: GTK2 implementation of the Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_event.cpp,v 1.
6
2003/04/15 20:
33
:58 karibu Exp $
* $Id: gtk2_event.cpp,v 1.
7
2003/04/15 20:
54
:58 karibu Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -80,12 +80,14 @@ bool GTK2Event::SendEvent()
{
OSAPI_PostMessage
(
*
win
,
Message
,
Param1
,
Param2
);
PostSynchroMessage
();
return
true
;
}
}
OSAPI_PostMessage
(
NULL
,
Message
,
Param1
,
Param2
);
return
true
;
}
OSAPI_PostMessage
(
NULL
,
Message
,
Param1
,
Param2
);
return
true
;
return
false
;
}
//---------------------------------------------------------------------------
bool
GTK2Event
::
IsEqual
(
Event
*
evt
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment