All pastes #382421 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-05 17:05 UTC
rendered paste body
<?php

$wnd = new gtkwindow();
$wnd->connect_simple('destroy',array('gtk','main_quit'));
$textview = new gtktextview();
$wnd->add($textview);
$buffer = $textview->get_buffer();
$wnd->show_all();

Gtk::timeout_add(200,'add_line',$buffer);

Gtk::main();


function add_line($buffer){
	$buffer->insert($buffer->get_end_iter(),"some text\n");
	return true;
}

?>