News Archive
PhpRiot Newsletter
Your Email Address:

More information

Colored Table, Row and Coloumn Headers In Textview.

Note: This article was originally published at Planet PHP on 6 January 2012.
Planet PHP

//Definition of widgets
$scrolled_win = new GtkScrolledWindow();
$textview = new GtkTextview();
$buffer = new GtkTextBuffer();
$win = new GtkWindow();

//Modify widgets
$textview-modify_font(new PangoFontDescription('Courier New 14'));
$win-connect_simple('destroy', array('Gtk', 'main_quit'));

//Pack widgets

/*** Get tags table ***/
$tag_table = $buffer-get_tag_table();

/*** Create and add tag ***/

read more