mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 20:25:41 +00:00
Contributions from ddollar@blueshiftdesign.com and bis0n@mail.ru
svn path=/trunk/gtk-sharp/; revision=35651
This commit is contained in:
parent
cac3c4a368
commit
fe6aad5317
|
@ -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 ();
|
||||
|
|
|
@ -442,7 +442,7 @@
|
|||
<Docs>
|
||||
<summary>
|
||||
Calls <see cref="M:Gtk.TextTagTable.Lookup(System.String)" /> on the buffer's tag table to get a <see cref="T:Gtk.TextTag" />, then calls
|
||||
<see cref="Gtk.TextBuffer.RemoveTag((Gtk.TextTag,Gtk.TextIter,Gtk.TextIter)" /></summary>
|
||||
<see cref="M:Gtk.TextBuffer.RemoveTag(Gtk.TextTag,Gtk.TextIter,Gtk.TextIter)" /></summary>
|
||||
<param name="name">the name of the tag</param>
|
||||
<param name="start">the beginning of the buffer to be untagged</param>
|
||||
<param name="end">the end of the buffer to be untagged</param>
|
||||
|
@ -764,7 +764,7 @@
|
|||
<returns>a string containing the text from the specified range</returns>
|
||||
<remarks>
|
||||
<para>
|
||||
Returns the text in the range specified by <paramref name="start" /> and <paramref name="end" />. Excludes
|
||||
Returns the text in the range specified by <see paremref="start" /> and <see paremref="end" />. Excludes
|
||||
undisplayed text (text marked with tags that set the
|
||||
invisibility attribute) if <paramref name="include_hidden_chars" /> is <see langword="false" />. Does not include characters
|
||||
representing embedded images, so byte and character
|
||||
|
@ -772,7 +772,7 @@
|
|||
and character indexes into the buffer.
|
||||
</para>
|
||||
<para>
|
||||
Contrast this with <see cref="Gtk.TextBuffer.GetSlice(Gtk.TextIter,Gtk.TextIter,
 System.Boolean)" />.
|
||||
Contrast this with <see cref="M:Gtk.TextBuffer.GetSlice(Gtk.TextIter,Gtk.TextIter,System.Boolean)" />.
|
||||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
|
|
Loading…
Reference in a new issue