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:
authorJeremie Laval <jeremie.laval@gmail.com>2012-07-26 18:37:38 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-07-26 19:41:53 +0400
commit4fbaff92dcb45b9980b3de0ba2a5b9099f1ddfb1 (patch)
treeef74d45a1a522bbe2b0bbf22efb8ff5130c68069 /Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
parentf49902c09a17101f4c4e6a62f782da43cf092bc8 (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-xXwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs2
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)