Kristian Rietveld
0736544174
quartz: _gdk_quartz_keymap -> gdk_quartz_keymap
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0d8eeb924e
quartz: _gdk_quartz_display -> gdk_quartz_display
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0840b25165
quartz: fix some more typos
2010-12-23 14:17:42 +01:00
Kristian Rietveld
1e814709d7
quartz: fix typo
2010-12-23 14:17:41 +01:00
Kristian Rietveld
fb8717f722
quartz: move utils to gdkutils-quartz.c
2010-12-23 14:17:41 +01:00
Kristian Rietveld
f15934bd66
quartz: remove gdkmain-quartz.c
2010-12-23 14:17:41 +01:00
Kristian Rietveld
caa9794af8
quartz: Clean up header files, use same arrangement as X11 backend
2010-12-23 14:17:41 +01:00
Kristian Rietveld
197590258f
quartz: Make keyboard input work again
2010-12-22 22:33:05 +01:00
Kristian Rietveld
083c556e00
quartz: rename GdkDeviceManagerCore -> GdkQuartzDeviceManagerCore
2010-12-22 17:47:05 +01:00
Kristian Rietveld
59a3d9ae46
quartz: Rename GdkDeviceCore -> GdkQuartzDeviceCore
2010-12-22 17:47:05 +01:00
Kristian Rietveld
e2e4391992
quartz: commit forgotten file
2010-12-22 17:47:05 +01:00
Kristian Rietveld
2e7f14c90f
quartz: GdkDeviceCore: check for NULL pointer
2010-12-22 17:47:04 +01:00
Kristian Rietveld
32731fcb07
quartz: register before/after process all updates
2010-12-22 17:47:04 +01:00
Kristian Rietveld
ab74358b82
quartz: set all methods on window class, not root window class
2010-12-22 17:47:04 +01:00
Kristian Rietveld
552e7be7e5
quartz: set window_type in display_class
2010-12-22 17:47:04 +01:00
Kristian Rietveld
b0ffe16f90
quartz: introduce GdkQuartzWindow (as a subclass of GdkWindow)
2010-12-22 17:47:04 +01:00
Kristian Rietveld
3bc60a8149
quartz: rename GdkQuartzWindow to GdkQuartzNSWindow
2010-12-22 17:47:04 +01:00
Kristian Rietveld
c6fad1d2cb
quartz: fix typo
2010-12-22 17:47:04 +01:00
Kristian Rietveld
c87e878308
quartz: add new files to Makefile.am
2010-12-22 17:47:04 +01:00
Kristian Rietveld
5226ae3ecc
quartz: create gdkdisplaymanager-quartz.h
2010-12-22 17:47:04 +01:00
Kristian Rietveld
f2883fe8eb
quartz: gdkselection-quartz.c: fix typos
2010-12-22 17:47:04 +01:00
Kristian Rietveld
b638515ae0
quartz: re-introduce _gdk_quartz_display_list_devices
2010-12-22 17:47:03 +01:00
Kristian Rietveld
4c663f0474
gdkwindow-quartz: fix typo
2010-12-22 17:47:03 +01:00
Kristian Rietveld
6b96c56976
quartz: remove duplicate definition of gdk_flush
2010-12-22 17:47:03 +01:00
Kristian Rietveld
8b4d583cd8
quartz: gdkkeys-quartz.c: remove duplicate function
2010-12-22 17:47:03 +01:00
Kristian Rietveld
3d02a14f4f
quartz: remove duplicate functions from gdkmain-quartz.c
2010-12-22 17:47:03 +01:00
Kristian Rietveld
fbd9fd6a38
quartz: make gdkwindow-quartz.c build again
2010-12-22 17:47:03 +01:00
Kristian Rietveld
c14078f388
quartz: adapt gdkdisplay-quartz.c to new function names
2010-12-22 17:47:03 +01:00
Kristian Rietveld
5f782ed9e7
quartz: add prototype for _gdk_quartz_screen_new()
2010-12-22 17:47:03 +01:00
Kristian Rietveld
1b344ad8e4
quartz: convert GdkVisual
2010-12-22 17:47:02 +01:00
Kristian Rietveld
d024153c96
quartz: Fix screen implementation, rename to GdkQuartzScreen
2010-12-22 17:47:02 +01:00
Kristian Rietveld
cde6dade8f
quartz: Port gdkkeys-quartz.c to new API
2010-12-22 17:47:02 +01:00
Kristian Rietveld
6fe3100f14
quartz: Remove gdkinput code
2010-12-22 17:47:02 +01:00
Kristian Rietveld
e4a0101542
quartz: gdkeventloop-quartz.c: fix
2010-12-22 17:47:02 +01:00
Kristian Rietveld
d0976d9f53
quartz: Fix gdkevents-quartz.c
2010-12-22 17:47:02 +01:00
Kristian Rietveld
b2844cb48b
quartz: Make GdkQuartzDisplay compile
2010-12-22 17:47:02 +01:00
Kristian Rietveld
709b4d4346
quartz: Fix display manager, move over code from gdkmain-quartz.c
2010-12-22 17:47:02 +01:00
Kristian Rietveld
988b8bf96a
quartz: gdkcursor-quartz.h: fix cut-n-paste error
2010-12-22 17:47:02 +01:00
Kristian Rietveld
98b8bf035f
quartz: gdkdevice-core: fix up
2010-12-22 17:47:02 +01:00
Kristian Rietveld
da481666cd
quartz: gdkdevice-core.c: use GdkQuartzCursor
2010-12-22 17:47:01 +01:00
Kristian Rietveld
62273fc08a
quartz: add forgotten file (gdkdnd-quartz.h)
2010-12-22 17:47:01 +01:00
Kristian Rietveld
f4c0c47a1a
quartz: move bits into gdkcursor-quartz.h (private header for now)
2010-12-22 17:47:01 +01:00
Kristian Rietveld
dff3973198
quartz: remove GdkCursorPrivate typedef
2010-12-22 17:47:01 +01:00
Kristian Rietveld
013cbea25f
quartz: Remove API for extension checks
2010-12-22 17:47:01 +01:00
Kristian Rietveld
881ea6e06c
quartz: convert GdkQuartzWindow to new drag context API
2010-12-22 17:47:01 +01:00
Kristian Rietveld
71404825c3
quartz: fix up GdkDragContext conversion
2010-12-22 17:47:01 +01:00
Kristian Rietveld
8cb301762a
Fix typo
2010-12-22 17:47:01 +01:00
Kristian Rietveld
3ace122563
quartz: turn quartz GdkCursor into GObject
2010-12-22 17:47:01 +01:00
Matthias Clasen
bd1ff477ca
Deal with property encoding functions for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
de41790470
Implement selection related vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
762548d303
Implement selection owner vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
547d674ce5
Implement window property vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
168b3c13b7
Implement keyval vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
9ae2dc0deb
Drop gdk_set_locale from quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
a1b300ecb6
Implement test vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
6eb2a3520c
Implement atom-related vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
51f149df5e
Implement get_keymap vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
46352afa6f
Implement create_window_impl vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
57efe15bda
Drop gdk_spawn functions
...
These have been removed since the implementation was just
a straight wrapper around g_spawn.
2010-12-22 17:47:00 +01:00
Matthias Clasen
9dbe3bd316
Drop unimplemented foreign window functions
...
These have been relegated to backend-specific
2010-12-22 17:47:00 +01:00
Matthias Clasen
b2ff02332f
Implement event_data_{copy,free} for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
4b92625fe0
Implement notify_startup_complete vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
1a04631707
Implement get_next_serial for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
dadbc63f1e
gdk_display_warp_pointer is in the frontend now
2010-12-22 17:46:59 +01:00
Matthias Clasen
a1a0205dad
Implment process_updates_recurse vfunc for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
3232be603a
Implement has_pending and queue_events vfuncs for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
733c8fc8e7
Derive GdkDisplayManager for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
8a9c604b8a
Adapt quartz device code to new ways
...
We will need to rename the Core implementations in X11/Quartz
to not clash, later.
2010-12-22 17:46:59 +01:00
Matthias Clasen
e2fea748d6
Adapt quartz visual code to new ways
...
We may still need a subclass here later, not sure
2010-12-22 17:46:59 +01:00
Matthias Clasen
46e8aadaf8
Rename _gdk_dnd_init
2010-12-22 17:46:59 +01:00
Matthias Clasen
25271f5e9a
Implement dnd vtables for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
d2ce9ec3dc
Convert a bunch of visual related calls to use the screen vtable, quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
41352f24d6
Convert all GdkScreen methods to vtable calls, quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
f43f259d49
Derive GdkKeymap for Quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
acd99409b8
Make display method vtable calls, quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
064bfceaad
Convert all gdk_window methods to vtable calls in the quartz backend
2010-12-22 17:46:59 +01:00
Benjamin Otte
3036922b3d
gdk: Create windows via _gdk_display_create_window()
...
THe use of this function will become visible in the next commits. But
wrapping g_object_new() is a generally a good idea anyway.
2010-12-21 12:07:08 -05:00
Benjamin Otte
4793bd3399
gdk: Move gdk_cursor_get_display() out of the backends
...
Now that we store the display inside the cursor, that change is obvious.
2010-12-21 12:07:05 -05:00
Matthias Clasen
58529e69ec
Drop sm_client_id implementation for Quartz
2010-12-21 12:07:04 -05:00
Matthias Clasen
9a1cc81acb
Add a vfunc to replace _gdk_windowing_window_destroy_foreign
...
All backends updated.
2010-12-21 12:06:57 -05:00
Matthias Clasen
1e694b4dd8
Add a vfunc for gdk_window_set_composited
2010-12-21 12:06:57 -05:00
Matthias Clasen
c53ec081ce
Add vtables for DND
...
This commit hides GdkDragContext and GdkDragContextClass, adds
vfuncs for most drag context functionality, and turns the X11 DND
implementation into GdkDragContextX11. We also add vfuncs to
GdkDisplay for gdk_drag_get_protocol and to GdkWindow for
gdk_drag_begin, and implemenet them for X11.
Other backends need similar treatment and are broken now.
2010-12-21 12:06:56 -05:00
Matthias Clasen
06f75b3727
Make GdkAppLaunchContext display-dependent
...
Add a GdkDisplay::get_app_launch_context vfunc, and a
gdk_display_get_app_launch_context that for X11 returns a subclass.
For win32 and quartz, the implementations were trivial, so we
just return a new GdkAppLaunchContext without subclassing. Since
the type of the context now depends on the display,
gdk_app_launch_context_set_display is deprecated.
2010-12-21 12:06:55 -05:00
Matthias Clasen
de84a7b14f
Move gdk_window_lookup to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
31cd046cd0
Move gdk_add_client_message_filter to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
8075cfd658
Move gdk_get_display to common code
2010-12-21 12:06:55 -05:00
Kristian Rietveld
fd6e57687d
Port Quartz backend to latest rendering-cleanup changes
2010-12-06 14:15:47 +01:00
Benjamin Otte
d55073fde6
gdk: Remove depth argument from GdkWindowImpl->get_geometry()
2010-12-06 01:02:52 +01:00
Benjamin Otte
f9a9567731
gdk: Replace direct calls of _gdk_event_func with _gdk_event_emit()
...
For now that function just calls the event func.
2010-12-02 20:21:05 +01:00
Benjamin Otte
4d1604c77d
gdk: Move window beeps into GdkWindowImpl
...
One less magic function. Also refactored it to make it easier to
implement. It now returns TRUE if it beeped and FALSE if it failed to do
so. A default implementation exists that just returns FALSE for all the
backends that can't beep windows (read: everything but X11 with XKB -
and why on earth do keyboard libs implement beeping?)
2010-12-02 20:21:05 +01:00
Benjamin Otte
1269f8424f
gdk: Make get_shape and get_input_shape vfuncs
...
Trying to get rid of all the _gdk_windowing_something() functions that
we expect backends to magically know about and instead put them in a
proper interface (mostly GdkWindowImplClass).
2010-12-02 20:21:04 +01:00
Benjamin Otte
17a0a467a1
gdk: Pass the GdkWindow to resize_cairo_surface vfunc
...
So it's in sync with all the other vfuncs.
2010-12-02 20:21:04 +01:00
Benjamin Otte
370d272b13
gdk: Remove _gdk_window_impl_get_type() function
...
It was only used in the backends, and they can use the correct type
directly.
2010-12-02 20:21:03 +01:00
Benjamin Otte
62622a94ae
gdk: Pass Drawable as argument
...
We're not passing a GdKWindow here, but the implementation.
2010-12-02 20:21:02 +01:00
John Ralls
c0aae6644a
Replace references to sealed GdkDevice private variables with accessor calls in quartz.
2010-11-23 16:53:45 -08:00
William Jon McCann
323df2b280
Make gdk_event_apply_filters safe against changes in filter list
...
An event filter may add or remove filters itself. This patch does
two things to address this case. The first is to take a temporary
reference to the filter while it is being used. The second is
to wait until after the filter function is run before determining
the next node in the list to process. This guards against
changes to the next node. It also does not run functions
that have been marked as removed. Though I'm not sure if this
case can arise.
https://bugzilla.gnome.org/show_bug.cgi?id=635380
2010-11-22 13:16:24 -05:00
Michael Natterer
a1134e5622
gdk: change signature of gdk_device_get_history() back to what it used to be
...
"n_events" went back from guint to gint.
2010-10-19 13:30:42 +02:00
John Ralls
c3851df92d
Replace GDK_Tab and GDK_ISO_Left_Tab with GDK_KEY equivalents
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=631475
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-10-06 01:20:29 +02:00
Kristian Rietveld
eca2af5230
Make set_cairo_surface_size a vfunc on GdkWindowImpl
...
Note the special implementation of this method on GdkOffscreenWindow
that makes sure its current surface is not destroyed.
2010-10-05 15:38:23 +02:00
Kristian Rietveld
8970b174dc
quartz: Emulate root window as 1x1 bitmap
...
We subclass GdkWindowImplQuartz into a new GdkRootWindowImplQuartz,
and override the get_context method in order to do this cleanly.
Also made release_context a virtual method, since the root window has
to release its CGContextRef differently compared to normal windows.
2010-10-04 11:45:47 +02:00
Kristian Rietveld
1b9029fc64
Fix GDK build on Quartz
2010-09-30 09:01:11 +02:00
Benjamin Otte
f44f35548d
quartz: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:43 +02:00
Kristian Rietveld
0129b89153
quartz: Get size from wrapper, not drawable
2010-09-26 15:11:34 +02:00
Benjamin Otte
e624656c20
API: Remove GdkColormap
2010-09-26 15:11:34 +02:00
Benjamin Otte
cf4cb4f6d9
API: Remove colormap handling from GdkScreen
...
In particular, the following functions are gone:
- gdk_screen_get_default_colormap()
- gdk_screen_set_default_colormap()
- gdk_screen_get_system_colormap()
- gdk_screen_get_rgba_colormap()
2010-09-26 15:11:34 +02:00
Benjamin Otte
04d5c477aa
API: Remove gdk_drawable_get_colormap()
...
And with it, remove any notion of colormaps from GdkWindow. In
particular, X11 windows will now not set attrs.colormap when calling
XCreateWindow.
2010-09-26 15:11:33 +02:00
Benjamin Otte
f08254074c
API: Remove colormap member from GdkWindowAttr
...
Also remove all code that cares about differing colormaps for child
windows.
2010-09-26 15:11:33 +02:00
Benjamin Otte
eac72ec830
quartz: Compare visuals for RGBA, not colormaps
2010-09-26 15:11:33 +02:00
Benjamin Otte
b5097de481
gdk: gdk_drawable_get_display() => gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
a6ef356107
API: Remove drawable getters for visual, screen and depth
...
Removed and replaced are:
gdk_drawable_get_visual() => gdk_window_get_visual()
gdk_drawable_get_screen() => gdk_window_get_screen()
gdk_drawable_get_depth() => gdk_visual_get_depth
(gdk_window_get_visual())
2010-09-26 15:11:33 +02:00
Benjamin Otte
ffed076891
quartz: Remove unused _gdk_quartz_colormap_get_cgcolor_from_pixel()
2010-09-26 15:11:33 +02:00
Benjamin Otte
a6e936788a
gdk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visual
2010-09-26 15:11:33 +02:00
Benjamin Otte
eee6c002d1
gdk: store the visual in the GdkWindowObject
2010-09-26 15:11:32 +02:00
Benjamin Otte
894d402c0f
API: Remove gdk_drawable_set_colormap()
2010-09-26 15:11:32 +02:00
Benjamin Otte
f74f9b2766
gdk: Remove GdkPixmap
...
All iusers of it are gone, so it's now time to let go.
cairo_surface_t is a full replacement, combined with
gdk_window_create_similar_surface().
2010-09-26 15:11:30 +02:00
Kristian Rietveld
cadcd029a1
Include OS X system headers
2010-09-26 15:11:30 +02:00
Kristian Rietveld
18a4ed6fd0
quartz: Remove else-clause for pixmaps
2010-09-26 15:11:30 +02:00
Benjamin Otte
2bedd205c5
gdk: Remove gdk_windowing_create_cairo_surface()
...
Instead, actually use the create_cairo_surface vfunc on the
implementation drawable. D'oh.
2010-09-26 15:11:11 +02:00
Benjamin Otte
2c1633699f
gdk: Rewrite background handling
...
Now the window background is a cairo_pattern_t. The backends will try to
set this as good as they can on the windowing system, but no guarantees
are made on wether the windowing system supports the pattern.
Also gets rid of GDK_NO_BG as undefined behavior is not a good idea to
support, and GDK_NO_BG effectively made the window's contents undefined.
It wasn't effectively used in GTK anyway.
2010-09-26 15:03:00 +02:00
Benjamin Otte
bfa6ad6e7c
gdk: Remove _gdk_windowing_get_shape_for_mask()
...
It's unused. And there's a replacement available with
gdk_cairo_region_create_from_surface()
2010-09-26 15:02:59 +02:00
Benjamin Otte
6218c16ff8
API: Remove gdk_cursor_new_from_pixmap()
...
gdk_cursor_new_from_pixbuf() is the proper replacement.
2010-09-26 15:02:59 +02:00
Benjamin Otte
6ef27387e0
API: remove gdk_window_set_icon()
...
gdk_window_set_icon_list() now does everything gdk_window_set_icon()
used to do.
2010-09-26 15:02:59 +02:00
Javier Jardón
9c3d1080d6
Do not use deprecated gdk_display_get_core_pointer()
...
Use gdk_device_manager_get_client_pointer() instead
2010-09-22 03:42:15 +02:00
Havoc Pennington
b837ef5a6d
Revamp and modernize X error traps
...
* add per-display gdk_x11_display_error_trap_push()
(X11-specific because gdk_error_trap_push() probably
should have been)
* make gdk_error_trap_push() handle only GDK displays
not displays opened without a GDK wrapper
* make gdk_error_trap_pop() and gdk_x11_display_error_trap_pop()
automatically sync only if needed, so manual gdk_flush() is not
required
* add gdk_error_trap_pop_ignored() which just asynchronously
ignores errors, so never needs to sync
* add G_GNUC_WARN_UNUSED_RESULT to plain pop(), because
if you use plain pop() and don't need the return value,
the async gdk_error_trap_pop_ignored() should be used
instead. This results in lots of warnings to clean
up in a later patch.
The main objective here was to avoid the need to sync just
to ignore an error. Now, syncing is automatic, and only
happens when we need to know the error code.
https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-18 18:19:27 -04:00
Kristian Rietveld
234d750bb3
Update Quartz backend for GDK key name changes
2010-09-13 16:26:02 +02:00
Javier Jardón
bd277fad50
Remove deprecated gdk_window_get_deskrelative_origin() and its implementations
2010-09-09 00:50:46 +02:00
Matthias Clasen
eb10e6b128
Remove the long deprecated GDK_WINDOW_DIALOG type.
...
This has been deprecated forever, and was just left in for
compatibility reasons.
2010-08-28 20:10:02 -04:00
Kristian Rietveld
14cc894dd7
quartz: gdk_window_get_frame_extents() needs to get effective toplevel
2010-08-15 17:34:44 +02:00
Kristian Rietveld
8b917eeaf6
quartz: make it compile
2010-08-12 10:57:59 +02:00
Kristian Rietveld
bde0f9a8f6
quartz: Misc. fixes for getting offscreen windows to work
...
Mainly fixes to properly differentiate between toplevel and offscreen
windows, since these sometimes need different treatment. Furthermore,
usage of gdk_window_get_effective_foo() instead of gdk_window_get_foo()
where applicable.
2010-08-10 21:02:31 +02:00
Kristian Rietveld
d819bc4814
Invalidate cairo surface if resizing is not supported for target
...
While X11 surfaces can be resized, this is not the case for Quartz
surfaces. Instead of resizing we will invalidate the surface instead.
By giving _gdk_windowing_set_cairo_surface_size() a boolean return
value, we can signal back whether or not resizing was possible. If not
possible, we invalidate the surface.
2010-08-10 21:02:31 +02:00
Kristian Rietveld
9c6696dfcc
quartz: Convert default background drawing to cairo
...
Includes some untested (read: uncompiled) simplifications from Benjamin
Otte.
2010-08-10 21:02:31 +02:00
Benjamin Otte
c9d08d02e5
gdk: Remove data consructors for GdkPixmap
...
That is all of the gdk_pixmap/bitmap_create_from_* constructors.
2010-08-10 21:02:31 +02:00
Benjamin Otte
d0d2a6f12c
API: remove gdk_colormap_query_color
2010-08-10 21:02:30 +02:00
Kristian Rietveld
f7a8bac5e6
quartz: Make backend compile again
2010-08-10 21:02:29 +02:00
Kristian Rietveld
23c9cee274
quartz: Fix up _gdk_quartz_window_translate
2010-08-10 21:02:29 +02:00
Benjamin Otte
6a48a042c7
API: remove GdkGC
...
XXX: Some traces in the win32 code are left. I suppose they'd best be
replaced using Cairo.
2010-08-10 21:02:29 +02:00
Benjamin Otte
61d4a019f8
API: remove gdk_draw_drawable()
2010-08-10 21:02:29 +02:00
Benjamin Otte
0cef9c2bbe
quartz: Do repeated fill with Cairo
...
Some things are so easy with Cairo...
XXX: I did not compile this, this is just proof of concept.
2010-08-10 21:02:28 +02:00
Benjamin Otte
65ac54bb23
gdk: Make window moves a custom vfunc
...
The window move code needs special attention for multiple reasons:
- invalid areas for expose events need to be modified
- self-copy is not supported by Cairo
- in X11, copying from an overlapped Window might cause unexposed areas
to be copied in, spo expose events for those need to be generated.
This was all special cased in various parts of the code. By making it an
explicit vfunc, we can work around it.
2010-08-10 21:02:28 +02:00
Benjamin Otte
600fbd3e74
API: remove gdk_draw_rectangle()
2010-08-10 21:02:28 +02:00
Benjamin Otte
9ee5176492
API: remove gdk_draw_point(s)
2010-08-10 21:02:27 +02:00
Benjamin Otte
a9e99e7f5b
API: remove gdk_draw_{line,lines,segments}
...
Those were the 3 intermixed line drawing calls.
2010-08-10 21:02:27 +02:00
Benjamin Otte
e85dfc7cc4
API: remove gdk_draw_polygon()
2010-08-10 21:02:27 +02:00
Benjamin Otte
559ae63f01
API: remove gdk_draw_arc()
2010-08-10 21:02:27 +02:00
Benjamin Otte
14fe04ec89
API: remove GdkImage
...
It was unused and buggy.
2010-08-10 21:02:26 +02:00
Benjamin Otte
6f5084551a
API: remove gdk_drawable_copy_to_image()
2010-08-10 21:02:26 +02:00
Benjamin Otte
b926ce719b
API: remove gdk_draw_image()
2010-08-10 21:02:26 +02:00
Benjamin Otte
4f8dbd4a8d
API: Remove gdk_draw_pixbuf()
2010-08-10 21:02:25 +02:00
William Jon McCann
0cfb94cdd4
[gdk] Add gdk_keymap_get_num_lock_state
...
https://bugzilla.gnome.org/show_bug.cgi?id=623239
2010-07-01 21:44:09 -04:00
Kristian Rietveld
be27fba3f3
Remove dummy for gdk_event_get_graphics_expose()
...
This was a deprecated function that has been removed.
2010-06-30 21:43:25 +02:00
Kristian Rietveld
1564d8922a
Fix typos in Cairo region conversion so that Quartz actually compiles
2010-06-30 11:10:29 +02:00
Kristian Rietveld
53fbf2a30a
Update Quartz DnD code to set device on DnD events
2010-06-30 10:56:44 +02:00
Kristian Rietveld
03a313d2a9
Implement gdk_drag_context_{get,set}_device in Quartz backend
2010-06-30 10:56:44 +02:00
Benjamin Otte
300e6b84cd
s/GdkRegion/cairo_region_t/ in all of gtk
...
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Benjamin Otte
3e96cfe8fc
Deprecate the GdkRegion API
...
Includes fixing all callers to use the cairo region API instead. This is
usually just replacing the function names, the only difference is
gdk_region_get_rectangles() being replaced by
cairo_region_num_rectangles() and cairo_region_get_rectangle() which
required a bit more work.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Christian Dywan
655dcff096
Remove deprecated GdkFont
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604196
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-06-28 23:38:03 +02:00
Javier Jardón
c1affa4f3c
Remove deprecated code from X interaction
2010-06-28 23:38:03 +02:00
Javier Jardón
c3987f9ee2
[GdkGC] Remove deprecated GdkFont from GdkGCValues structure
2010-06-28 23:38:03 +02:00
Kristian Rietveld
7f2e4c38a9
Move Leopard-specific type definitions to gdkquartz.h
...
Update includes subsequently where it matters. Fixes build on Mac OS
X 10.4.
(cherry picked from commit e634f3fbe0
)
2010-06-27 11:00:42 +02:00
Kristian Rietveld
64f11c366a
Refactor to use API that's available in OS X 10.4 as well
...
(cherry picked from commit 3770d914ec
)
2010-06-27 11:00:31 +02:00
John Ralls
98d47b57bf
Bug 622333 - Crash in gdk_window_impl_quartz_begin_paint_region
...
(cherry picked from commit 093a867e51
)
2010-06-27 11:00:20 +02:00
Kristian Rietveld
019ccc686d
Flip clip mask image when setting clip mask on GC
...
(cherry picked from commit 9f5f47f8be
)
2010-06-27 11:00:09 +02:00
Kristian Rietveld
88cae1769b
Rework color translation to support gray scale and bitmaps
...
(cherry picked from commit 49f72c1fb4
)
2010-06-27 10:59:46 +02:00
Kristian Rietveld
18b233fe2a
Add gray visual, implement "get_best" functions
...
(cherry picked from commit 42d07ad6ce
)
2010-06-27 10:59:11 +02:00
Matthias Clasen
8a590711da
Remove stray references to gtk-2.0
2010-06-26 21:40:55 -04:00
John Ralls
d722adb76a
[quartz] Delete the typedef of GdkDevicePrivate
...
It's in gdkdevice.h now.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=622765
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-06-26 00:23:32 +02:00
Carlos Garnacho
6cde835acd
GdkDeviceManager: Add gdk_device_manager_get_client_pointer().
...
This function makes a better replacement for
gdk_display_get_core_pointer(), wherever it might yet be needed, for
XI2 resorts to XIGetClientPointer(), for the others return the only
core pointer.
https://bugzilla.gnome.org/show_bug.cgi?id=621685
2010-06-24 02:30:53 +02:00
Javier Jardón
3c8a54b2f7
Remove GdkWChar deprecated code
2010-06-20 00:22:26 +02:00
Javier Jardón
ca046f0cfb
Remove deprecated gdk_text_* and gdk_string_* functions
...
Remove gdk_string_extents(), gdk_text_extents(),
gdk_text_extents_wc(), gdk_string_width(), gdk_text_width(),
gdk_text_width_wc(), gdk_string_measure(), gdk_text_measure(),
gdk_string_height(), gdk_text_height()
2010-06-20 00:22:26 +02:00
Javier Jardón
4cf4470fcd
Remove deprecated GdkDrawable functions
...
Remove gdk_drawable_get_data(), gdk_drawable_set_data(),
gdk_drawable_ref(), gdk_drawable_unref(),
gdk_draw_string(), gdk_draw_text(), gdk_draw_text_wc()
2010-06-19 21:39:22 +02:00
Javier Jardón
71c501d895
Use a GPid on gdk_spawn_on_screen[_with_pipes] instead a gint
...
Reported by Nick Schermer in bug
https://bugzilla.gnome.org/show_bug.cgi?id=602289
2010-06-10 03:52:35 +02:00
Javier Jardón
2ace397eb5
Remove deprecatedd code from GdkColor
...
https://bugzilla.gnome.org/show_bug.cgi?id=619649
2010-06-07 00:35:40 +02:00
Colin Walters
95bc0f5405
Use g_source_set_name for all custom GSources in GTK+
...
Naming the sources allows easier debugging with e.g. SystemTap
probes.
https://bugzilla.gnome.org/show_bug.cgi?id=620511
2010-06-03 21:49:22 -04:00
Javier Jardón
019563c322
Remove gdk_*et_use_xshm() deprecated functions
2010-05-26 05:18:05 +02:00
Matthias Clasen
bd4609b140
Merge the xi2-for-master branch
2010-05-25 18:38:44 -04:00
Matthias Clasen
50a72eda2d
Seal gdk
...
Add G_SEAL annotation for struct members, and add accessors for
the (useful) fields. Patch based on work by Garrett Regier,
see bug #592580 .
2010-05-25 12:01:04 -04:00
Javier Jardón
618d15e991
Remove deprecated gdk_window_get_toplevels() function
2010-05-14 18:18:10 +02:00
Paul Davis
aea9f1b6cf
Remove arbitrary limit on number of redraw rectangles
...
The aim of this limit was to not degrade performance too much, however,
it actually did degrade performance to a large extent.
2010-05-12 12:11:40 +02:00
Javier Jardón
2b64a7fd54
Remove some deprecated stuff from GdkWindow
...
Also, substitute the deprecated functions with the correct ones
2010-05-12 04:29:55 +02:00
Javier Jardón
8424256a39
[gdk] Remove gdki18n.h completely
2010-05-03 01:51:21 +02:00
Javier Jardón
906a510007
Remove deprecated code from GdkImage
2010-05-03 01:48:45 +02:00
Javier Jardón
7894951cee
Remove deprecated code from GdkEvent
2010-05-03 01:48:45 +02:00
Javier Jardón
8c46ef830b
Remove deprecated code from GdkDnd
2010-05-03 01:45:00 +02:00
Matthias Clasen
13d69e552d
Fix a compatibility problem
...
It turns out that my attempt at handling Super, Hyper and Meta better
is causing problems, mostly because Alt and Meta are commonly colocated
in the modmap, and apps do a check for the Alt modifier regularly.
See e.g bug 607697.
2010-02-12 18:55:42 -05:00
Kristian Rietveld
66207cf13e
Improve enter/motion notify semantics
...
On X11 we receive enter notify and motion notify events for a window
regardless of its focus state. On Mac OS X this is not the case. This
commit improves the semantics to overcome this difference. It improves
on my earlier patch that sent a motion notify event when a window became
main.
Instead of sending a motion notify when a window becomes main, we now
send one when a window becomes key, which comes closest to a window
getting focus in X11. This motion notify is needed because Mac OS X does
not send motion events when an application is inactive (none of its
windows have focus), these events are sent in X11. This dummy motion
notify event (with current coordinates of the mouse cursor) allows an
application to get its prelight and other state right when it gets focus
and thus user attention.
Another change is to send an enter notify event when updating the
tracking rectangle of a GdkQuartView and the mouse cursor is currently in
this rectangle. This rectangle is at least updated on window creation.
This enter notify event is important for the case where a new window
appears right below the mouse cursor. The window has to receive an enter
notify event for the subsequent events to be processed correctly. Mac
OS X does not send one in this case, so we generate it ourselves.
Both of these synthesized events have to go through
_gdk_windowing_got_event() for updating statekeeping, etc.
append_event() has a boolean flag now to make this convenient.
2010-01-30 20:36:28 +01:00
Kristian Rietveld
0912a113dd
Release view after setting it as contentView
...
Fixes GdkQuartzView being leaked.
2009-12-30 14:14:21 +01:00
Kristian Rietveld
255c2739e2
Fix memleak in get_nsscreen_for_point()
...
One codepath did not go through GDK_QUARTZ_RELEASE_POOL, refactored
the code to fix this.
2009-12-30 14:12:42 +01:00
Kristian Rietveld
3887838244
Fix memory leak in GdkQuartzView
...
Should remove the tracking rect in dealloc.
2009-12-30 14:11:14 +01:00
Kristian Rietveld
ee62948b83
Use CGFLOAT_DEFINED, don't rely on NSINTEGER_DEFINED for this
2009-12-28 23:01:42 +01:00
Kristian Rietveld
e22de4a88e
Add gdk_keymap_map_virtual_modifiers() to Quartz backend
2009-12-28 21:18:57 +01:00
Kristian Rietveld
c8fef502e2
Start using CGFloat
...
Fixes a bunch of compiler warnings. Since CGFloat does not exist on
Tiger and earlier, we have added a typedef likewise as was done for
NSInteger.
2009-12-28 21:18:57 +01:00
Kristian Rietveld
f3a5bf48d4
Fix compile warning in gdk_cursor_new_from_pixmap
2009-12-28 21:18:57 +01:00
Kristian Rietveld
dd415881be
initWithContentRect: has a NSUInteger parameter now
...
The typedef in place for Tiger and earlier systems should change this
to unsigned int without problems.
2009-12-28 21:18:56 +01:00
Kristian Rietveld
b2b70e5a8d
Start using NSInteger and NSUInteger
...
These have been introduced in Leopard and default to int and unsigned int.
In 64-bit Snow Leopard they are long and unsigned long. This caused issues
with the getRectsBeingDrawn message which needs a pointer to a NSInteger
(long on 64-bit!) but we passed in an integer. Surprisingly this problem
was visible when compiling with -O0 (segfault), but *not* when compiling
with -O1. Other messages were NSInteger is now needed have also been
adapted.
Since NSInteger and NSUInteger are not available on Tiger, a define
has been added to add typedefs for these when they have not been defined
by the system headers.
2009-12-27 19:28:56 +01:00
Matthias Clasen
182108c68e
Implement gdk_screen_get_primary_monitor in all GDK backends
...
The implementations are all trivial, just returning 0. At least
for Quartz, we could probably do better than that. Bug 604459.
2009-12-13 20:40:02 -05:00
Kristian Rietveld
cffddd2adc
Document how Cocoa coordinate and monitor layout transforms to GDK work
2009-11-15 15:29:45 +01:00
Nicola Fontana
1e1131c959
Do not use static GTypeInfo and GInterfaceInfo
...
Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED)
and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and
GInterfaceInfo structs, while tutorials and source code often use
static variables. This commit consistently adopts the former method.
https://bugzilla.gnome.org/show_bug.cgi?id=600158
2009-11-06 01:21:09 +01:00
Kristian Rietveld
a338c7e929
Update copyright
2009-10-26 09:57:11 +01:00
Kristian Rietveld
fa8fa48ef1
Update position of toplevels after display reconfiguration
...
We have to do this, especially after the screen containing the menubar
has changed. Such more larger changes in monitor geometry will cause
changes to how monitors are laid out in the root window. The position
coordinates of the windows will have to be updated to reflect their
position in the new layout.
2009-10-26 09:52:54 +01:00