Interface
CajaWidgetViewProvider
unstable since: 2.0
Prerequisite
In order to implement WidgetViewProvider, your type must inherit fromGObject.
Instance methods
caja_widget_view_provider_add_file
Add a file of this location into the widget view.
unstable since: 2.0
caja_widget_view_provider_get_first_visible_file
Return the first visible file. When use start visit the location, the caja’s status is waiting, until get the first visible file.
unstable since: 2.0
caja_widget_view_provider_get_widget
Return a GtkWidget to show the current location content.
unstable since: 2.0
caja_widget_view_provider_set_location
Set the location of this CajaWidgetViewProvider.
unstable since: 2.0
caja_widget_view_provider_set_window
Set parent GtkWindow of this CajaWidgetViewProvider.
unstable since: 2.0
caja_widget_view_provider_supports_uri
Whether this widget view works for the uri.
unstable since: 2.0
Interface structure
struct CajaWidgetViewProviderIface {
GTypeInterface g_iface;
gboolean (* supports_uri) (
CajaWidgetViewProvider* provider,
const char* uri,
GFileType file_type,
const char* mime_type
);
GtkWidget* (* get_widget) (
CajaWidgetViewProvider* provider
);
void (* add_file) (
CajaWidgetViewProvider* provider,
CajaFile* file,
CajaFile* directory
);
void (* set_location) (
CajaWidgetViewProvider* provider,
const char* location
);
void (* set_window) (
CajaWidgetViewProvider* provider,
GtkWindow* window
);
guint (* get_item_count) (
CajaWidgetViewProvider* provider
);
gchar* (* get_first_visible_file) (
CajaWidgetViewProvider* provider
);
void (* clear) (
CajaWidgetViewProvider* provider
);
}
Interface for extensions to provide widgets view for content.
Interface members
g_iface |
|
| No description available. | |
supports_uri |
|
Whether this extension works for this uri. |
|
get_widget |
|
Returns a |
|
add_file |
|
Adds a file to this widget view. |
|
set_location |
|
Set location to this widget view. |
|
set_window |
|
Set the main window to this widget view. |
|
get_item_count |
|
Return the item count of this widget view. |
|
get_first_visible_file |
|
Return the first visible file from this widget view. |
|
clear |
|
Clear items in this widget view. |
Virtual methods
Caja.WidgetViewProvider.add_file
Add a file of this location into the widget view.
unstable since: 2.0
Caja.WidgetViewProvider.get_first_visible_file
Return the first visible file. When use start visit the location, the caja’s status is waiting, until get the first visible file.
unstable since: 2.0
Caja.WidgetViewProvider.get_item_count
Return the item count of this widget view.
unstable since: 2.0
Caja.WidgetViewProvider.get_widget
Return a GtkWidget to show the current location content.
unstable since: 2.0
Caja.WidgetViewProvider.set_location
Set the location of this CajaWidgetViewProvider.
unstable since: 2.0
Caja.WidgetViewProvider.set_window
Set parent GtkWindow of this CajaWidgetViewProvider.
unstable since: 2.0
Caja.WidgetViewProvider.supports_uri
Whether this widget view works for the uri.
unstable since: 2.0