> hi iain,
> 
> Thanks for pointing this.  I have built WebKit with the above
> configuration, but is there any reference implementation of browser
> that I can evaluate?

attached is the test program I use.

iain
/* 
 * gcc -o test-webkit test-webkit.c `pkg-config --cflags --libs webkit-clutter-1.0 cairo pangocairo clutter-cairo-0.6` 
 */

#include <clutter/clutter.h>
#include <webkit/webkit.h>

WebkitAdjustment *hadj, *vadj;

int main (int argc, char **argv)
{
	ClutterActor *stage;
	WebKitWebView *view;

	clutter_init (&argc, &argv);

	hadj = webkit_adjustment_new (0,0,0,0,0,0);
	vadj = webkit_adjustment_new (0,0,0,0,0,0);

	stage = clutter_stage_get_default ();
	clutter_actor_set_size (stage, 800, 400);

	view = webkit_web_view_new (800, 400);
	webkit_web_view_set_scroll_adjustments (view, hadj, vadj);

	clutter_actor_set_position (view, 0, 0);
	clutter_actor_set_size (view, 800, 400);
	clutter_actor_set_reactive (view, TRUE);
	clutter_stage_set_key_focus (stage, view);

	clutter_container_add_actor (CLUTTER_CONTAINER (stage), view);

	webkit_web_view_open (view, argv[1]);
	clutter_actor_show_all (stage);

	clutter_main ();
}

Reply via email to