Re: gtk_paint_foo - GdkWindow or GdkDrawable?
- From: Owen Taylor <otaylor redhat com>
- To: muppet <scott asofyet org>
- Cc: gtk-devel-list gnome org
- Subject: Re: gtk_paint_foo - GdkWindow or GdkDrawable?
- Date: Wed, 29 Oct 2003 11:02:30 -0500
On Wed, 2003-10-29 at 10:45, muppet wrote:
> using custom GtkCellRenderers, and attempting to use a custom renderer in a
> reorderable TreeView, i've discovered that when the row is being dragged, that
> argument is a GdkDrawable (specifically, a GdkPixmap) rather than a GdkWindow.
>
> the problem is that the gtk2-perl wrappers for the gtk_paint_foo() functions
> attempt to verify that the 'window' arg is actually a GdkWindow, since that's
> what the C call signature asks for.
>
> however, from reading the source of gtk/gtkstyle.c, it appears that it's safe
> to have the wrappers accept any GdkDrawable rather than specifically
> GdkWindows.
>
> is there any reason this is not true?
They should accept any GdkDrawable, though note that some themes have
been historically buggy about this.
> if not, should i log that as an API bug?
Sure, go ahead. (It's not technically an API bug as we count API bugs,
since we consider changing a type to an identical typedef not an API
change)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]