Hi,
"Santhana Krishnan" <[EMAIL PROTECTED]> writes:
> Is there any chance the depth of a drawable widget can be '0' ? In the
> following piece of code i am getting the depth value as zero for some
> widgets (eg. buttons, label..).
>
> if (GDK_IS_DRAWABLE (widget))
> {
> depth = gdk_pixbuf_get_depth (widget);
> }
>
> Any idea what could be the problem?.
there are several problems with this code. A widget is never a
GdkDrawable and if it was, your code would use a pixbuf method
on a widget. Something like this could work:
if (widget->window)
depth = gdk_drawable_get_depth (GDK_DRAWABLE (widget->window));
Salut, Sven
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list