Re: Dragging a TreeViewItem painted with custom CellRenderer

2009-04-10 Thread Paul Davis
On Fri, Apr 10, 2009 at 8:50 AM, Paul Davis wrote: > > Its probably true that Gtk::Style's draw methods should probably take > Glib::RefPtr not Glib::RefPtr. I wasn't finished. ... However, that represents an issue in the C API which also requires a GdkWindow. It probably works in C because of

Re: Dragging a TreeViewItem painted with custom CellRenderer

2009-04-10 Thread Paul Davis
On Fri, Apr 10, 2009 at 4:26 AM, Dirk Vanden Boer wrote: > > But isn't there an api call missing in Gtk::Style of Gtkmm that > accepts a Gdk::Pixmap in stead of Gdk::Window, because painting the > text on a pixmap using the widget style is possible using the c api. > > gtk_paint_layout (widget.get

Re: Dragging a TreeViewItem painted with custom CellRenderer

2009-04-10 Thread Dirk Vanden Boer
On Mon, Apr 6, 2009 at 2:43 PM, Dirk Vanden Boer wrote: > Hi, > > I have written a custom CellRenderer that displays a Gdk::Pixbuf and > some text using Pango::Layout. > Everything seems to work fine but when I try to drag an item in the > TreeView I see assertion failures in the console and no te

Dragging a TreeViewItem painted with custom CellRenderer

2009-04-06 Thread Dirk Vanden Boer
Hi, I have written a custom CellRenderer that displays a Gdk::Pixbuf and some text using Pango::Layout. Everything seems to work fine but when I try to drag an item in the TreeView I see assertion failures in the console and no text is displayed in the item that gets dragged around. Assertion fai