Custom cel renderer



Hi All,
I am trying to write custom cell renderer which should be able to
display GtkWidgets.
But I am not able to get GdkWindow of widget to be displayed since it
not displayed or added to any container(not realized yet).
I am creating one widget say GtkButton and wanted it to be displayed on
cellrenderer.
What i am trying is to implement  'cell_class->render' and in it try to
draw this widget on parent GdkWindow through gdk_draw_drawable() but i
am not able to get GdkDrawable (GdkWindow) of widget(i.e of button) to
draw it on destination GdkWindow.
Is there any way to draw this widget on parent GdkWindow or is there any
other way to display widgets with cellrenderer?
Are there any guidelines to write custom cellrenderer which will display
any GtkWidget?
Thanks in advance.

Regards,
Amol





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