Benjamin Otte
b68801f168
gdk: Get rid of GdkRGB usage
...
Unfortunately, there's no code for getting rid of the alpha channel,
so we opacify the image ourselves.
2010-07-26 16:42:49 +02:00
Benjamin Otte
7b213d5604
gdk: Get rid of gdk_draw_pixbuf() call
...
Use Cairo code instead.
2010-07-26 16:42:49 +02:00
Benjamin Otte
610e29892e
style: Draw insertion cursor with Cairo
2010-07-26 16:42:49 +02:00
Benjamin Otte
9bac13b1f5
Remove _gtk_widget_get_cursor_gc() function
...
It's unused now.
2010-07-26 16:42:48 +02:00
Benjamin Otte
761b0ea3ae
testing: Use Cairo calls instead of gdk_draw_line() to test server sync
2010-07-26 16:42:48 +02:00
Benjamin Otte
188884a9b1
gtk-demo: Blit backing pixmap using Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
831afa2159
gtk-demo: Convert color selection example to Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
760ba34bd8
gtk-demo: Convert drawingarea example to Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
4d07fa5772
gtk-demo: Make pixbufs demo use Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
1e64e36b58
demos: No need to set the rgb colormap here
2010-07-26 16:42:48 +02:00
Benjamin Otte
da49daecc4
demos: Convert to drawing with Cairo instead of GdkRGB
2010-07-26 16:42:48 +02:00
Benjamin Otte
73ae8a787e
demos: Use Cairo instead of gdk_draw_pixbuf()
2010-07-26 16:42:48 +02:00
Benjamin Otte
e0efb8798a
testgtk: Remove unused variable
2010-07-26 16:42:48 +02:00
Benjamin Otte
e8bf80ebea
testgtk: Draw rotated text example with pangocairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
8630657324
testgtk: Replace gdk_draw_rectangle() with Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
0a451f508b
test: Convert testinput to Cairo
...
The test is broken though as it draws onto windows outside of expose
events.
And we all know you shouldn't do that.
2010-07-26 16:42:48 +02:00
Benjamin Otte
6dd7e5af08
tests: Make testoffscreen use Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
a625e587a3
tests: replace gdk_draw_drawable() with Cairo calls in testinput
2010-07-26 16:42:48 +02:00
Benjamin Otte
17bd528df5
tests: Use gdk_screen_get_default_colormap()
...
We don't need the RGB colormap here.
2010-07-26 16:42:48 +02:00
Benjamin Otte
58ef2afdfa
tests: Use GdkPixbuf for taking a screenshot, not GdkImage
2010-07-26 16:42:48 +02:00
Benjamin Otte
6d4bae5ccc
tests: Remove gdk_draw_pixbuf() with Cairo equivalent
2010-07-26 16:42:47 +02:00
Benjamin Otte
c1c9b7dfc8
pixbuf-engine: Draw mask with Cairo
...
No more gdk_pixbuf_render_threshold_alpha()
2010-07-26 16:42:47 +02:00
Benjamin Otte
a22ebc974f
pixbuf-engine: replace call to gdk_draw_pixbuf() with Cairo equivalent
2010-07-26 16:42:47 +02:00
Benjamin Otte
59db821725
pixbuf-engine: Replace gdk_draw_pixbuf() with Cairo equivalent
...
This replaces the tiled fill call only.
2010-07-26 16:42:47 +02:00
Benjamin Otte
7f1801eae1
imcontextxim: Draw with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
c122d31c29
decorations: Draw text with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
a8d805ffbc
decorate: Draw decorations using Cairo
...
Patch is untested, is there an example using this?
2010-07-26 16:42:47 +02:00
Benjamin Otte
ff25b0dc20
hsv: Remove unused variable
2010-07-26 16:42:47 +02:00
Benjamin Otte
5cd6d309ea
treeview: Draw the dnd pixmaps with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
da426ec97c
treeview: Draw lines with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
8dd3317502
treeview: Unify all line drawing into the same function
...
This is useful because the dashing stuff needs to be done and it seems
like a good idea to unify it.
2010-07-26 16:42:47 +02:00
Benjamin Otte
526aac1fda
treeview: Draw column reordering arrows with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
41621e212b
ruler: Replace gdk_draw_drawable calls with Cairo
...
and get rid of the custom GC
2010-07-26 16:42:47 +02:00
Benjamin Otte
5fd0c28c78
menu: replace gdk_draw_drawable() call with Cairo equivalent
2010-07-26 16:42:47 +02:00
Benjamin Otte
671c506dfc
filechooser: Remove commented out code
...
It wouldn't compile with current APIs anyway
2010-07-26 16:42:47 +02:00
Benjamin Otte
4181abd69a
progressbar: Use cairo instead of gdk_draw_drawable()
2010-07-26 16:42:47 +02:00
Benjamin Otte
6eed185502
spinner: We want the default colormap, not the RGB colormap
...
GtkSpinner doesn't use GdkRGB
2010-07-26 16:42:46 +02:00
Benjamin Otte
8f6a014de4
image: Use Cairo instead of gdk_draw_drawable()
2010-07-26 16:42:46 +02:00
Benjamin Otte
847d401df3
image: replace gdk_draw_pixbuf() call with Cairo equivalent
2010-07-26 16:42:46 +02:00
Benjamin Otte
0310626938
textview: draw dnd icon with Pango
2010-07-26 16:42:46 +02:00
Benjamin Otte
dec093d9f1
textview: Draw selection background with Cairo
2010-07-26 16:42:46 +02:00
Benjamin Otte
3e469d737e
textview: Draw drag icons using Cairo
2010-07-26 16:42:46 +02:00
Benjamin Otte
f1074be1ed
textview: Use _gtk_widget_get_cursor_color() and Cairo
...
Previously the code was using _gtk_widget_get_cursor_gc()
2010-07-26 16:42:46 +02:00
Benjamin Otte
8c035b6048
textview: Draw empty shape logo with Cairo
2010-07-26 16:42:46 +02:00
Benjamin Otte
373128ce29
textview: replace gdk_draw_pixbuf() call with Cairo version
2010-07-26 16:42:46 +02:00
Benjamin Otte
de6314d084
colorbutton: Render with Cairo
...
In particular, this gets rid of gdk_draw_pixbuf() and GdkGC usage.
2010-07-26 16:42:46 +02:00
Benjamin Otte
d203b830a9
entry: replace gdk_draw_pixbuf() call with Cairo version
2010-07-26 16:42:46 +02:00
Benjamin Otte
2883a274cc
gdk: Revert making get_size optional
...
49a0ec6e95
added this hunk without
explanations and it's obviously wrong because failing to have a get_size
vfunc will now not set width and height and they'll end up with invalid
values.
In fact, the GdkDrawableImpl{X11,Win32,Quartz} functions do not have
get_size implemented, so the patch was most likely an attempt to work
around calling this function erroneously on the impl objects.
The correct fix is to call impl->wrapper instead.
2010-07-26 16:42:46 +02:00
Benjamin Otte
8adfc326f8
x11: Query size on real drawable
...
The X11 drawable does not have a clue about the real size of the
surface.
This might also be the cause for:
https://bugzilla.gnome.org/show_bug.cgi?id=599574
2010-07-26 16:42:46 +02:00
Benjamin Otte
b806701cdb
docs: Fix sgml file to add gdk_keymap_get_num_lock_state()
2010-07-26 16:42:46 +02:00