diff options
author | TingPing <tingping@tingping.se> | 2014-01-16 00:58:04 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-01-16 00:58:04 -0500 |
commit | eb29de1c7c77daf9ff073c40e0e9b6ab74962df6 (patch) | |
tree | af28cdbd7fd4279ad4b316a9122a63c69ff97967 /src/fe-gtk/menu.c | |
parent | 0297da4d6e2cb4513aa3d864c6218b5b8b11ec68 (diff) |
Show a popup when opening plugin window when built without support
Diffstat (limited to 'src/fe-gtk/menu.c')
-rw-r--r-- | src/fe-gtk/menu.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c index 824828b3..0a020fec 100644 --- a/src/fe-gtk/menu.c +++ b/src/fe-gtk/menu.c @@ -1421,8 +1421,14 @@ menu_pluginlist (void) #else -#define menu_pluginlist 0 -#define menu_loadplugin 0 +static void +menu_noplugin_info (void) +{ + fe_message (_(DISPLAY_NAME " has been build without plugin support."), FE_MSG_INFO); +} + +#define menu_loadplugin menu_noplugin_info +#define menu_pluginlist menu_noplugin_info #endif @@ -1712,11 +1718,7 @@ static struct mymenu mymenu[] = { {0, 0, 0, M_END, 0, 0, 0}, {0, 0, 0, M_SEP, 0, 0, 0}, -#ifdef USE_PLUGIN {N_("_Load Plugin or Script..."), menu_loadplugin, GTK_STOCK_REVERT_TO_SAVED, M_MENUSTOCK, 0, 0, 1}, -#else - {N_("_Load Plugin or Script..."), 0, GTK_STOCK_REVERT_TO_SAVED, M_MENUSTOCK, 0, 0, 0}, -#endif {0, 0, 0, M_SEP, 0, 0, 0}, /* 11 */ #define DETACH_OFFSET (12) {0, menu_detach, GTK_STOCK_REDO, M_MENUSTOCK, 0, 0, 1}, /* 12 */ |