From fe6aad5317ac014906079b4e7287234092d2dc90 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 4 Nov 2004 19:34:16 +0000 Subject: [PATCH] Contributions from ddollar@blueshiftdesign.com and bis0n@mail.ru svn path=/trunk/gtk-sharp/; revision=35651 --- doc/en/Gtk/FileSelection.xml | 27 +++++++++++++++++++-------- doc/en/Gtk/TextBuffer.xml | 8 ++++---- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/doc/en/Gtk/FileSelection.xml b/doc/en/Gtk/FileSelection.xml index 636b20d89..e758c774a 100644 --- a/doc/en/Gtk/FileSelection.xml +++ b/doc/en/Gtk/FileSelection.xml @@ -30,6 +30,7 @@ using Gtk; class FileSelectionSample { Label lbl; + FileSelection fs; static void Main () { @@ -49,18 +50,28 @@ class FileSelectionSample vbox.Add (btn); lbl = new Label ("Selected: "); vbox.Add (lbl); - win.ShowAll (); + win.ShowAll () + + fs = new FileSelection ("Choose a file"); + fs.Response += new ResponseHandler (OnFileSelectionResponse); + Application.Run (); } void OnButtonClicked (object o, EventArgs args) { - FileSelection fs = new FileSelection ("Choose a file"); fs.Run (); - lbl.Text = "Selected: " + fs.SelectionEntry.Text; fs.Hide (); } + void OnFileSelectionResponse (object o, ResponseArgs args) + { + if (args.ResponseId == ResponseType.Ok) + { + lbl.Text = "Selected: " + fs.Filename; + } + } + void OnWinDelete (object o, DeleteEventArgs args) { Application.Quit (); @@ -247,7 +258,7 @@ class FileSelectionSample The filename selected by this . an object of type - + @@ -271,7 +282,7 @@ class FileSelectionSample The dialog box for confirming actions, if necessary. an object of type - + @@ -347,7 +358,7 @@ class FileSelectionSample The text to display about the file to be selected. an object of type - + @@ -359,7 +370,7 @@ class FileSelectionSample The text-entry widget for entering a filename into. an object of type - + @@ -477,4 +488,4 @@ class FileSelectionSample - + \ No newline at end of file diff --git a/doc/en/Gtk/TextBuffer.xml b/doc/en/Gtk/TextBuffer.xml index 9c4d8cb04..4c5e8dc32 100644 --- a/doc/en/Gtk/TextBuffer.xml +++ b/doc/en/Gtk/TextBuffer.xml @@ -442,7 +442,7 @@ Calls on the buffer's tag table to get a , then calls - + the name of the tag the beginning of the buffer to be untagged the end of the buffer to be untagged @@ -764,7 +764,7 @@ a string containing the text from the specified range - Returns the text in the range specified by and . Excludes + Returns the text in the range specified by and . Excludes undisplayed text (text marked with tags that set the invisibility attribute) if is . Does not include characters representing embedded images, so byte and character @@ -772,7 +772,7 @@ and character indexes into the buffer. - Contrast this with . + Contrast this with . @@ -1665,4 +1665,4 @@ - + \ No newline at end of file