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
504a2d4194
API: Remove gdk_drawable_get_display()
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
2ee8fdb79b
gtk: gdk_drawable_get_display() => gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
7f486231ac
API: Add gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
0f13411cb0
x11: Use gdk_window_get_screen() in the testutils
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
9f47be2216
gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visual
2010-09-26 15:11:33 +02:00
Benjamin Otte
5b9bbf9de2
API: Add gdk_window_get_visual() and gdk_window_get_screen()
...
Now that we store the visual in the GdkWindow, these are rather trivial
accessors.
2010-09-26 15:11:32 +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
e316157671
API: gdk_pixbuf_get_from_drawable() => gdk_pixbuf_get_from_window()
...
The Colormap argument needed to be removed, so the renaming is just a
side effect.
2010-09-26 15:11:32 +02:00
Benjamin Otte
a9f198082a
dnd: Remove unused colormap code
2010-09-26 15:11:32 +02:00
Benjamin Otte
3607a4c082
API: Remove setters and getters for default colormaps
...
This removes:
gtk_widget_set_default_colormap()
gtk_widget_get_default_colormap()
gtk_widget_get_default_visual()
Colormaps are gone, and the default visual is the system visual of the
default screen.
2010-09-26 15:11:32 +02:00
Benjamin Otte
c51e8bd9e5
API: Remove colormap setting and getting from GtkWidget
...
gtk_widget_get_colormap() and gtk_widget_set_colormap() are gone. They
are replaced by visuals.
2010-09-26 15:11:32 +02:00
Benjamin Otte
4701bdb2a8
style: Move from colormaps to visuals
2010-09-26 15:11:32 +02:00
Benjamin Otte
fc52c9daf3
testgtk: Check visual, not colormap for RGBA availability
2010-09-26 15:11:32 +02:00
Benjamin Otte
0a63e954af
gtk-demo: Remove colormaps from window attributes
2010-09-26 15:11:32 +02:00
Benjamin Otte
2fc80e6102
gdk: Create paint surfaces of the same content as the window
...
Previously, we failed to create RGBA double buffers for RGBA windows.
2010-09-26 15:11:32 +02:00
Benjamin Otte
c64946c52d
trayicon: Use XClearArea
...
gdk_window_clear_area() isn't smart enough to clear to a parent pixmap
that is part of a window that GDK doesn't manage.
2010-09-26 15:11:32 +02:00
Benjamin Otte
d7ede44dae
testgtk: gtk_widget_set_colormap() => gtk_window_set_visual()
2010-09-26 15:11:32 +02:00
Benjamin Otte
4515f0803b
trayicon: Change to use gtk_window_set_visual()
...
One less user of colormaps, and the code is cleaner, too!
2010-09-26 15:11:32 +02:00
Benjamin Otte
59b227e123
window: Keep track of own visual
...
Add gtk_window_set_visual() and a "visual" property. This allows
changing the window visual to the rgba one and other awesome things
(like implementing the trayicon spec).
2010-09-26 15:11:32 +02:00
Benjamin Otte
913f3fcc9f
gtk: Change gtk_widget_get_visual()
...
We now return the visual of the topmost widget in widget's stack that
has a window. If no such widget exists, but a GtkWindow is a parent, we
return its visual (note: GtkWindow Will gain support for setting visuals
soon). If a window doesn't exist, we return the system visual of the
default screen.
This change has multiple reasons:
- Colormaps are gone
Now visuals are the most important resource for creating GDK windows.
- Allow widgets to change visuals for themselves and their children
By walking the hierarchy, we ensure that child windows have the same
visual as their parents by default. But widgets can still select a
different visual in their realize handler when creating the GDK
window.
- Have a replacement for gtk_widget_set_colormap()
That function is going to die with colormaps, so a replacement was
needed. That replacement is going to be gdk_window_set_visual().
- Make a future transition to no-window GTK easy
Should we ever attempt a change to make all GTK widgets no-window, a
gtk_widget_set_visual() would be silly, as only widgets with windows
can have their own visuals. So only toplevels will gain the ability to
change it.
2010-09-26 15:11:31 +02:00
Benjamin Otte
600f52321b
tests: Don't set colormap when creating offscreen windows
2010-09-26 15:11:31 +02:00
Benjamin Otte
08e6fc11ad
testgtk: Don't set colormap when creating GDK windows
2010-09-26 15:11:31 +02:00
Benjamin Otte
e8a6bad00b
gtk: Don't set colormap anymore when creating GDK windows
...
Colormaps are about to be removed, so not using them sounds like an
awesome idea.
2010-09-26 15:11:31 +02:00
Benjamin Otte
a38472c139
testgtk: No need to set a custom colourmap here
2010-09-26 15:11:31 +02:00
Benjamin Otte
e06d04032b
spinner: We're a no-window widget, so setting a colormap does nothing
2010-09-26 15:11:31 +02:00
Benjamin Otte
ce7379a8bd
style: Remove depth member from GtkStyle
2010-09-26 15:11:31 +02:00
Benjamin Otte
6a2124d566
gdk: Remove _gdk_drawable_get_source_drawable()
...
Now that we don't create pixmaps anymore, this function is not needed
anymore. The indirection it did previously is now basically moved to
gdk_window_create_similar_surface()
2010-09-26 15:11:31 +02:00
Benjamin Otte
b09019560b
style: Remove depth checks in render functions
...
There's no need for them anymore now that we render with Cairo.
2010-09-26 15:11:31 +02:00
Benjamin Otte
a520b4f372
x11: Remove some unused macros
2010-09-26 15:11:31 +02:00
Benjamin Otte
a7208d675f
x11: s/GDK_DRAWABLE_DISPLAY/GDK_WINDOW_DISPLAY
2010-09-26 15:11:31 +02:00
Benjamin Otte
c340fb7efd
tests: No need to allocate colors anymore
2010-09-26 15:11:31 +02:00
Benjamin Otte
b479ff9cb5
API: Remove gtk_widget_push_colormap()
...
And of course, gtk_widget_pop_colormap() is gone, too.
No replacement is necessary, the function is basically unused.
2010-09-26 15:11:31 +02:00
Benjamin Otte
522becccc0
gdk: Remove pixmap debug category
...
It's not used anywhere anymore.
2010-09-26 15:11:30 +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
Benjamin Otte
4dd215f82d
tests: Remove GdkPixmap from test
...
It's not used anymore. (Was it ever?)
2010-09-26 15:11:30 +02:00
Benjamin Otte
b7f2f9a678
gtk: Remove special code for detecting pixmaps as event targets
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
9bcbdb7494
x11: Create blank cursor without pixmaps
2010-09-26 15:11:30 +02:00
Benjamin Otte
e6b74551d1
gdk: Get rid of all occurences of "pixmap" in the comments
...
Replace them with the correct term, usually "surface".
2010-09-26 15:11:30 +02:00
Benjamin Otte
55c4cdab1a
x11: Make fallback cursor code not use pixmaps
...
The fallback code for when XCursor wasn't available was still using
GdkPixmap to create the bitmaps.
2010-09-26 15:11:30 +02:00
Benjamin Otte
8d3319f088
x11: Remove last traces of XShm
...
Since deletion of GdkImage, shm is no longer in use.
2010-09-26 15:11:30 +02:00
Benjamin Otte
2b4efe2690
x11: Remove _gdk_x11_convert_to_format()
...
It's unused now.
2010-09-26 15:11:30 +02:00