mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 13:35:38 +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 ();
|
||||
|
@ -247,7 +258,7 @@ class FileSelectionSample
|
|||
<Docs>
|
||||
<summary>The filename selected by this <see cref="T:Gtk.FileSelection" />.</summary>
|
||||
<returns>an object of type <see cref="T:System.String" /></returns>
|
||||
<remarks/>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="FileopEntry">
|
||||
|
@ -271,7 +282,7 @@ class FileSelectionSample
|
|||
<Docs>
|
||||
<summary>The dialog box for confirming actions, if necessary.</summary>
|
||||
<returns>an object of type <see cref="T:Gtk.MessageDialog" /></returns>
|
||||
<remarks/>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="HistoryMenu">
|
||||
|
@ -347,7 +358,7 @@ class FileSelectionSample
|
|||
<Docs>
|
||||
<summary>The text to display about the file to be selected.</summary>
|
||||
<returns>an object of type <see cref="T:Gtk.Label" /></returns>
|
||||
<remarks/>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="SelectionEntry">
|
||||
|
@ -359,7 +370,7 @@ class FileSelectionSample
|
|||
<Docs>
|
||||
<summary>The text-entry widget for entering a filename into.</summary>
|
||||
<returns>an object of type <see cref="T:Gtk.Entry" /></returns>
|
||||
<remarks/>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="FileList">
|
||||
|
|
|
@ -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