Carlos Garnacho
7d8a3a52ce
GdkDevice: Do not free construct-only properties data on dispose()
...
Those are not references to other objects, and the device will be mostly
useless if those can't be set again anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=756625
2015-11-03 13:28:07 +01:00
Matthias Clasen
4307fff677
device: Convert to g_object_notify_by_pspec
...
This avoids pspec lookup overhead in g_object_notify.
2015-09-06 17:13:00 -04:00
Carlos Garnacho
5e53676b46
device: Add property/getters for vendor/product identifiers
...
These are a construct only properties, expected to be filled in from
platform specific code.
https://bugzilla.gnome.org/show_bug.cgi?id=740758
2015-01-19 15:09:19 +01:00
Matthias Clasen
c304f2ea68
docs: Add a missing word
2014-11-28 14:25:42 -05:00
Matthias Clasen
abe7187cfb
Add another multi-device invariant
...
The device and window passed to gdk_device_grab() must be
on the same display, or things are unlikely to work.
Document and assert this.
2014-10-28 00:54:39 -04:00
Matthias Clasen
4c69dabb6e
Don't return GDK_GRAB_SUCCESS on failure
...
That seems ... counterproductive.
2014-10-28 00:51:32 -04:00
Matthias Clasen
919bdff7ac
GdkDevice: Avoid unnecessary critical
...
There is no need for a critical warning just because somebody
asked for a property that is not meaningful for the device.
Just document it as not useful for keyboard devices.
2014-10-05 19:43:06 -04:00
Marek Kasik
8b5d30d439
Remove redundant checks for NULL
...
Remove checks for NULL before g_free() and g_clear_object().
Merge check for NULL, freeing of pointer and its setting
to NULL by g_clear_pointer().
https://bugzilla.gnome.org/show_bug.cgi?id=733157
2014-10-02 19:06:03 +02:00
Carlos Garnacho
7995cd59d0
gdk: Explain the relation between device type and mode
...
GdkInputMode doesn't apply to all device types, explain why
and how do these interact.
2014-07-21 22:16:04 +02:00
Matthias Clasen
5727a86760
GdkDevice: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:53 -04:00
Evan Nemerson
701adf81b6
gdk: assorted introspection and documentation fixes
...
https://bugzilla.gnome.org/show_bug.cgi?id=729983
2014-05-19 11:47:59 -07:00
Evan Nemerson
38d2458f53
gdk: add many missing (nullable) return value annotations
...
https://bugzilla.gnome.org/show_bug.cgi?id=729834
2014-05-11 11:48:32 -04:00
Matthias Clasen
5b2236e3d7
Add a Since annotation to gdk_device_get_last_event_window
2014-03-12 23:04:37 -04:00
Owen W. Taylor
40b6d907bf
Use GDK's current window tracking when synthesizing events in GTK+
...
Add gdk_device_get_last_event_window(), and use to implement the window
tracking we need for synthesizing crossing events for sensitivity changes
and gtk grabs, rather than keeping the information in qdata and updating
it based when GTK+ gets events.
https://bugzilla.gnome.org/show_bug.cgi?id=726187
2014-03-12 23:03:53 -04:00
William Jon McCann
469d333aa2
docs: use Returns: consistently
...
Instead of Return value:
2014-02-19 18:56:05 -05:00
Matthias Clasen
7f6a964c47
Docs: Remove all entities and turn off sgml mode
...
With all element markup gone, it is time to turn off
sgml mode, and get rid of entities as well.
2014-02-09 17:58:07 -05:00
William Jon McCann
e34bd4137d
docs: use apostrophes in *n't
2014-02-07 13:32:47 -05:00
William Jon McCann
7a208fbbf3
docs: use proper apostrophe
...
https://wiki.gnome.org/Design/OS/Typography
2014-02-07 13:06:10 -05:00
Martin Renold
701daf2b05
gdk: Document event compression better
...
Advise against using GDK_POINTER_MOTION_HINT_MASK.
Add pointers to gdk_window_set_event_compression() to the documentation.
2013-11-16 01:50:53 +01:00
Murray Cumming
330f51978d
docs: Minor grammatical corrections.
2013-07-29 11:51:33 +02:00
Alexander Larsson
e8b38fedbd
gdk: Convert mouse position to doubles, add new getters
...
We've long had double precision mouse coordinates on wayland (e.g.
when rotating a window) but with the new scaling we even have it on
X (and, its also in Xinput2), so convert all the internal mouse/device
position getters to use doubles and add new accessors for the
public APIs that take doubles instead of ints.
2013-07-03 14:39:25 +02:00
Matthias Clasen
116b5e560f
GdkDevice: Fix an inverted assertion
...
gdk_device_list_slave_devices only makes sense to call on master
devices, yet its g_return_if_fail check made it reject such devices.
Pointed out by monty.
2012-06-20 22:44:32 -04:00
Alexander Larsson
ddd24761fd
Add _gdk_device_get_axis_info
...
This is needed for the win32 master/slave handling code.
2012-04-03 11:37:41 +02:00
Benjamin Otte
114b45c7eb
gdk: Make query_state() vfunc a void vfunc
...
... and make sure the backends implement it that way.
query_state() return value was ignored in all of GDK and caused crashes
when it failed.
2012-03-09 13:23:05 +01:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Carlos Garnacho
db74a6e816
GdkDevice: Remove duplicate private function
...
_gdk_device_get_axis_use() dates back to pre-sealing, when the
xi2 work began, this remaining can be gone with a public
gdk_device_get_axis_use() function already in place.
2011-04-08 16:39:45 +02:00
Alexander Larsson
a3b2840cae
Remove support for GDK_NATIVE_WINDOWS
...
GDK_NATIVE_WINDOWS was a way to keep some old apps running that did weird
things in gtk2. We should not have to carry this forwards in gtk 3.x.
We do however keep a g_warning() call reminding people of this fact to
ease debugging when they try to port their applications.
https://bugzilla.gnome.org/show_bug.cgi?id=644119
2011-03-08 23:13:39 +01:00
Matthias Clasen
1f4bb70bac
Give the GDK docs some love
...
Reorganize some sections, drop the largely redundant multihead
section, add some more information about multiple backends.
2011-02-09 01:32:24 -05:00
Carlos Garnacho
8fdd8dbc35
Do not modify associated device for non-master devices on dispose
...
Only master devices must modify the associated device to separate
a pointer/keyboard pair, slave devices must only call
_gdk_device_remove_slave().
Fixes bug 639767 - password not accepted in gnome-screensaver dialog,
reported by Frederic Crozat. On VT-switch, the X server removes its
grab on HW devices, the effect on clients is that slave devices
disappear, and these were mistakenly mangling the master device
hierarchy. so gdk_device_get_associated_device() on the client
pointer wouldn't return the paired keyboard anymore.
The final effect is that gtkplug-x11 wasn't setting a keyboard to
its generated events.
2011-01-24 19:55:41 +01:00
Carlos Garnacho
94c4a312c1
Add extra checks for GdkDevice functions that might fail on slave devices.
...
Documentation bits have been added as well.
2011-01-24 02:54:38 +01:00
Sebastian Pölsterl
8effa1eb0e
[gi] Added missing (allow-none) annotation to gdk_device_grab
2011-01-21 10:36:07 +01:00
Pavel Holejsovsky
374e76a19d
[GI] Mark unintrospectable constructs as (skip)
...
Also adds 'Rename to:' annotation to some constructs replacing the
skipped ones.
2011-01-20 13:57:21 +01:00
Pavel Holejsovsky
2fb1c06402
[GI] Add missing (out) and (array) annotations
2011-01-20 13:57:20 +01:00
Pavel Holejsovsky
3c8fc21e9b
[GI] Fixes of existing incorrect annotations
2011-01-20 13:56:06 +01:00
Pavel Holejsovsky
9389054da2
[GI] Add (type) annotations to real types
2011-01-20 10:38:38 +01:00
Benjamin Otte
ae7e5fc2d1
gdk: Simplify code
...
Move a previous vfunc into the only caller.
2011-01-03 17:44:24 +01:00
Benjamin Otte
6c39cade16
gdk: Get rid of GdkDisplayDeviceHooks
...
Move the only user to call the function directly and copy the called
function over.
2011-01-03 17:44:24 +01:00
Benjamin Otte
6e18276f52
gdk: Move get_device_state out of the display hooks
...
Previous callers now use _gdk_device_query_state() directly.
2011-01-03 17:44:24 +01:00
Benjamin Otte
42fbccd3d2
API: gdk: Remove gdk_device_set_source()
...
The source of a device is not changeable.
2010-12-27 20:08:50 +01:00
Benjamin Otte
9746991548
API: gdk: Make gdk_display_get_window_at_device_position() a device API
...
It's now called gdk_device_get_window_at_position(). It doesn't make
sense to keep device-specific API part of the display.
2010-12-27 18:46:41 +01:00
Benjamin Otte
0c285341a9
API: gdk: gdk_display_get_device_state() => gdk_device_get_position()
...
The API was not display-specific, but belonged to the device. Also, we
didn't find a user of the modifier mask, so we dropped it.
2010-12-27 18:46:41 +01:00
Matthias Clasen
27ce9421d0
Fix up GDK docs
2010-12-25 00:02:39 -05:00
Javier Jardón
30cdab13fe
docs: Add docs about how to get a GtkDevice
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=637895
2010-12-24 14:39:55 +01:00
Benjamin Otte
66f7c3a562
API: gdk: gdk_display_warp_device() => gdk_device_warp()
...
warping devices has nothing to do with displays, so putting it there
seems weird.
2010-12-21 12:07:06 -05:00
Matthias Clasen
224726f554
Remove gdk_windowing_{get_device_state,window_at_device_position}
...
The !trusted workaround code is pushed down into the GdkDevice
subclasses, and we use the device vfuncs directly in gdkdisplay.c
2010-12-21 12:06:59 -05:00
Matthias Clasen
9adb974155
Add a vfunc for _gdk_windowing_window_get_next_serial
2010-12-21 12:06:58 -05:00
Matthias Clasen
ea96e5e16f
Explode gdkinternals.h into per-class private headers
...
At the same time, move some more class and instance structs
out of public headers.
2010-12-21 12:06:58 -05:00
Matthias Clasen
ff8a334725
Hide GdkDevice struct
...
Once its hidden, we can kill the GdkDevicePrivate struct too.
2010-12-21 12:06:58 -05:00
Matthias Clasen
a169f6e32d
Make GdkDevice parallel-implementable
...
Use the grab and ungrab vfuncs from the frontend instead of the
_gdk_windowing wrappers, and move some things around accordingly.
Again, only the X11 backend has been updated, other backends
need to be updated to match.
2010-12-21 12:06:56 -05:00
Michael Natterer
13f18567e9
gdk: return 0, not NULL from gdk_device_get_n_axes()
2010-12-21 15:16:35 +01:00