diff options
author | Jeremie Laval <jeremie.laval@gmail.com> | 2012-07-26 18:37:38 +0400 |
---|---|---|
committer | Jeremie Laval <jeremie.laval@gmail.com> | 2012-07-26 19:41:53 +0400 |
commit | 4fbaff92dcb45b9980b3de0ba2a5b9099f1ddfb1 (patch) | |
tree | ef74d45a1a522bbe2b0bbf22efb8ff5130c68069 /Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs | |
parent | f49902c09a17101f4c4e6a62f782da43cf092bc8 (diff) |
Remove staticness from WidgetRegistry.
This allow to have different registry instance for different toolkit and to use them at the same time. The staticness is still present through a static property in WidgetRegistry giving the "main" registry.
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs')
-rwxr-xr-x | Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs index f7c1604d..dabbebd5 100755 --- a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs +++ b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs @@ -136,7 +136,7 @@ namespace Xwt.GtkBackend public void SetButtonType (ButtonType type) { Button b = (Button) Frontend; - SetContent (b.Label, WidgetRegistry.GetBackend (b.Image), b.ImagePosition); + SetContent (b.Label, WidgetRegistry.MainRegistry.GetBackend (b.Image), b.ImagePosition); } public override void EnableEvent (object eventId) |