Alexander Larsson
8aad17592e
[broadway] Parse broadway input messages earlier
...
We now parse the broadway messages as soon as they are read from the wire.
This will let us sanely do lookahead in the message queue later.
2011-04-07 10:03:15 +02:00
Matthias Clasen
d46f0db38b
Make gdk_x11_window_set_theme_variant do nothing for non-toplevels
...
This avoids problems when calling this e.g. on offscreen windows.
2011-04-03 17:40:37 -04:00
Matthias Clasen
2226996b80
Keymap: properly initialize lock state
...
We need to get explicitly lock state initially, before we can
rely on state changed events to track it.
https://bugzilla.gnome.org/show_bug.cgi?id=645341
2011-04-03 17:39:31 -04:00
Matthias Clasen
31c036b9b4
Call _exit instead of exit from X error handlers
...
This is because running atexit() handlers from there is
usually bad news.
https://bugzilla.gnome.org/show_bug.cgi?id=646338
2011-03-31 19:59:00 -04:00
Garrett Regier
793d12d70d
Fix leaking calls to gdk_device_manager_list_devices()
...
gdk_device_manager_list_devices() returns a newly allocated list.
https://bugzilla.gnome.org/show_bug.cgi?id=645234
2011-03-21 10:37:10 -04:00
Garrett Regier
8d3810b0b6
Free the motion hint infos in GdkDisplay
...
https://bugzilla.gnome.org/show_bug.cgi?id=645235
2011-03-21 10:23:25 -04:00
Florian Müllner
3032fdce2a
window: Export theme variant to X11
...
The metacity theme format allows to use colors from the current
GTK+ theme in window decorations. Since GTK+ now gained support
for dark theme variants, window managers using that theme format
(metacity, mutter, compiz via gtk-window-decorator) should be able
to use colors from the correct variant; so in case a variant is
requested, export it in the _GTK_THEME_VARIANT property on
toplevel windows.
https://bugzilla.gnome.org/show_bug.cgi?id=645354
2011-03-21 15:06:34 +01:00
Dan Winship
605c383c78
GdkDeviceManagerXI2: process send_event core events
...
XSendEvent doesn't currently work with XI2 events, so add code to
translate core events when they have the send_event flag.
(We still don't actually select for core pointer/keyboard events, so
we will only receive send_event events that are sent with a 0
event_mask.)
https://bugzilla.gnome.org/show_bug.cgi?id=644847
2011-03-17 17:18:33 -04:00
Jasper St. Pierre
6ecfddf2e2
gdkkeyuni: Fix DEL for binary search
...
The list needs to be sorted in order for the binary search to work properly.
https://bugzilla.gnome.org/show_bug.cgi?id=644976
2011-03-16 20:09:13 -04:00
Matthias Clasen
66a77d0bc0
Make gdk_keyval_to_unicode return more codes
...
Previously, we didn't map ASCII controls to their Unicode
counterparts. Fix that.
https://bugzilla.gnome.org/show_bug.cgi?id=644836
2011-03-16 12:48:59 -04:00
Cosimo Cecchi
69b9794d9e
broadway: fix a build warning
2011-03-16 10:48:24 -04:00
Alexander Larsson
4fadd346fa
Merge branch 'broadway'
2011-03-15 13:00:24 +01:00
Alexander Larsson
9a26fd25af
broadway: Enable TCP_NODELAY for output socket
...
This makes us send data immediately, giving a much snappier
over-network experience.
2011-03-15 11:47:38 +01:00
Alexander Larsson
7605258890
broadway: Fix up whitespace and indentation for js code
2011-03-15 10:33:08 +01:00
Alexander Larsson
520dd09e8a
broadway: Use camelCase for all js code
2011-03-15 10:26:53 +01:00
Alexander Larsson
2635a27814
broadway: Fix flicker when resizing windows
...
Resizing a canvas causes a clear, so we have to save the previous
content and restore to avoid flickering.
2011-03-15 10:18:07 +01:00
Alexander Larsson
e3a2176a1f
broadway: double buffer window updates
...
Ensure that we're writing all the updates for a single rendering op
in one go without callbacks inbetween. That way some rendering will
be delayed, but the user will never see partial renderings.
2011-03-15 09:50:07 +01:00
Alexander Larsson
58c234e7d0
broadway: Don't crash if output is NULL
2011-03-15 08:50:18 +01:00
Alexander Larsson
4408e9d958
broadway: Implement gdk_broadway_device_window_at_position
...
This is required for ungrabs to work properly
2011-03-14 21:40:59 +01:00
Alexander Larsson
08f832908e
broadway: Ensure we begin a path when clipping
2011-03-14 20:59:28 +01:00
Alexander Larsson
acd72d0961
broadway: Do copy rects with compositing mode "copy"
2011-03-14 20:59:00 +01:00
Alexander Larsson
a5e5e2343c
broadway: Fix undefined variable error in js
2011-03-14 16:38:24 +01:00
Alexander Larsson
63c0198347
broadway: Start windows transparent rather than black
...
This avoids flashing
2011-03-14 16:04:34 +01:00
Alexander Larsson
084003953d
broadway: Make broadway port configurable with BROADWAY_DISPLAY
2011-03-14 15:58:55 +01:00
Alexander Larsson
9214796a4d
broadway: Report right coordinates on ungrab enter
2011-03-14 15:46:29 +01:00
Alexander Larsson
99d194b747
broadway: Fix various typos in mouse button event reporting
2011-03-14 15:24:25 +01:00
Alexander Larsson
ca203adc73
broadway: Fix up grab events, its "mode" not "detail" we send
2011-03-14 12:13:21 +01:00
Alexander Larsson
a1de735b87
broadway: Track button state
2011-03-14 12:09:19 +01:00
Alexander Larsson
e53abee805
broadway: Fix time in ungrab
2011-03-14 12:02:18 +01:00
Alexander Larsson
95b19bca33
broadway: Implement pointer grabs
2011-03-14 11:52:46 +01:00
Alexander Larsson
7d2ff79ddf
broadway: Fix some window coordinate reporting issues
2011-03-14 11:28:57 +01:00
Alexander Larsson
cf6bf44184
broadway: Remove debug code and fix whitespace issues
2011-03-14 11:21:37 +01:00
Alexander Larsson
c2ce462486
broadway: Add debug logging framework for js
2011-03-14 10:05:24 +01:00
Alexander Larsson
e2f8215751
broadway: Fix typo that broke window hiding
2011-03-14 09:51:54 +01:00
Alexander Larsson
6713fe9ca4
broadway: Get query_state window coords from browser side
2011-03-11 21:39:11 +01:00
Alexander Larsson
27848432c7
broadway: Split out getPositionsFromAbsCoord from getPositionsFromEvent
2011-03-11 21:28:39 +01:00
Alexander Larsson
54905a8986
broadway: Fix up a bunch of js style issues
2011-03-11 21:12:57 +01:00
Alexander Larsson
cc808ae063
broadway: Move event coordinate calculation to browser side
2011-03-11 21:10:23 +01:00
Alexander Larsson
0cefd54122
broadway: Implement pointer query_status
2011-03-11 14:56:31 +01:00
Alexander Larsson
614eb3b3d7
broadway: Add _gdk_broadway_display_block_for_input
2011-03-11 14:45:13 +01:00
Alexander Larsson
e08396450d
broadway: Break out websockets parsing and message processing
...
We need this to be able to correctly handle the recieve buffer
during message processing. Without the split we would be
recursing over the use of it.
2011-03-11 14:41:03 +01:00
Alexander Larsson
7c12e5f27e
broadway: Implement gdk_display_flush
2011-03-11 14:37:39 +01:00
Alexander Larsson
71aa55d291
broadway: Call device vfunc to get device state
...
We want only one place where we get device state.
2011-03-11 08:26:37 +01:00
Benjamin Otte
0c37c88147
gdk: Use CAIRO_OPERATOR_SOURCE when painting double-buffered buffer
...
Otherwise RGBA surfaces will have issues.
This patch only affects non-implicit paints, ie no paints at all in the
real world.
2011-03-11 02:10:47 +01:00
Benjamin Otte
2a2ad8523f
gdk: Add GDK_RENDERING environment variable
...
It's useful for debugging rendering issues, both correctness and
performance wise.
See the added documentation for what it does and how it works.
2011-03-11 02:10:47 +01:00
Alexander Larsson
0fa32e98a4
broadway: Change input handling to use polling rather than async reads
...
We do this because we need to be able to switch to using sync reads
when we're doing a roundtripping call, and that is too complex
with the async code.
2011-03-10 21:22:19 +01:00
Alexander Larsson
d4e2414d4a
broadway: Add serial tracking and roundtripping
2011-03-10 14:58:47 +01:00
Alexander Larsson
3914d0af38
broadway: Clean up protocol message writing a bit
...
Centralize the header writing so we can extend it later.
Don't opencode the size of element when increasing p.
2011-03-10 13:59:30 +01:00
Alexander Larsson
4765f37484
Merge branch 'gtk-3-0' into broadway
...
Conflicts:
gdk/gdkdisplaymanager.c
2011-03-10 10:51:04 +01:00
Tristan Van Berkom
713fd43c8f
Fixed gdk_window_beep() to pass the toplevel instance to the toplevel's implementation vfunc.
...
This incorrect assignment would cause asynchronous aborts from the X server
(they would occur if for instance, an offscreen GtkTreeView calls
gtk_widget_error_bell()).
2011-03-10 14:10:32 +09: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
Benjamin Otte
8d1b7362b3
x11: Copy from actual window, not parent
...
This code is a relic from GTK2 days and should not be necessary anymore,
as code now makes sure to only copy those parts of the window that are
not overlapped by parent windows.
By deleting it we fix potential issues with composited and translucent
windows copying the wrong data.
https://bugzilla.gnome.org/show_bug.cgi?id=643416
2011-03-07 17:45:08 +01:00
Carlos Garcia Campos
7aeb3c725b
xi2: Ignore button release events of button 4-7
...
We treat button presses of button 4-7 as scroll wheel events, so release
events should be ignored.
https://bugzilla.gnome.org/show_bug.cgi?id=643925
2011-03-06 12:42:02 +01:00
Matthias Clasen
1442fe9694
Don't distribute gdkconfig.h
...
https://bugzilla.gnome.org/show_bug.cgi?id=643440
2011-03-02 22:17:02 -05:00
Kristian Høgsberg
fcd58b0ffd
wayland: Add modifier masks for meta, hyper and super keys
...
Makes alt keybindings work in vte.
2011-03-01 11:33:07 -05:00
Kristian Høgsberg
0e1041a8af
wayland: Add another cursor (left-ptr)
2011-03-01 11:32:05 -05:00
Michael Natterer
033bd235b7
gdk: add precondition checks to many GdkDisplay functions
...
instead of crashing in GDK_DISPLAY_GET_CLASS(NULL)->foo(NULL);
2011-02-28 17:36:06 +01:00
Michael Natterer
8ee9e132e1
gdk: gdk_x11_device_xi2_get_state(): move stuff to local scope
2011-02-27 15:06:41 +01:00
Matthias Clasen
7df2ce8eab
Drop _gdk_x11_set_input_focus_safe
...
All that this function did was to asynchronously catch errors.
Since we have asynchronous error traps now, we can just use
XSetInputFocus().
2011-02-26 22:16:01 -05:00
Kristian Høgsberg
287d91e5f9
Merge remote-tracking branch 'origin/master' into gdk-backend-wayland
...
Conflicts:
gdk/gdkdisplaymanager.c
2011-02-26 14:44:29 -05:00
Carlos Garcia Campos
651410fa2a
Copy event axes for double/triple click events in gdk_event_copy()
...
Button event axes for double/triple click events are freed by
gdk_event_free(), so copy them to avoid an invalid free when releasing a
copied event.
2011-02-25 09:13:35 +01:00
Alexander Larsson
0b0f110152
Avoid spurious emissions of monitors-changed
...
The monitor change detection code in _gdk_x11_screen_size_changed() and
process_monitors_change() goes to some length to make sure its only emitted
when there is an actual change to the data visible via the GdkScreen monitors
api.
However, commit 662e69ad
added some code that always emits "monitors-changed"
in _gdk_x11_screen_size_changed when we have randr13 and get a ConfigureNotify
on the root window (even though we may already have emitted it in the
RRScreenChangesNotify event!).
As far as I can tell this is due to a comment in the bug referenced by the
commit (https://bugzilla.gnome.org/show_bug.cgi?id=601712#c4 ) where it says:
This version of the patch changes GdkDisplay to emit "monitors-changed" when
the primary monitor changes (see the change in _gdk_x11_screen_size_changed).
And, if you remove this part of the change the signal is not emitted when just
the primary is changed. However, this is not really the right approach. We
should just also check for if the primary changes in process_monitors_change()
to avoid spurious signal emissions.
https://bugzilla.gnome.org/show_bug.cgi?id=643216
2011-02-24 19:47:02 +01:00
Murray Cumming
f91c04e284
Minor documentation improvements
...
Mostly correcting it's to its and changing some , to .
2011-02-23 10:26:21 +01:00
Murray Cumming
31419f2026
GdkDevice: Minor improvement to the overview documentation.
...
The last paragraph still seems to be out of place though, as if it
was a previous attempt at an overview or part of some older text
elsewhere.
This overuses the passive too.
2011-02-23 09:37:06 +01:00
Marc-André Lureau
f598f75dfb
gdk_cursor_new_from_pixmap: Fix gdk_display_is_closed call
...
This was typoed in commit dfe6ba932c
https://bugzilla.gnome.org/show_bug.cgi?id=642843
2011-02-20 20:11:13 -05:00
Tor Lillqvist
acc01ac944
Tweak include order a bit to get around compilation errors
...
wintab.h defines an INT() macro that interfers with some lines in
commctrl.h.
2011-02-20 23:56:13 +02:00
Tor Lillqvist
8e6932f46e
Handle emulated keyboard input that arrives as VK_PACKET
...
Fixes bug #642772 . Thanks to the anonymous bug reporter for providing
a test program.
2011-02-20 01:39:13 +02:00
Carlos Garnacho
3f78b251b9
Free event axes for double/triple click events.
...
The button event axes are copied over when synthesizing
these events, so free them as well in gdk_event_free().
2011-02-17 20:45:32 +01:00
Martin Nordholts
a3f52949c4
Bug 633291 - Handle Shift-keys in X11 gdk_test_simulate_key()
...
If a level 1 key maps to a key value passed to
gdk_test_simulate_key(), raise the GDK_SHIFT_MASK flag so the reqested
key value is generated. Also add a regression test for this fix.
2011-02-13 12:57:01 +01:00
Benjamin Otte
33a46dd553
gdk: Select the X11 backend a the last possible backend
...
On Windows and OS X we want to prefer the native backends over the X11
backend.
On Linux, nothing changes as nobody is going to enable those backends
(and if they do, they'll know what they get).
2011-02-12 22:09:58 +01:00
Matthias Clasen
728a45fc1f
Remove confusion over XI2 defines
...
Some places were using XINPUT_2, others XINPUT_XI2. Since configure
defines XINPUT_2, use that throughout.
2011-02-11 23:30:01 -05:00
Benjamin Otte
de9a082ddb
x11: Make headers identical no matter if we run with or without XI2
...
Previously we weren't installing the device headers when compiling
without XINPUT support. But we would include them from gdkx.h, so
essentially the build was broken.
With this patch the types will exist but not do anything.
2011-02-12 01:27:40 +01:00
Benjamin Otte
30abd4d8b5
x11: Fix struct definition for GdkDeviceManagaerXI2
2011-02-12 00:16:03 +01:00
Benjamin Otte
e9ff457a40
x11: Make the device manager struct actually subclass the correct device
2011-02-11 23:53:14 +01:00
Benjamin Otte
b1f2e5bfa3
x11: Fix build without Xinput
...
Missing ifdefs
2011-02-11 23:21:11 +01:00
Kristian Høgsberg
b5134619a0
wayland: Map transient surfaces as such
2011-02-11 17:20:14 -05:00
Kristian Høgsberg
1cd65aea53
wayland: Only set x, y, and modifiers if the pointers are non-NULL
2011-02-11 17:07:19 -05:00
Kristian Høgsberg
152dca40d3
wayland: Remove window cursor hash
2011-02-11 10:06:56 -05:00
Alexander Larsson
d8f061ad42
[broadway] Update to new GDK backend APIs
2011-02-11 15:59:50 +01:00
Kristian Høgsberg
ffe3af7f1c
wayland: There's only one screen
2011-02-11 09:56:58 -05:00
Kristian Høgsberg
6eac07d4f6
wayland: Trim some unused struct fields
2011-02-11 09:50:10 -05:00
Alexander Larsson
e68774325e
[broadway] Update to new library name
2011-02-11 15:38:41 +01:00
Alexander Larsson
d4add8cefa
Merge branch 'master' into broadway
2011-02-11 15:27:54 +01:00
Chun-wei Fan
7cb41b6561
gdk/gdkconfig.h.win32: Make it more up-to-date
...
Make this pre-configured file to be more like the one used by the existing
X11 version, but using GDK_WINDOWING_WIN32 for obvious reasons.
2011-02-11 18:07:05 +08:00
Kristian Høgsberg
f2ac8c7ce3
wayland: Drop empty gdkscreen-wayland.h
2011-02-10 23:00:12 -05:00
Kristian Høgsberg
4ca3e53a3e
wayland: Drop GdkToplevelWayland and gdkwindow-wayland.h
2011-02-10 22:51:23 -05:00
Kristian Høgsberg
cd91551075
wayland: Fix resizing from other corners than just botton-right
2011-02-10 22:37:51 -05:00
Kristian Høgsberg
cfb9c840e5
wayland: Remove some fprintf debug messages
2011-02-10 22:22:42 -05:00
Kristian Høgsberg
6d20bcb848
wayland: Fix hiding and withdrawing surfaces
2011-02-10 22:21:08 -05:00
Kristian Høgsberg
22b9132ae5
wayland: Keep a reference to the surface we last attached
2011-02-10 22:04:26 -05:00
Kristian Høgsberg
3b205de896
wayland: Port over missing xkb functionality from X11 backend
2011-02-10 20:34:14 -05:00
Kristian Høgsberg
0db8663e44
wayland: Copy gdk_wayland_keymap_translate_keyboard_state from X11 backend
2011-02-10 16:35:38 -05:00
Kristian Høgsberg
f0fe810999
wayland: Adjust the hw keycode in key events for min_key_code
2011-02-10 16:34:40 -05:00
Matthias Clasen
524ce69bcb
Bump the version to 3.0.0
...
At the same time, change the library sonames for -3.0 to just -3.
This is necessary since the 2.99 releases installed libraries like
libgtk-3.0.so.0.9903.0, and we want to prevent the library version
number from jumping back. So 3.0 will have libgtk-3.so.0.0.0.
2011-02-10 14:41:02 -05:00
Kristian Høgsberg
c3955ea0c2
wayland: Add a few more cursors
2011-02-10 14:08:53 -05:00
Kristian Høgsberg
df0815470c
wayland: Return surface coordinates and mask in window_at_position
2011-02-10 13:42:59 -05:00
Kristian Høgsberg
4621c6476c
wayland: Send visibility event after map
2011-02-10 11:02:15 -05:00
Kristian Høgsberg
9e1a0a1bec
wayland: Fix indentation
2011-02-10 11:02:15 -05:00
Kristian Høgsberg
df57389190
wayland: Unref the keyboard focus surface when losing keyboard focus
2011-02-10 11:02:15 -05:00
Kristian Høgsberg
f62e4a02b6
wayland: Use GDK_NOTE for logging event debug messages
2011-02-10 11:02:15 -05:00
Kristian Høgsberg
9f0ed18d5a
wayland: Set event screen
2011-02-10 10:57:33 -05:00
Kristian Høgsberg
1b918d1b93
wayland: Pretend selection works, print debug message
2011-02-10 10:54:10 -05:00
Kristian Høgsberg
3beb09adca
wayland: Copy translate_keyboard_string() form x11 backend
2011-02-10 10:53:31 -05:00
Kristian Høgsberg
0583603b09
wayland: Actually return device in _gdk_wayland_device_get_device()
2011-02-10 10:49:51 -05:00
Kristian Høgsberg
f7f1b59e05
wayland: Handle blank cursor
2011-02-10 10:49:09 -05:00
Kristian Høgsberg
de82b82dd8
wayland: Clear modifier mask before restoring from keyboard_focus value
2011-02-09 16:36:15 -05:00
Kristian Høgsberg
c36dfccc64
wayland: Consolidate device and devicemanager implementation
2011-02-09 15:27:08 -05:00
Kristian Høgsberg
3ef3433511
wayland: Support setting cursors
...
And a handful unrelated cleanups. Still doesn't really have an answer
for cursor themes.
2011-02-09 14:48:31 -05:00
Matthias Clasen
8291530abf
More GDK documentation tweaks
2011-02-09 02:44:19 -05:00
Garrett Regier
adef25626e
Fix annotation that broke the docs
...
It was added in 0e795b67c3
and removed in f6cc08fa57
.
2011-02-08 23:06:42 -08: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
Matthias Clasen
f6cc08fa57
Remove annotation that breaks the docs
...
Before adding annotations, please check that gtk-doc can handle
them. Else they will be stripped out again.
2011-02-08 20:00:27 -05:00
Kristian Høgsberg
546069f434
wayland: Use wayland-egl
2011-02-08 16:02:22 -05:00
Johan Dahlin
60e0acfc11
Remove tab as it confused g-ir-scanner
2011-02-08 13:20:53 -02:00
Colin Walters
7711f9fad4
introspection: Remove redundant include
...
Gdk-3.0 is already included above via --include-uninstalled, so
don't also specify it in INCLUDES. Doing so breaks if it isn't
installed already, since we try to find the gdk-3.0.pc.
2011-02-08 10:16:55 -05:00
Kristian Høgsberg
541d5172dd
Track 2.99.3 API changes
2011-02-08 08:12:59 -05:00
Benjamin Otte
c1f8330a28
gdk: Fix typo in documentation string
2011-02-08 08:58:49 +01:00
Hans Breuer
b41ee31a16
win32: no more GdkNativeWindow and related changes
...
- replace GdkNativeWindow with HWND, remove type casts
- no more GdkDisplayClass::get_drag_protocol but GdkWindowImpl::get_drag_protocol
- remove *_client_message*()
2011-02-06 15:07:13 +01:00
Kristian Høgsberg
1149c342bf
Clean up buffer handling a bit
2011-02-05 16:11:55 -05:00
Kristian Høgsberg
846e2c0eee
Remove leftover _gdk_windowing_set_cairo_surface_size()
2011-02-05 16:11:55 -05:00
Kristian Høgsberg
a65fcd0859
Hook up xkb_keysym_to_string and xkb_string_to_keysym
2011-02-05 16:11:55 -05:00
Kristian Høgsberg
7d29070faf
Implement GdkKeymap using libxkbcommon
2011-02-05 16:11:55 -05:00
Kristian Høgsberg
799279daf0
Invalidate window on configure
...
This will trigger a repaint of the window, but it may be more efficient
to just copy back the old surface contents and let gtk+ just update the
changed parts.
2011-02-05 16:11:54 -05:00
Kristian Høgsberg
56de871bf3
Create and attach buffer at process_updates time
...
This way we don't try to show the buffer until we've handle the initial
expose.
2011-02-05 16:11:54 -05:00
Kristian Høgsberg
7bbc158217
Remove copy of grab enum that's now in wayland core
2011-02-05 16:11:54 -05:00
Kristian Høgsberg
e6c1f5d94d
Dont iterate the display if there's nothing to write
2011-02-05 16:11:54 -05:00
Kristian Høgsberg
590f3dfa1f
Add Wayland backend
2011-02-05 16:11:54 -05:00
Matthias Clasen
eaba2cd468
XI2: translate group state back into core state
...
This is necessary to make the key event translation work
as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=641367
2011-02-04 21:11:40 -05:00
Matthias Clasen
d4c1dbe3d7
Pass group state to _gdk_x11_device_xi2_translate_state
...
This will be necessary to make groups work with XI2.
2011-02-04 21:11:40 -05:00
Matthias Clasen
2c352f51a0
Share code to fill GdkEventKey.string
...
This code was duplicated between the core and XI2 device manager
implementations.
2011-02-04 21:11:40 -05:00
Matthias Clasen
08f90b71a2
Add translation entries for more common keysyms
...
In particular, the XF86 keysyms can benefit from a translation
that strips the prefix.
2011-02-04 15:33:36 -05:00
Matthias Clasen
9ba009a8eb
Remove debug spew
2011-02-04 14:05:22 -05:00
Matthias Clasen
272aa7bc55
XI2: don't translate button releases as scroll events
...
This fixes scroll-by-2 sympoms seen in combo boxes.
https://bugzilla.gnome.org/show_bug.cgi?id=639846
2011-02-04 12:54:44 -05:00
Tristan Van Berkom
b51f3ffffc
Added set_transient_for() implementation for GdkOffscreenWindow
...
Just a noop that is better than crashing in the case this is called
(it can be called for a toplevel GtkWindow that is parented into
another widget by setting gtk_widget_set_parent_window to an offscreen
window).
2011-02-03 23:52:12 +09:00
Martin Pitt
0e795b67c3
[GI] Mark mis-detected constructors as such
...
constructors which take an object of the same class as its first argument are
mis-detected as method call with "self" argument by the GIR scanner. Using the
new (constructor) annotation from bug 561264, mark some of them as proper
constuctors, so that you can call them with NULL as first argument from
bindings; in particular, this fixes gdk_window_new() and the
gtk_radio_button_new_with*() constructors.
2011-02-02 15:11:06 +01:00
John Ralls
cfaed624be
Update quartz to reflect deletion of GdkNativeWindow and client_message functions.
2011-02-01 13:53:00 -08:00
Benjamin Otte
5f594b613e
API: gdk: Get rid of GdkNativeWindow
...
Also get rid of the GDK_NATIVE_WINDOW_POINTER define.
2011-02-01 18:51:57 +01:00
Benjamin Otte
7b5ad65e71
x11: Use Window isntead of GdkNativeWindow
2011-02-01 18:51:57 +01:00
Benjamin Otte
44c02fcbb1
API: gdk: Change get_drag_window() API
...
The previous function gdk_drag_get_protocol_for_display() took native
window handles, so it had to be changed. Because it didn't do what it
was named to do (it didn't return a protocol even though it was named
get_protocol) and because it doesn't operate on the display anymore but
on the actual window, it's now called gdk_window_get_drag_protocol().
2011-02-01 18:51:57 +01:00
Benjamin Otte
9210347600
API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
...
THis way, we can do comparisons like "if (protocol)"
2011-02-01 18:51:57 +01:00
Benjamin Otte
5bc04bc07b
API: gdk: Make GdkEventSelection.requestor a GdkWindow
...
instead of a GdkNativeWindow. Also change gdk_selection_notify() API to
take a GdkWindow to match this change.
2011-02-01 18:51:57 +01:00
Benjamin Otte
c2a5d715d5
x11: Use gdk_x11_window_foreign_new_for_display() unconditionally
...
gdk_x11_window_lookup_window() calls are done by this function alreayd,
so no need to do them manually.
2011-02-01 18:51:57 +01:00
Matthias Clasen
5441ecd350
Fix a warning
2011-02-01 09:48:32 -05:00
Matthias Clasen
38045e789c
Remove a dead member
...
The client_pointer field in GdkX11DeviceManagerXI2 is not used anywhere.
2011-02-01 09:44:33 -05:00
Matthias Clasen
c79413a1df
Make xim work with XI2
...
We cannot totally ignore core key events, since XFilterEvent generates
those at times and relies on them having an effect.
https://bugzilla.gnome.org/show_bug.cgi?id=640965
2011-02-01 09:42:53 -05:00
Benjamin Otte
c332ac207a
gdk: Remove GdkEventClient
...
... and all APIs making use of it.
That code like it hasn't been touched in years, Google codesearch
didn't find any users and most importantly it's a horrendous API, so
let's just make it die instead of having to port it over to
non-GdkNativeWindow usage, which would be required for multi-backend
GDK.
http://mail.gnome.org/archives/gtk-devel-list/2011-January/msg00049.html
2011-02-01 06:33:02 +01:00
Benjamin Otte
8ecd420ede
x11: Do dnd event handling via gdk_window_add_filter()
2011-02-01 06:33:02 +01:00
Benjamin Otte
180cd853fc
x11: Use macros for byte order to set byte order
...
No need to run sophisticated functions to guess it.
2011-02-01 06:33:02 +01:00
Benjamin Otte
609ddee632
x11: Register wm_protocols function with gdk_window_add_filter()
...
The client message code is about to go away, so we need to use a
different way to get at ClientMessage output.
2011-02-01 06:33:01 +01:00
Benjamin Otte
e67347a3c8
x11: Fill in event->any.window before calling filter functions
...
a) We advertise it for GdkFilterFunc
b) It's necessary to differentiate between different event types with
multi-backend GTK.
2011-02-01 06:33:01 +01:00