summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-01-16 00:58:04 -0500
committerTingPing <tingping@tingping.se>2014-01-16 00:58:04 -0500
commiteb29de1c7c77daf9ff073c40e0e9b6ab74962df6 (patch)
treeaf28cdbd7fd4279ad4b316a9122a63c69ff97967 /src
parent0297da4d6e2cb4513aa3d864c6218b5b8b11ec68 (diff)
Show a popup when opening plugin window when built without support
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/menu.c14
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 */