updated for version 7.0046
diff --git a/src/gui_motif.c b/src/gui_motif.c
index 364c020..acb9d81 100644
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -878,6 +878,8 @@
 	XtVaSetValues(menuBar, XmNheight, gui.menu_height, NULL);
 }
 
+#ifdef FEAT_TOOLBAR
+
 /*
  * Icons used by the toolbar code.
  */
@@ -950,6 +952,7 @@
 
     return xpm;
 }
+#endif /* FEAT_TOOLBAR */
 
     void
 gui_mch_add_menu_item(menu, idx)