Benjamin Otte
25fc4d97f8
textview: remove GtkTextAttributes (un)realize code
...
It was unused (apart from a few assertion that indeed it was unused).
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
54ac92aaaf
Add call to cairo_destroy() to gtk_text_layout_draw()
2010-08-10 21:02:29 +02:00
Kristian Rietveld
089892df27
Add missing calls to cairo_destroy()
2010-08-10 21:02:29 +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
0fa7d810e7
calendar: Remove unused GdkGC members
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
ac3ddfa2a7
API: Remove gtk_gc_get() and gtk_gc_release()
...
With this change, GTK does not use GdkGC anymore.
2010-08-10 21:02:29 +02:00
Benjamin Otte
acf33c9e4c
API: Remove GC members from GtkStyle
2010-08-10 21:02:29 +02:00
Benjamin Otte
90ac7b915c
textview: Replace GdkGC * argument with gpointer
...
The argument is unused.
That's also the reason why we can pass NULL instead of the real GC in
the caller.
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
fea39c078b
textview: Make the PangoRenderer use Cairo exclusively
...
No more gdkpango usage, no more GdkGC required, yay!
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
805e0d1082
label: Draw all text using PangoCairo
...
This includes the addition of a "small" helper function,
_gtk_pango_fill_layout() that ignores color information. This
functionality is not available inside Pango and until that happens, we
need this fix. The bug is filed at:
https://bugzilla.gnome.org/show_bug.cgi?id=624917
2010-08-10 21:02:28 +02:00
Benjamin Otte
9f1939cbd5
API: Remove GtkTextTag's stipple properties
...
They seem pretty much unused and the only reason why GtkTextView uses a
GdkPangoRenderer and not a PangoCairoRenderer.
2010-08-10 21:02:28 +02:00
Benjamin Otte
4729460a4f
gtk-demo: Adapt textview example for stipple removal
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
66048b2f92
style: Replace last gdk_draw_rectangle() with Cairo
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
c661eb73a1
testgtk: Remove image from drawable test
...
The test only tested old APIs.
2010-08-10 21:02:27 +02:00
Benjamin Otte
a3057d0150
style: replace draw_frame_gap with Cairo calls
2010-08-10 21:02:27 +02:00
Benjamin Otte
5eb76955fd
style: Replace draw_diamond vfunc with Cairo calls
2010-08-10 21:02:27 +02:00
Benjamin Otte
8f21b09eee
tests: remove "draw drawable" button from testwindows test
...
draw_drawable is gone soon. And testing the proper functioning of
drawing calls is Cairo's job anyway.
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
d2b1da4e84
API: remove gtk_paint_polygon()
...
Almost noone uses it in real applications and it's broken in most theme
engines.
2010-08-10 21:02:27 +02:00
Benjamin Otte
53b9bdc3fc
iconview: Remove debug drawing code
...
It uses APIs I'm about to deprecate.
2010-08-10 21:02:27 +02:00
Benjamin Otte
1c4ce45a42
style: apply cleanup patch from bug 576988
...
Ideally this patch would be split up into chunks, but the git branch it
came from doesn't exist anymore. Only this patch is left in a bug
report.
It it's adapted to use accessors and contains some fixes that were
spotted while using the patch.
https://bugzilla.gnome.org/show_bug.cgi?id=576988
2010-08-10 21:02:27 +02:00
Benjamin Otte
89d28eb09d
API: remove gdk_draw_glyphs() and gdk_draw_glyphs_transformed()
2010-08-10 21:02:27 +02:00
Benjamin Otte
92f4882497
API: remove gdk_draw_trapezoids() and GdkTrapezoid struct
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
9b713fa4fd
gdk: Remove testgdk code
...
The file wasn't build anyway and it's using all the APIs that are
getting removed.
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