Programing with GtkHTML

Abstract

This tutorial will give attendees an overview of GtkHTML's widget features and capabilities, advise them when to use it and when not. The usage of GtkHTML will be demonstrated by examples with ascending complexity. Examples will show how to use GtkHTML filled with simple HTML content, HTML with images, with embedded widgets and how to print with GtkHTML. Various signals will be discussed. It will also be shown how to avoid flickering when content is dynamically changing. The final part will give an overview of applications already using gtkhtml and what could be expected in the future.


Table of Contents
Features overview
Examples compiling
Hello world
Inlined images
Embedded widgets
Dynamic content
How to avoid flickering
Current state and future
The END

Features overview

GtkHTML is a Gtk+ widget inherited from GtkLayout. GtkHTML provides these basic features:

This paper is going to explain how to use GtkHTML to display HTML and how to compose a user interface layout with HTML. Editing will not be covered by this tutorial.

GtkHTML doesn't support JavaScript, CSS or DOM. If you need CSS 1,2 and/or DOM 1,2, then GtkHTML2 developed by CodeFactory is what you are looking for.

The following applications show various usages of GtkHTML's features: