com gtk/php-gtk: Adding simple sourceview demo to CVS so that people can test their installation: ext/sourceview/demos/simple.phpw

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    5c4954a96d720b44aee39108aad972568b729018
Author:    Christian Weiske <[email protected]>         Mon, 22 May 2006 16:03:22 +0000
Parents:   a77fe282f749dfe2abefd84e187d29992ed3b0d1
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=5c4954a96d720b44aee39108aad972568b729018

Log:
Adding simple sourceview demo to CVS so that people can test
their installation

Changed paths:
  A  ext/sourceview/demos/simple.phpw


Diff:
5c4954a96d720b44aee39108aad972568b729018
diff --git a/ext/sourceview/demos/simple.phpw b/ext/sourceview/demos/simple.phpw
new file mode 100644
index 0000000..a7dc996
--- /dev/null
+++ b/ext/sourceview/demos/simple.phpw
@@ -0,0 +1,14 @@
+<?php
+$win = new GtkWindow();
+$source = new GtkSourceView();
+$source->set_show_line_numbers(true);
+$source->set_show_line_markers(true);
+
+$win->add($source);
+$win->maximize();
+$win->show_all();
+$win->set_title("GtkSourceView Demo"); 
+$win->connect_simple("destroy", array("Gtk", "main_quit"));
+
+Gtk::main();
+?>
\ No newline at end of file
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.