summaryrefslogtreecommitdiff
path: root/libcaja-extension/caja-widget-view-provider.h
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-31 16:51:14 +0800
committerraveit65 <[email protected]>2022-07-20 21:40:42 +0200
commitfc8b2d8e076086b8943db496af5cb2ef6f0b610f (patch)
tree56c38995d0badcad5a52d4da758f6ff70637b529 /libcaja-extension/caja-widget-view-provider.h
parent67eea2e0711ec51b919c9abcdde0f0abc4071538 (diff)
downloadcaja-fc8b2d8e076086b8943db496af5cb2ef6f0b610f.tar.bz2
caja-fc8b2d8e076086b8943db496af5cb2ef6f0b610f.tar.xz
add new interface
Diffstat (limited to 'libcaja-extension/caja-widget-view-provider.h')
-rw-r--r--libcaja-extension/caja-widget-view-provider.h53
1 files changed, 29 insertions, 24 deletions
diff --git a/libcaja-extension/caja-widget-view-provider.h b/libcaja-extension/caja-widget-view-provider.h
index 1bd21a5f..e232d3b8 100644
--- a/libcaja-extension/caja-widget-view-provider.h
+++ b/libcaja-extension/caja-widget-view-provider.h
@@ -1,9 +1,8 @@
/* vi: set sw=4 ts=4 wrap ai: */
/*
- * caja-widget-view-provider.h: This file is part of ____
- *
- * Copyright (C) 2019 yetist <yetist@yetipc>
+ * caja-widget-view-provider.h: This file is part of caja.
*
+ * Copyright (C) 2019 Wu Xiaotian <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -49,31 +48,37 @@ typedef struct _CajaWidgetViewProviderIface CajaWidgetViewProviderIface;
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);
+ 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 Functions */
-GType caja_widget_view_provider_get_type (void);
+GType caja_widget_view_provider_get_type (void);
-GtkWidget *caja_widget_view_provider_get_widget (CajaWidgetViewProvider *provider);
-void caja_widget_view_provider_add_file (CajaWidgetViewProvider *provider,
- CajaFile *file,
- CajaFile *directory);
-void caja_widget_view_provider_set_location (CajaWidgetViewProvider *provider,
- const char *location);
-void caja_widget_view_provider_set_window (CajaWidgetViewProvider *provider,
- GtkWindow *window);
-gboolean caja_widget_view_provider_supports_uri (CajaWidgetViewProvider *provider,
- const char *uri,
- GFileType file_type,
- const char *mime_type);
+GtkWidget *caja_widget_view_provider_get_widget (CajaWidgetViewProvider *provider);
+void caja_widget_view_provider_add_file (CajaWidgetViewProvider *provider,
+ CajaFile *file,
+ CajaFile *directory);
+void caja_widget_view_provider_set_location (CajaWidgetViewProvider *provider,
+ const char *location);
+void caja_widget_view_provider_set_window (CajaWidgetViewProvider *provider,
+ GtkWindow *window);
+guint caja_widget_view_provider_get_item_count (CajaWidgetViewProvider *provider);
+gchar* caja_widget_view_provider_get_first_visible_file (CajaWidgetViewProvider *provider);
+void caja_widget_view_provider_clear (CajaWidgetViewProvider *provider);
+gboolean caja_widget_view_provider_supports_uri (CajaWidgetViewProvider *provider,
+ const char *uri,
+ GFileType file_type,
+ const char *mime_type);
G_END_DECLS
#endif /* __CAJA_WIDGET_VIEW_PROVIDER_H__ */