diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2010-12-02 10:33:57 +0100 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2010-12-02 10:33:57 +0100 |
commit | dd723bbd427e7c399de316fe48f1514fa8b0bf29 (patch) | |
tree | b666b6db00f66b50310b5014da47bf81e64bdad3 /src/nsmenu.m | |
parent | 9583e9a03cf4980041a97d397682d0e1861aa1a7 (diff) | |
download | emacs-dd723bbd427e7c399de316fe48f1514fa8b0bf29.tar.gz |
* nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r-- | src/nsmenu.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index b6ee93bdf6b..973f2c15e2f 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -1049,10 +1049,15 @@ update_frame_tool_bar (FRAME_PTR f) { idx = -1; } + helpObj = TOOLPROP (TOOL_BAR_ITEM_HELP); + if (NILP (helpObj)) + helpObj = TOOLPROP (TOOL_BAR_ITEM_CAPTION); + helpText = NILP (helpObj) ? "" : (char *)SDATA (helpObj); + /* Ignore invalid image specifications. */ if (!valid_image_p (image)) { - NSLog (@"Invalid image for toolbar item"); + /* Don't log anything, GNUS makes invalid images all the time. */ continue; } @@ -1066,11 +1071,6 @@ update_frame_tool_bar (FRAME_PTR f) continue; } - helpObj = TOOLPROP (TOOL_BAR_ITEM_HELP); - if (NILP (helpObj)) - helpObj = TOOLPROP (TOOL_BAR_ITEM_CAPTION); - helpText = NILP (helpObj) ? "" : (char *)SDATA (helpObj); - [toolbar addDisplayItemWithImage: img->pixmap idx: i helpText: helpText enabled: enabled_p]; #undef TOOLPROP |