aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-05-23 00:33:33 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-05-23 00:33:33 +0000
commit82554ebb525c64c9e5095e9f8ba98ee376f4bf8f (patch)
tree7417389aed1035a8bb91b411d030517c7de3f827 /ui
parentc6ba199a89ee1c2ee6764132114174b36afa707e (diff)
make_menu_xml() is only used if we HAVE_LUA; only define it when we'll use it.
svn path=/trunk/; revision=49539
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/main_menubar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk/main_menubar.c b/ui/gtk/main_menubar.c
index 23ccca3460..7f1b027b99 100644
--- a/ui/gtk/main_menubar.c
+++ b/ui/gtk/main_menubar.c
@@ -3721,6 +3721,7 @@ void register_lua_menu_bar_menu_items(
* http://developer.gnome.org/gtk/2.24/GtkUIManager.html#XML-UI
* http://developer.gnome.org/gtk/2.24/GtkUIManager.html#gtk-ui-manager-add-ui-from-string
*/
+#ifdef HAVE_LUA
static const gchar*
make_menu_xml(const char *path)
{
@@ -3812,6 +3813,7 @@ make_menu_xml(const char *path)
return markup;
}
+#endif
/**
* Creates an action group for the menu items in xpath, and returns it. The caller should