How to Drawing a stock gtk+-widget into cell-renderers cell?



Greetings everybody!

I'm still trying to write a cell-renderer version of GtkOptionMenu. I got to a point where the the basic infrastructure of the GtkCellRendererOption (that's what I called it) works somehow. But know I need to actually have the GtkOptionMenu drawn into the cell. I can draw to a cell using the normal gdk functions. But how can I attach the GtkOptionMenu to the cell. I know that a cell-renderer is not a widget and thus cannot be treated that way. But there has to be a way to do this. After all even GtkMenuOption uses gdk-calls to render itself.
   Any hints are greatly welcome! I looked already at the soucecode or 
"Mr Project". But there a GTK_WINDOW_POPUP is used to place all needed 
widgets relative to the active cell. This only happens when a cell is 
clicked. But I want to have the GtkOptionMenu be really drawn in the 
cell all the time. Not only when the user selects a cell.
Thanks in advance for your time and kind advice!

Best regards...

Mirco





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