| Top |
gboolean baul_widget_view_provider_supports_uri (BaulWidgetViewProvider *provider,const char *uri,GFileType file_type,const char *mime_type);
Whether this widget view works for the uri.
CtkWidget *
baul_widget_view_provider_get_widget (BaulWidgetViewProvider *provider);
Return a CtkWidget to show the current location content.
void baul_widget_view_provider_set_location (BaulWidgetViewProvider *provider,const char *location);
Set the location of this BaulWidgetViewProvider.
void baul_widget_view_provider_set_window (BaulWidgetViewProvider *provider,CtkWindow *window);
Set parent CtkWindow of this BaulWidgetViewProvider.
void baul_widget_view_provider_add_file (BaulWidgetViewProvider *provider,BaulFile *file,BaulFile *directory);
Add a file of this location into the widget view.
gchar *
baul_widget_view_provider_get_first_visible_file
(BaulWidgetViewProvider *provider);
Return the first visible file. When use start visit the location, the baul's status is waiting, until get the first visible file.
guint
baul_widget_view_provider_get_item_count
(BaulWidgetViewProvider *provider);
void
baul_widget_view_provider_clear (BaulWidgetViewProvider *provider);
Clear the content of this widget view.
struct BaulWidgetViewProviderIface {
GTypeInterface g_iface;
gboolean (*supports_uri) (BaulWidgetViewProvider *provider,
const char *uri,
GFileType file_type,
const char *mime_type);
CtkWidget* (*get_widget) (BaulWidgetViewProvider *provider);
void (*add_file) (BaulWidgetViewProvider *provider, BaulFile *file, BaulFile *directory);
void (*set_location) (BaulWidgetViewProvider *provider, const char *location);
void (*set_window) (BaulWidgetViewProvider *provider, CtkWindow *window);
guint (*get_item_count) (BaulWidgetViewProvider *provider);
gchar* (*get_first_visible_file) (BaulWidgetViewProvider *provider);
void (*clear) (BaulWidgetViewProvider *provider);
};
Interface for extensions to provide widgets view for content.
Whether this extension works for this uri |
||
Returns a CtkWidget.
See |
||
Adds a file to this widget view. |
||
Set location to this widget view. |
||
Set the main window to this widget view. |
||
Return the item count of this widget view. |
||
Return the first visible file from this widget view. |
||
Clear items in this widget view. |