On Thu, 2004-07-08 at 08:40, aubi@...373... wrote:
The failure is at run time. As far as I remember (I doesn't have my machine right now), there is an assertion on the Pixbuf, something like could not bind pixbuf. And of course, nothing is displayed.
Hmm, that sounds vaguely familiar. It could be a refcounting issue.
I will have to try it when I have time.
I also have more general questions about gtkmm ification and widgettery. Do we try to redo custom widgets (ie inheriting from drawables) for the SPIcon and SPButton thingies, or do we provide static Images widgets with the according content (ie pixbuf) already loaded ? I would vote for the second solution as I remarked an important performance hit since we display SVG icons in eg the Fill dialog.
As a matter of fact, SPButton and SPIcon were custom widgets before I rewrote them as subclasses of GtkToggleButton and GtkImage instead.
What I want to do now is to rework our icon code to use GtkIconFactory. That way, SVG images are only rendered once for each size (we can cache them in the factory), and we can more easily use standard Gtk image/icon facilities (whether via gtkmm or direct Gtk).
-mental