gdk: Add a private getter for GdkDevice::input-mode

This commit is contained in:
Matthias Clasen 2016-04-30 20:52:09 -04:00
parent 172093db8c
commit 7f4b575fc3
2 changed files with 8 additions and 0 deletions

View File

@ -2050,3 +2050,9 @@ gdk_device_update_tool (GdkDevice *device,
g_signal_emit (device, signals[TOOL_CHANGED], 0, tool);
}
}
GdkInputMode
gdk_device_get_input_mode (GdkDevice *device)
{
return device->mode;
}

View File

@ -189,6 +189,8 @@ void gdk_device_set_seat (GdkDevice *device,
void gdk_device_update_tool (GdkDevice *device,
GdkDeviceTool *tool);
GdkInputMode gdk_device_get_input_mode (GdkDevice *device);
G_END_DECLS
#endif /* __GDK_DEVICE_PRIVATE_H__ */