GdkImage question



I've made a custom widget that is descended from a GtkLabel. When I draw the
label, I have to get the back pixmap of the "labels" parent, so I call

    gimage = gdk_image_get (GTK_WIDGET (label)->window,
                                              (etc...));

    When I render the gdkimage that I got, it's the background of the
toplevel window, not the parent of my "label" which is a button. If I
replace GTK_WIDGET(label)->window with GTK_WIDGET(label)->parent->window, it
makes no difference. What should I use to get the buttons background and not
the top window?

It doesn't really make much difference normally, but when you use the Pixmap
theme and the button pixmaps are not the same as the windows it looks awful.

thanks
Iain



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]