diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-07-27 17:33:40 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-07-27 17:33:40 +0400 |
commit | a7ecf2e24f86575d45f40ceddbb67f93fb28a00f (patch) | |
tree | a11b27b650f6f1d69207b0369952fcf4c0360d96 /main | |
parent | 05169ac73899cfe58ca6252e7614dc20ab8a314c (diff) |
Missed one add notification call.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/Frame.cs | 2 | ||||
-rw-r--r-- | main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/NotifyWorkaround.cs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/Frame.cs b/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/Frame.cs index b9b282be5f..a0bc0850f5 100644 --- a/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/Frame.cs +++ b/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/Frame.cs @@ -25,7 +25,7 @@ namespace Stetic.Wrapper { if (frame.LabelWidget != null) ObjectWrapper.Create (proj, frame.LabelWidget); - frame.AddNotification ("label-widget", LabelWidgetChanged); + NotifyWorkaround.AddNotification (frame, "label-widget", LabelWidgetChanged); } void LabelWidgetChanged (object obj, GLib.NotifyArgs args) diff --git a/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/NotifyWorkaround.cs b/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/NotifyWorkaround.cs index 5c8d47c0be..6d8d73a6f3 100644 --- a/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/NotifyWorkaround.cs +++ b/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/NotifyWorkaround.cs @@ -68,6 +68,11 @@ namespace Stetic.Wrapper ConnectNotification (w, "notify", handler); } + public static void AddNotification (GLib.Object w, string property, NotifyHandler handler) + { + ConnectNotification (w, "notify::" + property, handler); + } + static void DisconnectNotification (GLib.Object w, string signal, NotifyHandler handler) { var sig = GLib.Signal.Lookup (w, signal, new NotifyDelegate (NotifyCallback)); |