From a3ad6ef093d237c9ae68e43d0d4a648f99f8fc52 Mon Sep 17 00:00:00 2001 From: "ramiro%fateware.com" Date: Mon, 10 Apr 2000 22:57:27 +0000 Subject: [PATCH] If an argument is given on the command line, load it as a url to test loading of urls before the widget is realized. --- embedding/browser/gtk/tests/TestGtkEmbed.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/embedding/browser/gtk/tests/TestGtkEmbed.cpp b/embedding/browser/gtk/tests/TestGtkEmbed.cpp index 9cc40739c30..2eb0d5aae19 100644 --- a/embedding/browser/gtk/tests/TestGtkEmbed.cpp +++ b/embedding/browser/gtk/tests/TestGtkEmbed.cpp @@ -40,6 +40,11 @@ main(int argc, char **argv) gtk_box_pack_end(GTK_BOX(box), moz_embed, TRUE, TRUE, 1); gtk_widget_show(moz_embed); + if (argc > 1) + { + gtk_moz_embed_load_url(GTK_WIDGET (moz_embed), argv[1]); + } + gtk_widget_show(toplevelwindow); gtk_main();