Пример #1
0
        public PropertyDialog(int width, bool canAccept = true) : base(WindowType.Toplevel)
        {
            Init();
            WidthRequest = width;

            if (!canAccept)
            {
                buttonYes.Hide();
            }

#if FAMISTUDIO_LINUX
            TransientFor = FamiStudioForm.Instance;
#endif
            SetPosition(WindowPosition.CenterOnParent);
        }
Пример #2
0
        public PropertyDialog(int width, bool canAccept = true, bool canCancel = true, Window parent = null) : base(WindowType.Toplevel)
        {
            Init();
            WidthRequest = GtkUtils.ScaleGtkWidget(width);

            if (!canAccept)
            {
                buttonYes.Hide();
            }
            if (!canCancel)
            {
                buttonNo.Hide();
            }

            TransientFor = parent != null ? parent : FamiStudioForm.Instance;
            SetPosition(WindowPosition.CenterOnParent);
        }