+ /* We don't need this for Hildon2 as this widget will be most
+ likely inside scrollable area */
+#ifndef MODEST_TOOLKIT_HILDON2
+#ifndef MODEST_TOOLKIT_GTK
+ gtk_html_set_auto_panning (GTK_HTML (self), TRUE);
+#endif
+#endif
+
+#ifdef MODEST_TOOLKIT_HILDON2
+#ifdef HAVE_GTK_HTML_SET_MAX_IMAGE_SIZE
+ /* We set a maximum width of a bit less than the width of the screen, and a
+ maximum height of 2 times the full size of the window. Should be enough */
+ gtk_html_set_max_image_size (GTK_HTML (self), 720, 880);
+#endif
+#ifdef HAVE_GTK_HTML_SET_ALLOW_DND
+ gtk_html_set_allow_dnd (GTK_HTML(self), FALSE);
+#endif
+#ifdef HAVE_GTK_HTML_SET_WORD_CHAR_WRAPPING
+ gtk_html_set_word_char_wrapping (GTK_HTML (self), TRUE);
+#endif
+#endif
+
+#ifdef HAVE_GTK_HTML_SET_DEFAULT_ENGINE
+ /* Enable Content type handling */
+ gtk_html_set_default_engine (GTK_HTML (self), TRUE);
+#endif