コード例 #1
0
ファイル: MainWindow.cs プロジェクト: cr3a70r/DGLE2
    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        Build();

        // nonclient window border width
        uint borderWidth = 4;

        this.eventboxClient.BorderWidth = borderWidth;
        // init resizing hepler with gtk window and border widget
        _sizingHelper = new GuiWidgets.SizingHelper(this, this.eventboxNonClient, true, borderWidth);
        // Uncheck in window property or in code directly
        this.Decorated = false;

        about_win.Modal        = true;
        about_win.TransientFor = this;
        about_win.Hide();

        string[] paths = Gtk.Rc.DefaultFiles;
        foreach (string path in paths)
        {
            this.textview3.Buffer.Text += Environment.NewLine + path;
        }

        this.textview3.Buffer.Text += Environment.NewLine + Gtk.Settings.Default.ThemeName;
        this.textview3.Buffer.Text += Environment.NewLine + Gtk.Settings.Default.KeyThemeName;
    }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: cr3a70r/DGLE2
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build();

        // nonclient window border width
        uint borderWidth = 4;
        this.eventboxClient.BorderWidth = borderWidth;
        // init resizing hepler with gtk window and border widget
        _sizingHelper = new GuiWidgets.SizingHelper(this, this.eventboxNonClient, true, borderWidth);
        // Uncheck in window property or in code directly
        this.Decorated = false;

        about_win.Modal = true;
        about_win.TransientFor = this;
        about_win.Hide();

        string[] paths = Gtk.Rc.DefaultFiles;
        foreach (string path in paths) {
            this.textview3.Buffer.Text += Environment.NewLine + path;
        }

        this.textview3.Buffer.Text += Environment.NewLine + Gtk.Settings.Default.ThemeName;
        this.textview3.Buffer.Text += Environment.NewLine + Gtk.Settings.Default.KeyThemeName;
    }