Well I am new at embedding mozilla. I am using the xulrunner 1.8 Linux
version. Inside the root directory is the shared objects for
GtkMozEmbed.
It does not complain of missing libraries or any other errors for that
matter during the build or when you run the test app. It only shows the
error when you add a url as the argument. It looks like it tries to
load, then crashes. Thanks for taking the time to reply.
Antonio Gomes wrote:
> glantz,
>
> gtkmozembed is passing by major changes. Could you please inform which
> branch/mozilla_source_base are you linking you app against , and also
> how it it getting linked ?
>
> regards
>
> On 18 Jan 2007 11:00:09 -0800, glantz <[EMAIL PROTECTED]> wrote:
> > I am trying to run a simple test with GtkMozEmbed. The test I am using
> > compiles and runs and opens a window, however when I specify an address
> > to load it shuts down with a "Segmentation fault (core dumped)"
> > message. Any ideas or suggestiions why I might get this? I believe it
> > may be a shared library or something missing, but that is just a guess.
> > I don't know how to find out what is causing it. Below is my code. even
> > if you have a suggestion, it is very much appreciated.
> >
> > #include "gtkmozembed.h"
> > #include <gtk/gtk.h>
> > #include <stdio.h>
> > #include <string.h>
> > #include <stdlib.h>
> >
> > main(int argc, char **argv)
> > {
> >
> > GtkWidget *topLevelWindow;
> > GtkWidget *topLevelVBox;
> > GtkWidget *mozEmbed;
> > int loadPercent;
> > int bytesLoaded;
> > int maxBytesLoaded;
> >
> > gtk_set_locale();
> > gtk_init(&argc, &argv);
> >
> > gtk_moz_embed_set_profile_path("/home/glantz/thumbserver", "test");
> >
> > // create our new toplevel window
> > topLevelWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
> >
> > // new vbox
> > topLevelVBox = gtk_vbox_new(FALSE, 0);
> > // add it to the toplevel window
> > gtk_container_add(GTK_CONTAINER(topLevelWindow),topLevelVBox);
> >
> > // add mozilla
> > mozEmbed = gtk_moz_embed_new();
> > // add it to the toplevel vbox
> > gtk_box_pack_start(GTK_BOX(topLevelVBox), mozEmbed,
> > TRUE, // expand
> > TRUE, // fill
> > 0); // padding
> > gtk_moz_embed_set_chrome_mask(GTK_MOZ_EMBED(mozEmbed),
> > GTK_MOZ_EMBED_FLAG_ALLCHROME);
> >
> > //size the widget
> > gtk_widget_set_usize(mozEmbed, 800, 600);
> >
> > if (argc > 1)
> > gtk_moz_embed_load_url(GTK_MOZ_EMBED(mozEmbed), argv[1]);
> >
> > // show the widgets
> > gtk_widget_show(topLevelWindow);
> > gtk_widget_show(topLevelVBox);
> > gtk_widget_show(mozEmbed);
> >
> > if (argc > 1)
> > gtk_moz_embed_load_url(GTK_MOZ_EMBED(mozEmbed), argv[1]);
> >
> > gtk_main ();
> > return 0;
> > }
> >
> > _______________________________________________
> > dev-embedding mailing list
> > [email protected]
> > https://lists.mozilla.org/listinfo/dev-embedding
> >
>
>
> --
> --Antonio Gomes
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding