Author: miguel
Date: 2006-08-28 17:40:38 -0400 (Mon, 28 Aug 2006)
New Revision: 64501
Modified:
trunk/gtk-sharp/doc/en/Gtk/TreeView.xml
Log:
Patch from [EMAIL PROTECTED]
Modified: trunk/gtk-sharp/doc/en/Gtk/TreeView.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gtk/TreeView.xml 2006-08-28 21:40:18 UTC (rev
64500)
+++ trunk/gtk-sharp/doc/en/Gtk/TreeView.xml 2006-08-28 21:40:38 UTC (rev
64501)
@@ -1086,6 +1086,47 @@
This event is usually raised when the user doubleclicks a row.
</para>
</block>
+ <example>
+ <code lang="C#">
+using System;
+using Gtk;
+
+class Selection
+{
+ static void Main ()
+ {
+ Application.Init ();
+ Window win = new Window ("Row activated sample");
+ win.DeleteEvent += OnWinDelete;
+
+ TreeView tv = new TreeView ();
+ tv.AppendColumn ("Items", new CellRendererText (), "text", 0);
+
+ ListStore store = new ListStore (typeof (string));
+ store.AppendValues ("item 1");
+ store.AppendValues ("item 2");
+
+ tv.Model = store;
+ tv.RowActivated += OnRowActivate;
+
+ win.Add (tv);
+ win.ShowAll ();
+ Application.Run ();
+ }
+
+ static void OnRowActivate (object o, RowActivatedArgs args)
+ {
+ Console.WriteLine("row {0} was doubleclicked", args.Path);
+ }
+
+ static void OnWinDelete (object o, DeleteEventArgs args)
+ {
+ Application.Quit ();
+ }
+}
+
+ </code>
+ </example>
</remarks>
</Docs>
<Attributes>
@@ -2229,4 +2270,4 @@
</Docs>
</Member>
</Members>
-</Type>
+</Type>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches