branch: elpa/gnuplot
commit 55e3f754ee424608e892d61a6ff2208b0daff8b5
Merge: a406143 54fd3eb
Author: Naoya Yamashita <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #42 from conao3/add-toolbar-make-button-check
    
    Do toolbar-make-button-list after check the function exists
---
 gnuplot.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index 212a4fa..00e7e62 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -1342,7 +1342,7 @@ This is basically swiped from VM."
       (set-specifier top-toolbar-height    height frame tag-set))) ))
 
 (defvar gnuplot-line-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *line[] = {
@@ -1398,7 +1398,7 @@ static char *line[] = {
   "XPM format image used for the \"plot line\" button"))
 
 (defvar gnuplot-region-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *region[] = {
@@ -1454,7 +1454,7 @@ static char *region[] = {
   "XPM format image used for the \"plot region\" button"))
 
 (defvar gnuplot-buffer-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *buffer[] = {
@@ -1510,7 +1510,7 @@ static char *buffer[] = {
   "XPM format image used for the \"plot buffer\" button"))
 
 (defvar gnuplot-doc-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *book_index[] = {
@@ -1567,7 +1567,7 @@ static char *book_index[] = {
   "XPM format image used for the \"document\" button"))
 
 (defvar gnuplot-help-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *help_btn[] = {

Reply via email to