4
@returns columns to show
5
@rtype a sequence of nautilus.Column
9
def get_file_items(self, window, files):
11
@param window the window it was sent from
12
@type window gtk.Window
13
@param files selected files
14
@type files list of nautilus.FileInfo
15
@returns menu items to show
16
@rtype a sequence of nautilus.MenuItems
19
def get_background_items(self, window, file):
21
@param window the window it was sent from
22
@type window gtk.Window
23
@param file file that was clicked on
24
@type file nautilus.FileInfo
25
@returns menu items to show
26
@rtype a sequence of nautilus.MenuItems
29
def get_toolbar_items(self, window, file):
31
@param window the window it was sent from
32
@type window gtk.Window
33
@param file file that was clicked on
34
@type file nautilus.FileInfo
35
@returns menu items to show
36
@rtype a sequence of nautilus.MenuItems
39
class PropertyPageProvider:
40
def get_property_pages(self, files):
42
@param files selected files
43
@type files list of nautilus.FileInfo
44
@returns property pages to show
45
@rtype a sequence of nautilus.PropertyPage
47
Creates a property page for files
51
def update_file_info(self, file):
53
@param file selected file
54
@type file list of nautilus.FileInfo
56
This is used to update data for file, use the set_data method,
57
and use together with the other extensions
61
def append(self, menu_item):
63
@type menu_item nautilus.MenuItem
69
@rtype list of nautilus.MenuItem
76
name (string) - the identifier for the menu item
77
label (string) - the user-visible label of the menu item
78
tip (string) - the tooltip of the menu item
79
icon (string) - the name of the icon to display in the menu item
80
sensitive (boolean) - whether the menu item is sensitive or not
81
priority (boolean) - used for toolbar items, whether to show priority
87
def __init__(self, name, label, tip, icon=None):
93
def set_submenu(self, menu):
95
@type menu nautilus.Menu
102
name (string) - the identifier for the column
103
attribute (string) - the file attribute to be displayed in the
105
label (string) - the user-visible label for the column
106
description (string) - a user-visible description of the column
107
xalign (float) - x-alignment of the column
110
def __init__(self, name, attribute, label, description):
120
def get_file_type(self):
122
@rtype gio FileType enum
126
def get_location(self):
144
def get_activation_uri(self):
150
def get_parent_location(self):
156
def get_parent_uri(self):
168
def get_uri_scheme(self):
174
def get_mime_type(self):
180
def is_mime_type(self, mime_type):
182
@type mime_type string
187
def is_directory(self):
199
def add_emblem(self, emblem):
205
def get_string_attribute(self, attribute_name):
211
def add_string_attribute(self, attribute_name, value):
217
def invalidate_extension_info(self):
226
name (string) - the identifier for the property page
227
label (widget) - the user-visible label of the property page
228
page (widget) - the property page to display
231
def __init__(self, name, label, page):