diff options
Diffstat (limited to 'examples/block-size-column.py')
-rw-r--r-- | examples/block-size-column.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/block-size-column.py b/examples/block-size-column.py index 6f94158..3fd64ce 100644 --- a/examples/block-size-column.py +++ b/examples/block-size-column.py @@ -1,17 +1,17 @@ import os import urllib -import caja +from gi.repository import GObject, Caja -class ColumnExtension(caja.ColumnProvider, caja.InfoProvider): +class ColumnExtension(GObject.GObject, Caja.ColumnProvider, Caja.InfoProvider): def __init__(self): pass def get_columns(self): - return caja.Column("CajaPython::block_size_column", - "block_size", - "Block size", - "Get the block size"), + return Caja.Column(name="CajaPython::block_size_column", + attribute="block_size", + label="Block size", + description="Get the block size"), def update_file_info(self, file): if file.get_uri_scheme() != 'file': |