]>
Pileus Git - ~andy/gtk/log
Benjamin Otte [Fri, 27 Aug 2010 10:30:54 +0000 (12:30 +0200)]
perf: Use a temp window instead of a normal one
This way, we don't need hacks to not set the background.
Benjamin Otte [Fri, 27 Aug 2010 10:14:36 +0000 (12:14 +0200)]
API: Remove APIs to generate pixmaps from pixbufs
The 3 functions in question were:
- gdk_pixbuf_render_threshold_alpha()
- gdk_pixbuf_render_pixmap_and_mask()
- gdk_pixbuf_render_pixmap_and_mask_for_colormap()
All of them can be replaced using Cairo if they have to. The
functionality is only needed to talk to old X interfaces and normal apps
do fine without them.
Benjamin Otte [Fri, 27 Aug 2010 10:08:30 +0000 (12:08 +0200)]
x11: Set the icon using Cairo
No more GdkPixmap to store the icon and its mask, but instead use cairo
surfaces. Also render the icon into the surfaces using Cairo instead of
gdk_pixbuf_render_threshold_alpha().
Benjamin Otte [Thu, 26 Aug 2010 11:46:34 +0000 (13:46 +0200)]
API: Change offscreen windows to use a cairo_surface_t
This requires changes to all the offscreen surface getters that used to
return a GdkPixmap before.
Benjamin Otte [Thu, 26 Aug 2010 09:21:51 +0000 (11:21 +0200)]
gdk: Use surfaces for double buffering
Don't use pixmaps anymore. Also use subsurfaces for implicit paints and
correcly set device offsets.
Benjamin Otte [Thu, 26 Aug 2010 08:15:59 +0000 (10:15 +0200)]
gdk: Make csw windows have their own cairo surface
With Cairo 1.10 now having cairo_surface_create_for_rectangle(), we can
use them. No need to create multiple native surfaces for the same X
window (ugh) anymore.
Benjamin Otte [Wed, 25 Aug 2010 23:17:04 +0000 (01:17 +0200)]
API: Remove gdk_window_get_internal_paint_info()
This function should not exist in public API, it exposes too many
internals.
Benjamin Otte [Wed, 25 Aug 2010 21:39:30 +0000 (23:39 +0200)]
gdk: offscreen window source drawable now is the root window
As the source drawable is only used for creating pixmaps these days, we
don't have to keep a real drawable around, but can just use the root
window.
Benjamin Otte [Wed, 25 Aug 2010 21:35:40 +0000 (23:35 +0200)]
gdk: Create surfaces directly, not from the source drawable
The notion of a source drawable does not make a lot of sense for windows
that are not backed by a drawable, such as GdkOffscreenWindow after
converting it to cairo_surface_t.
Benjamin Otte [Wed, 25 Aug 2010 20:16:28 +0000 (22:16 +0200)]
gdk: Remove gdk_windowing_create_cairo_surface()
Instead, actually use the create_cairo_surface vfunc on the
implementation drawable. D'oh.
Benjamin Otte [Wed, 25 Aug 2010 19:06:21 +0000 (21:06 +0200)]
dnd: Replace last pixmap usage with cairo surfaces.
Benjamin Otte [Wed, 25 Aug 2010 14:50:14 +0000 (16:50 +0200)]
API: image: Remove ability to set image from a pixmap
Benjamin Otte [Wed, 25 Aug 2010 14:49:45 +0000 (16:49 +0200)]
API: Remove the ability to set the dnd icon from a pixmap
Benjamin Otte [Wed, 25 Aug 2010 13:50:57 +0000 (15:50 +0200)]
tests: Convert testinput to use cairo_surface_t
Benjamin Otte [Tue, 24 Aug 2010 15:13:05 +0000 (17:13 +0200)]
gdk: Remove gdk_window_redirect_to_drawable()
Also remove the reverse gdk_window_remove_redirection().
The code was only used by the snapshotting code, and that code is dead
now.
Benjamin Otte [Tue, 24 Aug 2010 15:06:40 +0000 (17:06 +0200)]
testoffscreen: Remove unused code
Benjamin Otte [Tue, 24 Aug 2010 15:04:18 +0000 (17:04 +0200)]
API: Remove gtk_widget_get_snapshot()
It will be replaced with gtk_widget_draw().
Benjamin Otte [Tue, 24 Aug 2010 15:03:23 +0000 (17:03 +0200)]
testgtk: Remove snapshot test
gtk_widget_get_snapshot is on its way out.
The test can be added back once we have gtk_widget_draw(), but until
then, there's no way to take snapshots.
Benjamin Otte [Tue, 24 Aug 2010 14:27:55 +0000 (16:27 +0200)]
ruler: Make the backing store use a surface
Benjamin Otte [Tue, 24 Aug 2010 14:03:09 +0000 (16:03 +0200)]
API: make gtk_icon_view_create_drag_icon() return a cairo_surface_t
GdkPixmap is going to die!
Benjamin Otte [Tue, 24 Aug 2010 13:56:08 +0000 (15:56 +0200)]
API: make gtk_tree_view_create_row_drag_icon() return a cairo_surface_t
GdkPixmap is going to die!
Benjamin Otte [Tue, 24 Aug 2010 13:45:41 +0000 (15:45 +0200)]
treeview: Convert GtkTreeViewColumn rendering to Cairo
Benjamin Otte [Sun, 22 Aug 2010 02:32:52 +0000 (04:32 +0200)]
iconview: Port to Cairo rendering
Benjamin Otte [Sun, 22 Aug 2010 02:32:39 +0000 (04:32 +0200)]
cellview: Port to Cairo rendering
Benjamin Otte [Sun, 22 Aug 2010 01:53:45 +0000 (03:53 +0200)]
API: Add gtk_cell_renderer_render_cairo()
It's like gtk_cell_renderer_render(), just cooler.
Benjamin Otte [Sat, 21 Aug 2010 11:18:14 +0000 (13:18 +0200)]
API: Change cellrenderer->render vfunc to take a cairo_t
Also constify the rectangle arguments. They were const anyway.
Benjamin Otte [Sun, 15 Aug 2010 19:24:55 +0000 (21:24 +0200)]
testview: Convert _gtk_text_util_create_rich_drag_icon() to use surfaces
Benjamin Otte [Sun, 15 Aug 2010 17:41:51 +0000 (19:41 +0200)]
textview: API: change gtk_text_layout_draw() to take a cairo_t
This simplifies the API a lot and allows more magic to happen later.
Benjamin Otte [Sun, 15 Aug 2010 17:38:32 +0000 (19:38 +0200)]
API: Add gtk_cairo_draw_insertion_cursor()
For now just add it instead of replacing the current function. In the
end, this one should probably be renamed to
gtk_draw_insertion_cursor() and the current
gtk_draw_insertion_cursor() should die.
Benjamin Otte [Sun, 15 Aug 2010 14:53:27 +0000 (16:53 +0200)]
text: Make _gtk_text_util_create_drag_icon() return a surface
And change its callers to handle it that way.
Benjamin Otte [Sun, 15 Aug 2010 14:52:25 +0000 (16:52 +0200)]
API: Add gtk_drag_set_icon_surface()
The function is supposed to replace gtk_drag_set_icon_pixmap().
Benjamin Otte [Sun, 15 Aug 2010 12:41:29 +0000 (14:41 +0200)]
menu: set tearoff background using new background API
Benjamin Otte [Sun, 15 Aug 2010 12:37:58 +0000 (14:37 +0200)]
Use gdk_window_set_background_pattern() to set parent-relative bakground
Benjamin Otte [Sun, 15 Aug 2010 12:37:49 +0000 (14:37 +0200)]
iconview: No need to set background
Benjamin Otte [Sun, 15 Aug 2010 12:36:05 +0000 (14:36 +0200)]
style: Rewrite background handling to use cairo_pattern_t
Benjamin Otte [Sun, 15 Aug 2010 12:35:48 +0000 (14:35 +0200)]
trayicon: Use new gdk_window_set_background_pattern() API
Benjamin Otte [Sun, 15 Aug 2010 11:54:05 +0000 (13:54 +0200)]
gtk: Remove calls that try to set GDK_NO_BG on their windows
These calls aren't necessary anymore.
Benjamin Otte [Sun, 15 Aug 2010 11:49:30 +0000 (13:49 +0200)]
gdk: Rewrite background handling
Now the window background is a cairo_pattern_t. The backends will try to
set this as good as they can on the windowing system, but no guarantees
are made on wether the windowing system supports the pattern.
Also gets rid of GDK_NO_BG as undefined behavior is not a good idea to
support, and GDK_NO_BG effectively made the window's contents undefined.
It wasn't effectively used in GTK anyway.
Benjamin Otte [Sun, 15 Aug 2010 01:27:30 +0000 (03:27 +0200)]
gdk: Remove supports_native_bg on WindowImplIface
This will not be TRUE for anything anymore, once we fix background
handling.
Benjamin Otte [Sun, 15 Aug 2010 01:20:10 +0000 (03:20 +0200)]
gdk: Remove send_expose event from gdk_window_clear_region_internal()
It's always FALSE.
Benjamin Otte [Sun, 15 Aug 2010 01:16:20 +0000 (03:16 +0200)]
gdk: Remove GdkWindowImpl->clear_region
It was only used on the X11 backend and is easier to implement locally,
in particular when we want to allow backgrounds that X can't handle.
Benjamin Otte [Sun, 15 Aug 2010 01:13:08 +0000 (03:13 +0200)]
gdk: Simplify clear_area code
No more use for a gdk_window_clear_area_internal() function as there's
just one caller.
Benjamin Otte [Sun, 15 Aug 2010 01:11:01 +0000 (03:11 +0200)]
API: Remove gdk_window_clear_area_e()
Awesome name for a function. Plus, it's unused and its functionality can
easily be replicated.
Benjamin Otte [Sun, 15 Aug 2010 01:10:16 +0000 (03:10 +0200)]
gdk: Don't use clear_area_e() in offscreenwindow
Instead, call gdk_window_invalidate_rect() ourselves.
Benjamin Otte [Sat, 14 Aug 2010 04:51:53 +0000 (06:51 +0200)]
gdk: Remove _gdk_windowing_get_shape_for_mask()
It's unused. And there's a replacement available with
gdk_cairo_region_create_from_surface()
Benjamin Otte [Sat, 14 Aug 2010 04:46:25 +0000 (06:46 +0200)]
API: Remove shape_combine_mask functions from gdk
This removes gdk_window_shape_combine_mask() and
gdk_window_input_shape_combine_mask(). GdkBitmap is going away and a
replacement exists via the combine_region() functions and
gdk_cairo_region_create_from_surface().
Benjamin Otte [Sat, 14 Aug 2010 04:38:11 +0000 (06:38 +0200)]
widget: shape_combine_mask => shape_cobine_region
Replace gtk_widget_shape_combine_region() with
gtk_widget_shape_combine_mask() and
gtk_widget_input_shape_combine_region() with
gtk_widget_input_shape_combine_mask().
As GdkBitmap is going away, and the region equivalents already exist,
this seems like pretty much the default step to take.
Includes code to fix up the users.
Benjamin Otte [Sat, 14 Aug 2010 03:37:24 +0000 (05:37 +0200)]
treeview: Port to gdk_window_shape_combine_region()
gdk_window_shape_combine_mask() is going away. It's using a GdkPixmap
and falls back to gdk_window_shape_combine_region() anyway.
Benjamin Otte [Sat, 14 Aug 2010 02:40:52 +0000 (04:40 +0200)]
API: Add gdk_cairo_region_create_from_surface()
The function converts the given surface into an alpha bitmap mask. This
is mostly useful for setting shape regions.
Also adds a new internal function _gdk_cairo_surface_extents() that
computes a surface's extents.
Benjamin Otte [Thu, 12 Aug 2010 13:43:23 +0000 (15:43 +0200)]
API: Remove gdk_cursor_new_from_pixmap()
gdk_cursor_new_from_pixbuf() is the proper replacement.
Benjamin Otte [Thu, 12 Aug 2010 13:28:16 +0000 (15:28 +0200)]
colorsel: Use gdk_cursor_new_from_pixbuf() to create the cursor
gdk_cursor_new_from_pixmap() is about to die.
Benjamin Otte [Thu, 12 Aug 2010 02:48:06 +0000 (04:48 +0200)]
API: remove gdk_window_set_icon()
gdk_window_set_icon_list() now does everything gdk_window_set_icon()
used to do.
Benjamin Otte [Thu, 12 Aug 2010 02:39:28 +0000 (04:39 +0200)]
testgtk: Convert WM hints example to use gdk_window_set_icon_list()
gdk_window_set_icon() is about to go away.
Also removes the circles.xbm file and uses the oncluded openfile logo
instead.
Benjamin Otte [Thu, 12 Aug 2010 02:33:16 +0000 (04:33 +0200)]
window: Remove call to gdk_window_set_icon()
Also remove all the functions taking care of it. This is now handled by
the X11 backend directly. And the other backends ignored this function
anyway.
Benjamin Otte [Thu, 12 Aug 2010 02:29:10 +0000 (04:29 +0200)]
x11: remove icon_window property, it's not used anymore
Benjamin Otte [Thu, 12 Aug 2010 02:21:49 +0000 (04:21 +0200)]
x11: Set icon based on icon list
Basically copies the code for setting the WM icon hint from GtkWindow to
GdkWindow. This achieves the following:
- Putting this X11 specific code into the X11 backend
- Enables removal of gdk_window_set_icon()
- Gets rid of Pixmap/Bitmap usage outside of GDK.
Benjamin Otte [Tue, 17 Aug 2010 03:15:31 +0000 (05:15 +0200)]
pixbuf-engine: remove unused theme_pixbuf_render_no_cairo()
Benjamin Otte [Mon, 16 Aug 2010 13:09:50 +0000 (15:09 +0200)]
style: Convert draw_spinner vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:13:26 +0000 (15:13 +0200)]
style: Convert draw_resize_grip vfunc to Cairo version
Includes removal of now unused draw_simple_image_no_cairo() function
from pixbuf engine.
Benjamin Otte [Mon, 16 Aug 2010 13:21:01 +0000 (15:21 +0200)]
style: Convert draw_layout vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:26:19 +0000 (15:26 +0200)]
style: Convert draw_expander vfunc to Cairo version
Benjamin Otte [Tue, 17 Aug 2010 01:26:20 +0000 (03:26 +0200)]
style: Convert draw_handle vfunc to Cairo version
Benjamin Otte [Tue, 17 Aug 2010 00:46:46 +0000 (02:46 +0200)]
style: Convert draw_slider vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:24:46 +0000 (22:24 +0200)]
style: Convert draw_focus vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:19:56 +0000 (22:19 +0200)]
style: Convert draw_extension vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:15:43 +0000 (22:15 +0200)]
style: Convert draw_box_gap vfunc to Cairo version
Includes removal of now unused draw_gap_image_no_cairo() function from
pixbuf theme engine.
Benjamin Otte [Mon, 16 Aug 2010 14:09:11 +0000 (16:09 +0200)]
style: Convert draw_shadow_gap vfunc to a Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:10:00 +0000 (22:10 +0200)]
style: Convert draw_tab vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 19:58:15 +0000 (21:58 +0200)]
style: Convert draw_option vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 19:55:02 +0000 (21:55 +0200)]
style: Convert draw_check vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 19:50:08 +0000 (21:50 +0200)]
style: Convert draw_flat_box vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:48:06 +0000 (15:48 +0200)]
style: Convert draw_shadow vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:40:03 +0000 (15:40 +0200)]
style: Convert draw_vline vfunc to a Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:35:58 +0000 (15:35 +0200)]
style: Convert draw_hline vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 19:36:49 +0000 (21:36 +0200)]
API: change gtk_style_apply_default_background()
It now takes a cr to apply the default background to. And it no longer
takes a set_bg parameter
Benjamin Otte [Tue, 17 Aug 2010 02:47:02 +0000 (04:47 +0200)]
pixbuf-engine: Add Cairo version for draw_gap_image()
Benjamin Otte [Tue, 17 Aug 2010 02:43:11 +0000 (04:43 +0200)]
pixbuf-engine: Add Cairo version for draw_simple_image()
Benjamin Otte [Tue, 17 Aug 2010 02:37:03 +0000 (04:37 +0200)]
pixbuf-engine: Make theme_pixbuf_render take a cairo_t
This is in preparation for the theme engine switch to Cairo. We keep the
old function around so that we can step-by-step upgrade all the vfuncs.
Benjamin Otte [Tue, 17 Aug 2010 02:30:10 +0000 (04:30 +0200)]
pixbuf-engine: Get rid of unused mask argument
Benjamin Otte [Sun, 26 Sep 2010 13:02:00 +0000 (15:02 +0200)]
notebook: Fix compilation warnings
A quark is not a pointer.
Benjamin Otte [Sun, 26 Sep 2010 13:01:52 +0000 (15:01 +0200)]
menu: Remove unused variable
Matthias Clasen [Sat, 25 Sep 2010 15:18:28 +0000 (11:18 -0400)]
GtkScrolledWindow: document changed default policy
Matthias Clasen [Sat, 25 Sep 2010 03:03:51 +0000 (23:03 -0400)]
Nuke the 'Types' section from the docs
Matthias Clasen [Sat, 25 Sep 2010 02:16:53 +0000 (22:16 -0400)]
Remove mention of input dialog from the docs
Matthias Clasen [Sat, 25 Sep 2010 02:13:42 +0000 (22:13 -0400)]
GtkOffscreenWindow: shorten doc title
Matthias Clasen [Sat, 25 Sep 2010 01:52:58 +0000 (21:52 -0400)]
GtkScale: Remove links from doc section title
Matthias Clasen [Fri, 24 Sep 2010 17:52:49 +0000 (13:52 -0400)]
GtkMenu: Add a destroy notify to gtk_menu_popup_for_device
This is necessary so language bindings can use gtk_menu_popup_for_device()
as a 'full' variant of gtk_menu_popup().
http://bugzilla.gnome.org/show_bug.cgi?id=623664
Matthias Clasen [Fri, 24 Sep 2010 17:41:29 +0000 (13:41 -0400)]
Update docs of GtkAboutDialog and GtkLinkButton
Remove references to global hooks from the docs. Also move remaining
docs inline, and remove the templates.
Matthias Clasen [Fri, 24 Sep 2010 17:23:47 +0000 (13:23 -0400)]
DND: don't use uninitialized memory
The dest_x/y members of GtkDragDestInfo were not initialized.
At the same time, switch some of the small temporary structs
to g_slice allocation.
https://bugzilla.gnome.org/show_bug.cgi?id=630532
Matthias Clasen [Fri, 24 Sep 2010 16:42:34 +0000 (12:42 -0400)]
GtkAboutDialog: correct a since tag
Christian Dywan [Fri, 24 Sep 2010 16:40:12 +0000 (18:40 +0200)]
gtkeditable: move documentation to inline comments
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=617316
Florian Müllner [Fri, 24 Sep 2010 16:03:25 +0000 (18:03 +0200)]
introspection: Fix typo in annotation
Tomeu Vizoso [Fri, 24 Sep 2010 14:30:07 +0000 (16:30 +0200)]
Don't try to unref event->dnd.context unconditionally.
As it's not set in gdk_event_new but eventually later.
https://bugzilla.gnome.org/show_bug.cgi?id=630520
Matthias Clasen [Fri, 24 Sep 2010 16:02:37 +0000 (12:02 -0400)]
GtkAboutDialog: escape mail addresses
This got lost when converting to the ::activate-link signal.
Matthias Clasen [Fri, 24 Sep 2010 15:53:20 +0000 (11:53 -0400)]
Remove gtk_notebook_set_window_creation_hook in testnotebookdnd.c
Matthias Clasen [Fri, 24 Sep 2010 15:31:23 +0000 (11:31 -0400)]
Another since tag
Matthias Clasen [Fri, 24 Sep 2010 15:29:17 +0000 (11:29 -0400)]
Correct since tags
Matthias Clasen [Fri, 24 Sep 2010 15:13:30 +0000 (11:13 -0400)]
GtkNotebook: replace group by group_name
Dealing with bare pointers is problematic for language bindings,
using interned strings is much more straightforward and more than
good enough for what is needed here.
http://bugzilla.gnome.org/show_bug.cgi?id=630521
Matthias Clasen [Fri, 24 Sep 2010 15:10:51 +0000 (11:10 -0400)]
GtkNotebook: remove gtk_notebook_set_window_creation_hook
http://bugzilla.gnome.org/show_bug.cgi?id=630521
Matthias Clasen [Fri, 24 Sep 2010 02:26:07 +0000 (22:26 -0400)]
docs: Add a CODING-STYLE document
This document mostly codifies the existing GTK+ coding style
conventions; it is strongly based on the clutter document of
the same name.