-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ricardo Biloti wrote:
> The same behaviour occurs in my application just as you described.
> Have you managed to render a string directly?
> 
> Regards,
> R. Biloti
> 
> On Sep 10, 10:13 am, Jan St pie  <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I've tried to use GtkMozEmbed in a very simple C application. I've
>> created a GtkMozEmbeded* and placed it in a GTK+ container. Without any
>> further preparation I've tried to load a URL or render some data in the
>> widget. Unfortunately, despite the fact that loading URLs works
>> flawlessly, I'm unable to render any text. Here's the code:
>>
>> gtk_init(&argc, &argv);
>> GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
>> GtkWidget *html = gtk_moz_embed_new();
>> char *data = "string";
>> gtk_container_add(GTK_CONTAINER(window), html);
>> //gtk_moz_embed_render_data(GTK_MOZ_EMBED(html), data, strlen(data),
>>         "file:///", "text/html");
>> //gtk_moz_embed_load_url(GTK_MOZ_EMBED(html), "http://mozilla.org";);
>> gtk_widget_show_all(window);
>> gtk_main();
>>
>> If gtk_moz_embed_load_url() is uncommented everything works fine. On the
>> other hand, if the gtk_moz_embed_render_data() is uncommented then
>> application dies with a segmentation fault.
>>
>> Have you got any suggestions?

Do you mean rendering some data with text/plain MIME type? No, I
haven't. It also causes a segfault.

I've heard that Firefox 3 should be more embedding-friendly. As long as
it's not out yet, I'm afraid I'll have to switch gtkhtml.

Regards,
Jan Stępień
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7-ecc0.1.6 (GNU/Linux)

iD8DBQFG6RGZV8Af0wiAIQIRAuCDAKCDqt2N5RZ6f6QJnWet/inUg2b+DQCgujxA
G35p9FfxMzJdhTeUpnxzvc8=
=DbeS
-----END PGP SIGNATURE-----
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to