| Top |
#define NST_INIT_PLUGIN(plugininfo)
Call this on an NstPluginInfo structure to make it available to caja-sendto.
struct NstPluginInfo {
gchar *icon;
gchar *id;
gchar *description;
gchar *gettext_package;
NstPluginCapabilities capabilities;
gboolean (*init) (NstPlugin *plugin);
GtkWidget* (*get_contacts_widget) (NstPlugin *plugin);
gboolean (*validate_destination) (NstPlugin *plugin, GtkWidget *contact_widget, char **error);
gboolean (*send_files) (NstPlugin *plugin,
GtkWidget *contact_widget,
GList *file_list);
gboolean (*destroy) (NstPlugin *plugin) ;
};
A structure representing a caja-sendto plugin. You should also call NST_INIT_PLUGIN() on the plugin structure to export it.
The icon name for the plugin selection drop-down |
||
A unique ID representing the plugin |
||
The label used in the plugin selection drop-down |
||
The domain to use to translate the description, |
||
NstPluginCapabilities |
a bitmask of NstPluginCapabilities |
|
Check for dependencies, and return |
||
Return the contact widget, the widget to select the destination of the files |
||
Validate whether the destination can receive the file. This callback is optional. |
||
Actually send the files to the selected destination. The file list is a GList of URI strings. |
||
Free all the resources used by the plugin. |
struct NstPlugin {
GModule *module;
NstPluginInfo *info;
};
A structure as used in caja-sendto.