diff options
author | Garrett Regier <alias301@gmail.com> | 2011-02-09 22:33:56 -0800 |
---|---|---|
committer | Garrett Regier <alias301@gmail.com> | 2011-02-10 16:27:32 -0800 |
commit | a1bc5e801d539caf3c197cc68de934cd218f17ee (patch) | |
tree | 5bfabbbb11bfbe07977573c119029a383783860f /libpeas/peas-plugin-info.h | |
parent | ae30f06cffabdc049d58876a2e8eae429343a163 (diff) | |
download | libpeas-a1bc5e801d539caf3c197cc68de934cd218f17ee.tar.gz |
Show a tooltip for unavailable plugins
https://bugzilla.gnome.org/show_bug.cgi?id=511672
Diffstat (limited to 'libpeas/peas-plugin-info.h')
-rw-r--r-- | libpeas/peas-plugin-info.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/libpeas/peas-plugin-info.h b/libpeas/peas-plugin-info.h index 0dfe8ed..249d2d3 100644 --- a/libpeas/peas-plugin-info.h +++ b/libpeas/peas-plugin-info.h @@ -31,6 +31,33 @@ G_BEGIN_DECLS #define PEAS_PLUGIN_INFO(obj) ((PeasPluginInfo *) (obj)) /** + * PEAS_PLUGIN_INFO_ERROR: + * + * Error domain for PeasPluginInfo. Errors in this domain will + * be from the PeasPluginInfoError enumeration. See GError for + * more information on error domains. + */ +#define PEAS_PLUGIN_INFO_ERROR peas_plugin_info_error_quark () + +/** + * PeasPluginInfoError: + * @PEAS_PLUGIN_INFO_ERROR_LOADING_FAILED: + * The plugin failed to load. + * @PEAS_PLUGIN_INFO_ERROR_LOADER_NOT_FOUND: + * The plugin's loader was not found. + * @PEAS_PLUGIN_INFO_ERROR_DEP_NOT_FOUND: + * A dependancy of the plugin was not found. + * @PEAS_PLUGIN_INFO_ERROR_DEP_LOADING_FAILED: + * A dependancy of the plugin failed to load. + */ +typedef enum { + PEAS_PLUGIN_INFO_ERROR_LOADING_FAILED, + PEAS_PLUGIN_INFO_ERROR_LOADER_NOT_FOUND, + PEAS_PLUGIN_INFO_ERROR_DEP_NOT_FOUND, + PEAS_PLUGIN_INFO_ERROR_DEP_LOADING_FAILED +} PeasPluginInfoError; + +/** * PeasPluginInfo: * * The #PeasPluginInfo structure contains only private data and should only @@ -39,9 +66,11 @@ G_BEGIN_DECLS typedef struct _PeasPluginInfo PeasPluginInfo; GType peas_plugin_info_get_type (void) G_GNUC_CONST; +GQuark peas_plugin_info_error_quark (void); gboolean peas_plugin_info_is_loaded (const PeasPluginInfo *info); -gboolean peas_plugin_info_is_available (const PeasPluginInfo *info); +gboolean peas_plugin_info_is_available (const PeasPluginInfo *info, + GError **error); gboolean peas_plugin_info_is_builtin (const PeasPluginInfo *info); const gchar *peas_plugin_info_get_module_name (const PeasPluginInfo *info); |