Esempio n. 1
0
        TreeViewColumn CreateTemplateCategoriesTreeViewColumn()
        {
            var column = new TreeViewColumn();

            categoryTextRenderer      = new GtkTemplateCategoryCellRenderer();
            categoryTextRenderer.Xpad = 17;
            categoryTextRenderer.Ypad = 0;
            categoryTextRenderer.CellBackgroundGdk = categoriesBackgroundColor;

            column.PackStart(categoryTextRenderer, true);
            column.AddAttribute(categoryTextRenderer, "markup", column: 0);

            column.SetCellDataFunc(categoryTextRenderer, SetTemplateCategoryCellData);

            return(column);
        }
		TreeViewColumn CreateTemplateCategoriesTreeViewColumn ()
		{
			var column = new TreeViewColumn ();

			categoryTextRenderer = new GtkTemplateCategoryCellRenderer ();
			categoryTextRenderer.Xpad = 17;
			categoryTextRenderer.Ypad = 0;
			categoryTextRenderer.CellBackgroundGdk = categoriesBackgroundColor;

			column.PackStart (categoryTextRenderer, true);
			column.AddAttribute (categoryTextRenderer, "markup", column: 0);

			column.SetCellDataFunc (categoryTextRenderer, SetTemplateCategoryCellData);

			return column;
		}