Re: Custom CellRendererText doesn't update cell size
Kjell Ahlstedt via gtkmm-list <[email protected]> Fri, 10 Sep 2021 16:47:29 +0200
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <[email protected]> |
Do you really have to override snapshot_vfunc() and call it explicitly? Isn't gtk's internal version good enough and called when you set property_text()? The CellrendererText will expand as necessary only if it's inserted in a container widget that allows it to expand. On 2021-09-09 13:15, [email protected] wrote: > Hi, > I'm trying to do a Cell Renderer that converts a std::deque into a > string. > So I derivated the CellRendererText and override the snapshot_vfunc. > First I converted the deque to string, updated the property_text and > called Gtk::CellRendererText::snapshot_vfunc to render the text. > On gtkmm3 it was working as intended, but on gtkmm4 it doesn't update > the size of the cell and so the string in only partially shown. > > Regards, > Pedro Serrano > _______________________________________________ >