示例#1
0
        public override void SetMinSize(int width, int height)
        {
            Gdk.Geometry g   = new Gdk.Geometry();
            var          dec = GetDecorationSize();

            g.MinWidth  = width - dec.Horizontal; //note: gtks size functions are in client area
            g.MinHeight = height - dec.Vertical;
            window.SetGeometryHints(window, g, Gdk.WindowHints.MinSize);
        }