Esempio n. 1
0
 public override void Dispose()
 {
     if (Wrapped == null)
     {
         return;
     }
     NotifyWorkaround.RemoveNotification((GLib.Object)Wrapped, NotifyHandler);
     base.Dispose();
 }
        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);
 }
 public override void Dispose()
 {
     NotifyWorkaround.RemoveNotification(((Gtk.Scale)Wrapped).Adjustment, AdjustmentNotifyHandler);
     base.Dispose();
 }
Esempio n. 5
0
 internal protected override void OnDesignerDetach(IDesignArea designer)
 {
     base.OnDesignerDetach(designer);
     NotifyWorkaround.RemoveNotification((GLib.Object)Wrapped, NotifyHandler);
 }