Adel Gadllah
6490a22aaf
GdkX11dnd: Fix build issue
...
I messed up while rebasing the window caches patch.
2011-01-05 17:54:29 +01:00
Matthias Clasen
644f25c497
Decouple GdkWindowCache life-cycle from GdkX11DragContext
...
By making window caches refcounted. This fixes problems with leaking
drag contexts, as experienced in
https://bugzilla.gnome.org/show_bug.cgi?id=637691
and
https://bugzilla.gnome.org/show_bug.cgi?id=144324
Based on a patch by drago01@gmail.com
2011-01-05 17:37:37 +01:00
Murray Cumming
87285bc8bf
gdk_spawn* deprecation docs: Mention actual replacement functions.
2011-01-05 01:34:49 +01:00
Benjamin Otte
882db1cf5f
gdk: Remove GTK_COMPILATION checks from headers
...
Now that gtk doesn't compile with GDK_DISABLE_DEPRECATED anymore,
they're not needed.
2011-01-03 19:07:07 +01:00
Benjamin Otte
9591369339
gdk: Deprecate gdk_display_set_pointer_hooks()
2011-01-03 19:07:07 +01:00
Benjamin Otte
b225585844
gdk: Deprecated gdk_set_pointer_hooks()
2011-01-03 19:07:07 +01:00
Matthias Clasen
c76b247da5
Revert some over-eager deprecation removal
...
We can't replace drawable api with window api when the object
is actually a pixmap.
2010-12-27 18:16:14 -05:00
Tor Lillqvist
9fb03bb402
Export gdk_x11_ functions only on X11
2010-12-27 11:30:07 +02:00
Matthias Clasen
120915d6de
Reinstate the implementation of gdk_window_foreign_new_for_display
...
This was accidentally dropped when introducing
gdk_x11_window_foreign_new_for_display().
2010-12-23 11:58:26 -05:00
Matthias Clasen
e2361108f4
Document that keymap functions will stop accepting NULL
2010-12-23 10:15:59 -05:00
Matthias Clasen
3e9dc75768
Fix another typo
2010-12-21 18:06:54 -05:00
Matthias Clasen
8ad1c959ef
Fix a typo
2010-12-21 11:35:38 -05:00
Matthias Clasen
dd05e41475
Deprecate gdk_xid_table* functions
2010-12-21 09:54:15 -05:00
Matthias Clasen
7b1c38b57c
Deprecated gdk_drag_find_window and gdk_drag_get_protocol
2010-12-21 09:54:15 -05:00
Matthias Clasen
a88f8e4c57
Deprecate gdk_drag_context_new
2010-12-21 09:54:15 -05:00
Matthias Clasen
bad6d00966
Deprecate some gdk text conversion routines
...
And add x11-specific replacements for them
2010-12-21 09:54:15 -05:00
Matthias Clasen
e65e208d40
Deprecate gdk_set_locale and gtk_set_locale
2010-12-21 09:54:14 -05:00
Matthias Clasen
6250c1dbe1
Deprecate gdk_net_wm_supports
2010-12-21 09:54:14 -05:00
Matthias Clasen
dd1de27061
Deprecate gdkx_visual_get
2010-12-21 09:54:14 -05:00
Matthias Clasen
08e4a60de1
Deprecate gdk_spawn apis
2010-12-21 09:54:14 -05:00
Matthias Clasen
2f8c78ddc5
Deprecate foreign window apis
...
And add x11- and win32-specific apis for these at the same time
2010-12-21 09:54:14 -05:00
Matthias Clasen
0f8251da61
Deprecate gdk_set_sm_client_id
...
And add a gdk_x11_set_sm_client_id to replace it.
2010-12-21 09:54:13 -05:00
Matthias Clasen
3bdd56c928
Add some forgotten accessors for GdkDragContext
...
These fields are accessed in gtk.
2010-12-21 09:54:13 -05:00
Matthias Clasen
c282958fb4
Optimize gdk_window_set_shape_combine_region
...
When setting no shape on an unshaped window, nothing changes,
so return early instead of recomputing lots of visibility
information.
Pointed out by Owen Taylor in bug 637156.
2010-12-14 22:24:09 -05:00
Matthias Clasen
b2274ba08a
Avoid delays in starting applications
...
Only query file info once, and don't do it for non-native files, since
that may cause sync network IO.
Bug http://bugzilla.gnome.org/show_bug.cgi?id=635588
2010-11-29 21:08:59 +01:00
Michael Natterer
d0f2b13309
gdk: add gdk_device_get_n_keys() to access the sealed num_keys member
2010-11-24 20:15:29 +01:00
Benjamin Otte
176218c5a0
API: Add gdk_pixmap_get_size()
...
Allows querying a pixmap's size when compiling with deprecations.
2010-11-18 17:45:14 +01:00
Michael Natterer
2ab90f5d65
gdk: cast impl to GdkWindow* when calling gdk_drawable_get_size()
2010-11-18 13:24:51 +01:00
Bastien Nocera
df08bc43ec
gdk: Add XSetting for "gtk-cursor-blink-timeout"
...
Otherwise the blink timeout is the one used by default in GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=634697
2010-11-15 17:20:02 +00:00
Benjamin Otte
bf395263b2
gdk: Use the correct surface size when creating surfaces
...
Previously we used the size of the csw window, which could easily be
huge and cause CAIRO_SURFACE_INVALID_SIZE errors. If we use the real
size, we work around this problem. The surface can now potentially be
bigger than before but we should handle that when clipping in csw.
https://bugzilla.gnome.org/show_bug.cgi?id=633701
2010-11-08 16:14:14 -05:00
Hans Breuer
1050485a13
Prefer MessageBeep() over Beep()
...
Only the former respects the sound volume setting. If MessageBeep() fails fall back to the latter.
(cherry picked from commit 5e59db1554
)
2010-11-07 22:38:20 +01:00
Kristian Rietveld
15eecb1645
quartz: release pattern in GC finalize
2010-10-24 14:39:52 +02:00
Kristian Rietveld
dfd7e05123
quartz: Reset drawable on pattern callback info when gc is updated
2010-10-24 14:39:52 +02:00
Kristian Rietveld
b0a17e5a37
Pass pixmap to _gdk_pixmap_get_cgimage() and not the impl
2010-10-24 14:39:52 +02:00
Kristian Rietveld
f62b56194b
quartz: Always use generic color space
...
Switch all usage of device color spaces to generic color spaces. Since
the former color spaces are no longer device-dependent as of Mac OS X
10.4, these yielded a very costly color space conversion when drawing
pixmaps to the screen. We now avoid this by using the generic color
space.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624025
2010-10-19 10:41:01 +02:00
Kristian Rietveld
e6e9eef855
Rework GdkPixmapImplQuartz to create CGImage on-demand
...
If the data that backs a bitmap context changes, then the CGImage that
is backed by this data might not always update due to caching effects.
By creating the CGImage on-demand, we ascertain ourselves that the
CGImage is up to date.
2010-10-19 10:40:48 +02:00
Matthias Clasen
0200763126
Fix header inclusions for !srcdir builds
2010-10-16 16:53:44 -04:00
Christian Persch
2a646c1d21
Take cursor hotspot from pixbuf if available
...
Allow -1 for the hotspot coordinates in gdk_cursor_new_from_pixbuf,
if the pixbuf contains the x_hot/y_hot options with appropriate values.
Bug #632140 .
2010-10-16 01:11:43 -04:00
Javier Jardón
463e6843b9
docs: Fix some docs in gdkrgb
...
Reported by Milan Bouchet-Valat in
https://bugzilla.gnome.org/show_bug.cgi?id=631473
2010-10-06 01:00:35 +02:00
Matthias Clasen
d1f256ac30
Backport some new GdkWindow api from 2.90
...
This commit adds
gdk_window_get_display
gdk_window_get_screen
gdk_window_get_visual
gdk_window_get_width
gdk_window_get_height
and deprecates the corresponding GdkDrawable APIs.
This will make it easier to prepare the port to GTK+ 3
2010-09-27 20:37:03 -04:00
Matthias Clasen
2e5251b405
Add gdk_cairo_set_source_window
...
And deprecate gdk_cairo_set_source_pixmap.
2010-09-27 19:00:10 -04:00
Colin Walters
62c2b4f529
introspection: Only use 0.9.3 API
2010-09-20 10:00:30 -04:00
Matthias Clasen
4850fa57f9
Fix up a botched cherry-pick
2010-09-17 11:05:42 -04:00
Matthias Clasen
0ebde0bbe5
Fix a doc comment
...
(cherry picked from commit 28c66ed9b0
)
2010-09-17 09:49:54 -04:00
Matthias Clasen
a3fa516c60
Scan gdk/x11 sources for Gdk-3.0.gir
...
The doc comments (with annotations) for some of the gdk api are down
in x11/ sources, so we need to scan those too, when building Gdk-3.0.gir.
2010-09-17 09:49:19 -04:00
Matthias Clasen
27970efd52
Add annotations
...
The goi scanner warns about these nowadays.
(cherry picked from commit 6aa8941b84
)
2010-09-17 09:47:47 -04:00
Sebastian Dröge
285ab04c0c
gdk: Only use XComposite if it is available
...
Fixes build if it isn't available. Bug #629748 .
2010-09-15 16:41:41 +02:00
Matthias Clasen
4394a972dc
Fix a logic error in the gdk_display deprecation
2010-09-13 13:14:18 -04:00
Adel Gadllah
81ec8c7a1b
[GdkWindowCache] Don't ignore the CompositeOverlayWindow
...
Add the composite overlay window to the cache, as this can be a reasonable Xdnd proxy as well.
This is only done when the screen is composited in order to avoid mapping
the COW. We assume that the CM is using the COW (which is true for pretty
much any CM currently in use).
https://bugzilla.gnome.org/show_bug.cgi?id=601731
2010-09-13 18:21:15 +02:00
Matthias Clasen
9190497b4a
Don't use g_idle_add to schedule idles in GDK
...
We need to use gdk_threads_add_idle, in order to keep GDK code
under the GDK lock.
Bug 629277
(cherry picked from commit 08dd02fe25
)
2010-09-10 22:35:36 -04:00