Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2011-11-10 23:49:59 +0400
committerLluis Sanchez <lluis@xamarin.com>2011-11-10 23:49:59 +0400
commit33b06f4e6cbcae44491c3c33d73539644cb189d8 (patch)
treec96a0c4ed828bc9f0effcaf1e8afd9dac0ce848c /Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
parent61c3bf5af3fe0018af7d5c228eb5d3ab6cee235e (diff)
Simplified widget hierarchy. Implemented ComboBox
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs')
-rwxr-xr-xXwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
index ef374b81..11452e96 100755
--- a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
@@ -29,7 +29,7 @@ using Xwt.Backends;
namespace Xwt.GtkBackend
{
- class ButtonBackend<T,S>: WidgetBackend<T,S>, IButtonBackend where T:Gtk.Button where S:IButtonEventSink
+ class ButtonBackend: WidgetBackend, IButtonBackend
{
public ButtonBackend ()
{
@@ -37,9 +37,18 @@ namespace Xwt.GtkBackend
public override void Initialize ()
{
- Widget = (T) new Gtk.Button ();
+ Widget = new Gtk.Button ();
Widget.Show ();
}
+
+ protected new Gtk.Button Widget {
+ get { return (Gtk.Button)base.Widget; }
+ set { base.Widget = value; }
+ }
+
+ protected new IButtonEventSink EventSink {
+ get { return (IButtonEventSink)base.EventSink; }
+ }
public void SetContent (string label, object imageBackend)
{