Philip Withnall
5fa4a05ccc
Miscellaneous string fixes
...
Mostly capitalisation fixes. Closes: bgo#528257
2010-08-22 15:06:45 +01:00
Christian Persch
ffa07ee21e
Use G_DEFINE_BOXED_TYPE
...
Bug #627214 .
2010-08-18 15:34:47 +02:00
Carlos Garnacho
b2545e1732
GdkWindow: Check device cursor first in update_cursor().
2010-08-17 15:45:17 +02:00
Matthias Clasen
ce08b9bb01
Fix some documentation issues
2010-08-16 23:52:03 -04:00
Benjamin Otte
434b3e1072
gdk: Use gdk_window_get_background_pixmap() when setting up paint
2010-08-16 19:48:46 +02:00
Benjamin Otte
2944561ba3
API: Add gdk_window_get_background_pattern()
...
This is the suggested way for GTK3 to store a Window's background so it
makes sense to use the same function today already.
2010-08-16 19:48:46 +02:00
Kristian Rietveld
14cc894dd7
quartz: gdk_window_get_frame_extents() needs to get effective toplevel
2010-08-15 17:34:44 +02:00
Benjamin Otte
0b29f4e769
Remove window background getters again
...
They were added as accessors for 2.22 even though querying the
background wasn't possible previously. As GTK 3.0 will change background
handling, it doesn't make sense at all to expose these getters.
2010-08-15 03:34:02 +02:00
Benjamin Otte
ca7d3f9081
gdk: When using OPERATOR_SOURCE, use clip + paint instead of fill
...
SOURCE is unbounded, so we clear unwanted areas.
2010-08-14 01:46:04 +02:00
Benjamin Otte
fc170551b6
gdk: Do final copy with OPERATOR_SOURCE in end_implicit_paint
...
For windows with alpha channel, the previous contents would otherwise
not be erased. Visible for example in the status icon code.
Thanks to Thomas Wood for noticing.
2010-08-13 20:48:36 +02:00
Benjamin Otte
c989d3000a
API: Add gdk_window_create_similar_surface()
2010-08-12 23:43:11 +02:00
Kristian Rietveld
8b917eeaf6
quartz: make it compile
2010-08-12 10:57:59 +02:00
Benjamin Otte
ddc184ec79
gdk: Remove nonexistant symbols
...
These symbols have been deleted from the public API with the rendering
cleanup work.
2010-08-11 21:43:47 +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
4f37e6833c
x11: Create empty cursor without old functions
...
In particular, clear the bitmap manually instead of using
create_from_data.
2010-08-10 21:02:31 +02:00
Benjamin Otte
e98f760e9c
x11: Make fallback pixbuf-cursor code not use old constructors
...
These bitmap constructors are about to die. The replacement is painting
with Cairo image surfaces and that's what we do here.
2010-08-10 21:02:30 +02:00
Benjamin Otte
8868e77fa0
x11: Remove display_x11->have_render
...
Also remove setters and getters for the variable and the GdkTristate
enum, as it's the only place where it was used.
2010-08-10 21:02:30 +02:00
Benjamin Otte
7182a2dc19
gdk-xft: Don't call render about the subpixel order
...
Instead assume that the root window property is working properly. This
removes the last real Xrender call from GTK.
2010-08-10 21:02:30 +02:00
Kristian Høgsberg
c7bd2ad1c9
gdk: Remove picture pointer from X11 drawable
...
It's not used anymore
2010-08-10 21:02:30 +02:00
Benjamin Otte
c4f280651a
gdk: Don't infinite loop when flushing moves
...
Spotted by Kristian Rietvield. Fixes testoffscreen test.
2010-08-10 21:02:30 +02:00
Matthias Clasen
075661d376
generic damage generation for offscreen windows
...
Generating damage from gdk drawing api doesn't help for cairo rendering
...and the gdk drawing api is gone anyway. Bug 621571
2010-08-10 21:02:30 +02:00
Matthias Clasen
7fd148fc59
Cleanup gdk_pixbuf_render_pixmap_and_mask_for_colormap()
2010-08-10 21:02:30 +02:00
Benjamin Otte
d0d2a6f12c
API: remove gdk_colormap_query_color
2010-08-10 21:02:30 +02:00
Benjamin Otte
1308731580
gdk: Don't require allocating window background colors anymore
...
X!! allocates the colors itself now.
2010-08-10 21:02:30 +02:00
Kristian Rietveld
c3a59fbfcc
Fix compile warnings
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
ef2d37cdaf
API: remove begin/end_direct_draw functions
...
They're not needed without GdkGCs.
FIXME: This breaks the win32 XP theme. Someone gotta fix it.
2010-08-10 21:02:29 +02:00
Benjamin Otte
f7608c33ac
gdk: Move scratch GC handling to X11
...
... and implement it directly instead of using GdkGC, as GdkGC is about
to be deleted, but we need this code.
2010-08-10 21:02:29 +02:00
Benjamin Otte
9c026fb32e
x11: Remove unused code
...
These are function definitions and leftover variabl;es that weren't in
use for a while.
2010-08-10 21:02:29 +02:00
Benjamin Otte
1ac8d80e34
API: remove GdkPangoRenderer
...
Also removes the pango attributes for stipple, emboss and emboss color
2010-08-10 21:02:29 +02:00
Benjamin Otte
4c16995868
gdk: remove get_composite_drawable vfunc
...
The vfunc is not used anymore.
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
a581401920
API: remove gdk_draw_layout_*()
2010-08-10 21:02:28 +02:00
Benjamin Otte
3fc31e88b0
gdk: Remove _gdk_drawable_get_scratch_gc()
...
The function is unused now.
2010-08-10 21:02:28 +02:00
Benjamin Otte
db5fc43759
gdk: Draw redirected windows using Cairo
2010-08-10 21:02:28 +02:00
Benjamin Otte
56e7abb8a4
gdk: Refactor redirection code
...
This will make future patches easier
2010-08-10 21:02:28 +02:00
Benjamin Otte
755bd51757
gdk: Simplify code
...
Use new Cairo APIs to make the code simpler.
2010-08-10 21:02:28 +02:00
Benjamin Otte
a6fcc75774
gdk: Remove excess variables
2010-08-10 21:02:28 +02:00
Benjamin Otte
3df6726656
gdk: Do end_implicit_paint copy with Cairo
2010-08-10 21:02:28 +02:00
Benjamin Otte
f1620b5ce1
gdk: Implement gdk_window_get_source_drawable() using Cairo
...
Do we have a test case for this?
2010-08-10 21:02:28 +02:00
Benjamin Otte
46206f8bb8
gdk: Implement end_implicit_paint() with Cairo
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