Mercurial > pidgin.yaz
diff console/gntplugin.h @ 14139:44ec6c7cbc76
[gaim-migrate @ 16781]
Allow setting the preferences for gnt-plugins.
Add a guifications-like plugin for gntgaim. You can set its preferences.
The preferences for core plugins are still not accessible.
The makefile-foo will require changes once the split is complete. I am now
just committing whatever works for me.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 16 Aug 2006 05:12:48 +0000 |
parents | 7573bd40a190 |
children | c65ed4f6eea8 |
line wrap: on
line diff
--- a/console/gntplugin.h Wed Aug 16 04:50:27 2006 +0000 +++ b/console/gntplugin.h Wed Aug 16 05:12:48 2006 +0000 @@ -1,5 +1,21 @@ +#include <gnt.h> + #include <plugin.h> +#include <string.h> + +typedef GntWidget* (*GGPluginFrame) (); + +/* Guess where these came from */ +#define GAIM_GNT_PLUGIN_TYPE "gnt" + +#define GAIM_IS_GNT_PLUGIN(plugin) \ + ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ + !strcmp((plugin)->info->ui_requirement, GAIM_GNT_PLUGIN_TYPE)) + +#define GAIM_GNT_PLUGIN_UI_INFO(plugin) \ + (GGPluginFrame)((plugin)->info->ui_info) + void gg_plugins_show_all(); void gg_plugins_save_loaded();