diff --git a/doc/en/Gnome.Vfs/VolumeMonitor.xml b/doc/en/Gnome.Vfs/VolumeMonitor.xml index f6638dfb7..f59e2d8cf 100644 --- a/doc/en/Gnome.Vfs/VolumeMonitor.xml +++ b/doc/en/Gnome.Vfs/VolumeMonitor.xml @@ -7,8 +7,37 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - To be added - To be added + Abstraction for Removable devices. + + +The VolumeMonitor offers a simple way to get removable devices: name, icon, type, etc and operations: Eject, Mount, Unmount and others. + + +In order to use, you need to execute the static method . This method give you a pointer to VolumeMonitor, this is a singleton, which means that it will exists and be valid until + + + // This example show how to get all connected drives + using System; + using Gnome.Vfs; + namespace TestGnomeVFS + { + public class Test() + { + public static void Main() + { + Vfs.Initialize(); + VolumeMonitor vMonitor = VolumeMonitor.Get(); + Drive[] drv = vMonitor.ConnectedDrives; + foreach Drive d in drv) { + Console.WriteLine(d.DisplayName); + } + Vfs.Shutdown(); + } + } + } + + + GLib.Object @@ -318,4 +347,4 @@ - + \ No newline at end of file diff --git a/doc/en/Gtk/ListStore.xml b/doc/en/Gtk/ListStore.xml index a4c65b911..116ff7fcd 100644 --- a/doc/en/Gtk/ListStore.xml +++ b/doc/en/Gtk/ListStore.xml @@ -56,7 +56,7 @@ Iteration: In new versions of Gtk# (2.0 and up) this class implements the - Returns the number of children that has. + Returns the number of children that the toplevel node has. Is used to retrieve the number of rows in the . an object of type , the number of children of . As a special case, if is , then the number @@ -687,7 +687,7 @@ Iteration: In new versions of Gtk# (2.0 and up) this class implements the - a + a To be added. a Sets to be the child of , using the given index. The first index is 0. If is too big, or has no children, is set to an invalid iterator and false is returned. will remain a valid node after this function has been called. As a special case, if is , then the th root node is set. @@ -1562,4 +1562,4 @@ The above example creates a new three columns list store. The types of the colum - + \ No newline at end of file diff --git a/doc/en/Gtk/ProgressBar.xml b/doc/en/Gtk/ProgressBar.xml index 1efb82201..32a2979a3 100644 --- a/doc/en/Gtk/ProgressBar.xml +++ b/doc/en/Gtk/ProgressBar.xml @@ -20,6 +20,50 @@ In this mode, the application is required to call perodically to update the progress bar. There is quite a bit of flexibility provided to control the appearance of the . Functions are provided to control the orientation of the bar, optional text can be displayed along with the bar, and the step size used in activity mode can be set. + +The following example show how percentage mode works + + + +using System; +using Gtk; + +namespace TestGtkAlone +{ + public class TestProgress + { + static Gtk.ProgressBar PBar; + static void Main() + { + Gtk.Application.Init(); + Gtk.Window WinPBar = new Window("Test Progress bar - Percentage mode"); + Gtk.HBox HContainer = new Gtk.HBox(false, 2); + PBar = new ProgressBar(); + Gtk.Button ButtonStart = new Gtk.Button("Start Progress"); + HContainer.Add(PBar); + HContainer.Add(ButtonStart); + ButtonStart.Clicked += new EventHandler(ButtonStart_Clicked); + WinPBar.Add(HContainer); + WinPBar.ShowAll(); + + Gtk.Application.Run(); + } + + public static void ButtonStart_Clicked(object sender, EventArgs args) + { + PBar.Adjustment.Lower = 0; + PBar.Adjustment.Upper = 1000; + while (PBar.Adjustment.Value < PBar.Adjustment.Upper) { + PBar.Adjustment.Value+=1; + } + } + + } + +} + + + @@ -339,4 +383,4 @@ It's marked as obsolete - it's better to use