Re: gtk_widget_class_set_template_from_resource



Den 2016-09-27 kl. 17:26, skrev Kjell Ahlstedt:
If you use gtkmm, you can't use <template> elements in the xml files, and you can't use <signal> elements. Apart from that, I think the application in the "Building applications" section of the gtk+ documentation can be built in approximately the same way in gtkmm. I notice that the gtk+ application uses GtkBuilder for the menus. Resource files can be used with gtkmm. I suppose you have seen the "Menus and Toolbars" section in the gtkmm tutorial.

The gtkmm tutorial does not contain a complete application example like the gtk+ example that you linked to. It would be fine to have it translated to gtkmm and added to the tutorial.

Kjell


I have now made a new chapter in the gtkmm tutorial, corresponding to the "Building applications" chapter in the gtk+ documentation.

gtk+: https://developer.gnome.org/gtk3/stable/ch01s04.html
gtkmm bug: https://bugzilla.gnome.org/show_bug.cgi?id=772391
gtkmm source code: https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/buildapp

The text is not yet available at https://developer.gnome.org/gtkmm-tutorial/unstable/, only in the git repository, https://git.gnome.org/browse/gtkmm-documentation/tree/docs/tutorial/C/index-in.docbook.

Kjell



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