Re: gtkhtml
- From: Archit Baweja <bighead users sourceforge net>
- To: "Stephen M. Przepiora" <steve przepiora org>
- Cc: gtk-app-devel <gtk-app-devel-list gnome org>
- Subject: Re: gtkhtml
- Date: 20 May 2002 22:23:27 +0530
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey
didn't you get my last reply? Ok. Put the gtkhtml widget inside a
GtkScrolledWindow and it should work.
Just in case you still don't get it, here's what you do.
GtkWidget* notebook;
GtkWidget* html, *html_label;
+ GtkWidget *html_sw;
notebook = gtk_notebook_new();
gtk_notebook_set_show_tabs(GTK_NOTEBOOK(notebook), TRUE);
gtk_notebook_set_show_border(GTK_NOTEBOOK(notebook), TRUE);
+ html_sw = gtk_scrolled_window_new (NULL, NULL);
+ gtk_notebook_append_page (GTK_NOTEBOOK (notebook), html_sw, gtk_label_new ("HTML"));
html = gtk_html_new();
gtk_object_set_data_full (GTK_OBJECT (notebook), "html", html,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref(html);
gtk_html_load_from_string (GTK_HTML (html),
"<html><body>foo</body></html>",
strlen("<html><body>foo</body></html>"));
gtk_signal_connect (GTK_OBJECT (html), "url_requested",
GTK_SIGNAL_FUNC (url_requested), NULL);
gtk_widget_show(html);
+ gtk_container_add (GTK_CONTAINER (html_sw), html);
+ gtk_widget_show (html_sw);
Hope that helps
Archit Baweja
P.S. the '+' indicates the new code added.
- --
Homepage: http://symonds.net/~bighead/
GPG Key: http://symonds.net/~bighead/bighead-gpg-key.asc
Gnome in Hindi: http://symonds.net/~bighead/gnome/gnome-devnag-howto/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>
iD8DBQE86SoH2rWNPKmGjMcRAstCAJ9b5kL7Eng9luS2KEtSpk20Y/GQvACgoifW
f5FbbSlUieVrpc9fnZsSut4=
=eVXe
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]