Mercurial > pidgin.yaz
comparison gtk/gtkplugin.h @ 14725:62366c6a10eb
[gaim-migrate @ 17479]
Make sure plugins are marked not-loadable if their ui-requirement can't be met.
You are going to need to rebuild all the non-core plugins.
The UI specific plugins for Gaim specifies their ui-requirement in the plugin
structure. So it'd make sense to load such plugins only if the ui-requirement
can be met. As it happens, gntgf (a gnt-plugin for gaim-text) can be loaded from
Gaim, which has been reported to have caused Gaim to freeze. gntgf does mark
itself as a gnt-plugin. So I think it should be upto libgaim to make sure
plugins are marked not-loadable if the ui-requirements can not be met.
This commit does exactly that. In doing so, it changes the string plugins
use to specify their ui-requirement (the change is from "gtk" to GAIM_GTK_UI --
which is "gtk-gaim"). So this will require all the non-core plugins to be
rebuilt.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 14 Oct 2006 05:29:11 +0000 |
parents | 009db0b357b5 |
children |
comparison
equal
deleted
inserted
replaced
14724:d9bd8925efcc | 14725:62366c6a10eb |
---|---|
38 GtkWidget *(*get_config_frame)(GaimPlugin *plugin); | 38 GtkWidget *(*get_config_frame)(GaimPlugin *plugin); |
39 | 39 |
40 int page_num; /**< Reserved */ | 40 int page_num; /**< Reserved */ |
41 }; | 41 }; |
42 | 42 |
43 #define GAIM_GTK_PLUGIN_TYPE "gtk" | 43 #define GAIM_GTK_PLUGIN_TYPE GAIM_GTK_UI |
44 | 44 |
45 #define GAIM_IS_GTK_PLUGIN(plugin) \ | 45 #define GAIM_IS_GTK_PLUGIN(plugin) \ |
46 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ | 46 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
47 !strcmp((plugin)->info->ui_requirement, GAIM_GTK_PLUGIN_TYPE)) | 47 !strcmp((plugin)->info->ui_requirement, GAIM_GTK_PLUGIN_TYPE)) |
48 | 48 |