gtk_widget_class_set_template() and gtk_widget_class_set_template_from_resource() are
not wrapped in gtkmm. It would not be trivial to use them in a
gtkmm program, since they must be called from the class
initialization function.
I have not studied this example in detail, but
I think it would be possible to use Gtk::Builder, if you
change the <template> section to an <object>
section. Use Gtk::Builder in your main() function. Look at the
example at
https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/builder/basic
for some hints how to do it.
Kjell
Den 2016-09-26 kl. 13:18, skrev Patrick Welche:
I am following the standard gtk+ "trival application" example at:
https://developer.gnome.org/gtk3/stable/ch01s04.html
and trying to do the equivalent using gtkmm. It seems that since
https://blogs.gnome.org/tvb/2013/04/09/announcing-composite-widget-templates/
the idea is that your application is a composite widget which should be
defined in XML. Given a ui resource file defining a <template> section,
I don't see how any gtkmm convenient wrapper constructor can make use of it.
How is this meant to work? Should I be looking glibmm? or?
Cheers,
Patrick
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list