summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkdevice-win32.c
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2015-12-19 10:31:32 +0100
committerIgnacio Casal Quinteiro <icq@gnome.org>2015-12-22 09:31:56 +0100
commit7f17468afc761ae63f1b5581c7769c9d97453f65 (patch)
tree7cae43afd326c07a92bd6436e2c47660c3351610 /gdk/win32/gdkdevice-win32.c
parent75b3eec7a6549f0c2cf56d5b831c83aa939de3c7 (diff)
downloadgtk+-7f17468afc761ae63f1b5581c7769c9d97453f65.tar.gz
W32: avoid code duplication in gdkdevice-win32|virtual
The same get_position function is cut and pasted in the two classes.
Diffstat (limited to 'gdk/win32/gdkdevice-win32.c')
-rw-r--r--gdk/win32/gdkdevice-win32.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/gdk/win32/gdkdevice-win32.c b/gdk/win32/gdkdevice-win32.c
index 3554a7ab11..d27034cd5d 100644
--- a/gdk/win32/gdkdevice-win32.c
+++ b/gdk/win32/gdkdevice-win32.c
@@ -61,11 +61,6 @@ static GdkGrabStatus gdk_device_win32_grab (GdkDevice *device,
guint32 time_);
static void gdk_device_win32_ungrab (GdkDevice *device,
guint32 time_);
-static GdkWindow * gdk_device_win32_window_at_position (GdkDevice *device,
- gdouble *win_x,
- gdouble *win_y,
- GdkModifierType *mask,
- gboolean get_toplevel);
static void gdk_device_win32_select_window_events (GdkDevice *device,
GdkWindow *window,
GdkEventMask event_mask);
@@ -85,7 +80,7 @@ gdk_device_win32_class_init (GdkDeviceWin32Class *klass)
device_class->query_state = gdk_device_win32_query_state;
device_class->grab = gdk_device_win32_grab;
device_class->ungrab = gdk_device_win32_ungrab;
- device_class->window_at_position = gdk_device_win32_window_at_position;
+ device_class->window_at_position = _gdk_device_win32_window_at_position;
device_class->select_window_events = gdk_device_win32_select_window_events;
}
@@ -263,12 +258,12 @@ screen_to_client (HWND hwnd, POINT screen_pt, POINT *client_pt)
ScreenToClient (hwnd, client_pt);
}
-static GdkWindow *
-gdk_device_win32_window_at_position (GdkDevice *device,
- gdouble *win_x,
- gdouble *win_y,
- GdkModifierType *mask,
- gboolean get_toplevel)
+GdkWindow *
+_gdk_device_win32_window_at_position (GdkDevice *device,
+ gdouble *win_x,
+ gdouble *win_y,
+ GdkModifierType *mask,
+ gboolean get_toplevel)
{
GdkWindow *window = NULL;
POINT screen_pt, client_pt;