Browse files

Allow HasFocus to be overwritten

svn path=/trunk/mono-curses/; revision=144349
  • Loading branch information...
1 parent c1e3190 commit 164364fc051b7aa8d8c080be227a936a07606bdc @migueldeicaza migueldeicaza committed Oct 19, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 docs/Mono.Terminal/Widget.xml
  2. +2 −2 gui.cs
View
2 docs/Mono.Terminal/Widget.xml
@@ -365,7 +365,7 @@
</AssemblyInfo>
</Member>
<Member MemberName="HasFocus">
- <MemberSignature Language="C#" Value="public bool HasFocus { set; get; }" />
+ <MemberSignature Language="C#" Value="public virtual bool HasFocus { set; get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
View
4 gui.cs
@@ -164,7 +164,7 @@ public Widget (int x, int y, int w, int h)
/// the current focus status can be inquired by using this property.
/// </para>
/// </remarks>
- public bool HasFocus {
+ public virtual bool HasFocus {
get {
return has_focus;
}
@@ -1623,7 +1623,7 @@ public bool FocusNext ()
{
if (focused == null){
FocusFirst ();
- return true;
+ return focused != null;
}
int n = widgets.Count;
int focused_idx = -1;

0 comments on commit 164364f

Please sign in to comment.