Initialize missing methods on Windows

Set the input_window_destroy and input_window_crossing methods of the
GdkWindowImplIface on Windows. Add implementation of
_gdk_input_crossing_event that is mostly dummy, though.
This commit is contained in:
Tor Lillqvist 2009-08-13 22:49:35 +03:00
parent a5f6b812be
commit 341b8a4752
3 changed files with 36 additions and 2 deletions

View File

@ -108,12 +108,16 @@ GdkTimeCoord ** _gdk_device_allocate_history (GdkDevice *device,
/* The following functions are provided by each implementation
* (just wintab for now)
*/
void _gdk_input_configure_event (GdkWindow *window);
void _gdk_input_enter_event (GdkWindow *window);
void _gdk_input_configure_event (GdkWindow *window);
void _gdk_input_enter_event (GdkWindow *window);
gboolean _gdk_input_other_event (GdkEvent *event,
MSG *msg,
GdkWindow *window);
void _gdk_input_crossing_event (GdkWindow *window,
gboolean enter);
/* These should be in gdkinternals.h */
GdkInputWindow *_gdk_input_window_find (GdkWindow *window);

View File

@ -310,6 +310,34 @@ _gdk_input_window_destroy (GdkWindow *window)
g_free(input_window);
}
void
_gdk_input_crossing_event (GdkWindow *window,
gboolean enter)
{
GdkWindowObject *priv = (GdkWindowObject *)window;
GdkInputWindow *input_window;
gint root_x, root_y;
if (enter)
{
#if 0
/* No idea what to do... */
#if 0
gdk_input_check_proximity(display);
#endif
input_window = priv->input_window;
if (input_window != NULL)
{
_gdk_input_get_root_relative_geometry (window, &root_x, &root_y);
input_window->root_x = root_x;
input_window->root_y = root_y;
}
#endif
}
else
_gdk_input_ignore_core = FALSE;
}
void
_gdk_input_exit (void)
{

View File

@ -3657,4 +3657,6 @@ gdk_window_impl_iface_init (GdkWindowImplIface *iface)
iface->queue_antiexpose = _gdk_win32_window_queue_antiexpose;
iface->queue_translation = _gdk_win32_window_queue_translation;
iface->destroy = _gdk_win32_window_destroy;
iface->input_window_destroy = _gdk_input_window_destroy;
iface->input_window_crossing = _gdk_input_crossing_event;
}