public override void Wrap(object obj, bool initialized)
        {
            base.Wrap(obj, initialized);
            if (!initialized)
            {
                frame.Label = "<b>" + frame.Name + "</b>";
                ((Gtk.Label)frame.LabelWidget).UseMarkup = true;
                frame.Shadow = Gtk.ShadowType.None;
                if (AllowPlaceholders)
                {
                    Gtk.Alignment align = new Gtk.Alignment(0, 0, 1, 1);
                    align.LeftPadding = 12;
                    Container align_wrapper = (Container)ObjectWrapper.Create(proj, align);
                    align_wrapper.AddPlaceholder();
                    ReplaceChild(frame.Child, (Gtk.Widget)align_wrapper.Wrapped, true);
                }
            }

            if (frame.LabelWidget != null)
            {
                ObjectWrapper.Create(proj, frame.LabelWidget);
            }
            NotifyWorkaround.AddNotification(frame, "label-widget", LabelWidgetChanged);
        }
 public override void Wrap(object obj, bool initialized)
 {
     base.Wrap(obj, initialized);
     NotifyWorkaround.AddNotification(((Gtk.Scale)Wrapped).Adjustment, AdjustmentNotifyHandler);
 }
Example #3
0
 internal protected override void OnDesignerAttach(IDesignArea designer)
 {
     base.OnDesignerAttach(designer);
     NotifyWorkaround.AddNotification((GLib.Object)Wrapped, NotifyHandler);
 }