コード例 #1
0
 public StandardHeaderPolicyPanelWidget(StandardHeaderPolicyPanel parent)
 {
     this.parent = parent;
     this.Build();
     headerText.Buffer.Changed += NotifyChanged;
     includeAutoCheck.Toggled  += NotifyChanged;
 }
コード例 #2
0
        internal StandardHeaderPolicyPanelWidget(StandardHeaderPolicyPanel parent)
        {
            this.parent = parent;
            this.Build();
            headerText.Buffer.Changed += NotifyChanged;
            includeAutoCheck.Toggled  += NotifyChanged;
            this.treeviewTemplates.AppendColumn(GettextCatalog.GetString("Templates"), new CellRendererText(), "text", 0);
            foreach (var template in templates)
            {
                store.AppendValues("${" + template + "}");
            }
            this.treeviewTemplates.Model    = store;
            treeviewTemplates.RowActivated += TreeviewTemplates_RowActivated;
            var w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.GtkScrolledWindow1]));

            w4.Expand = false;
            treeviewTemplates.WidthRequest = 200;
            treeviewTemplates.QueueResize();
        }