aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2010-12-02 10:33:57 +0100
committerJan Djärv2010-12-02 10:33:57 +0100
commitdd723bbd427e7c399de316fe48f1514fa8b0bf29 (patch)
treeb666b6db00f66b50310b5014da47bf81e64bdad3 /src
parent9583e9a03cf4980041a97d397682d0e1861aa1a7 (diff)
downloademacs-dd723bbd427e7c399de316fe48f1514fa8b0bf29.tar.gz
emacs-dd723bbd427e7c399de316fe48f1514fa8b0bf29.zip
* nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/nsmenu.m12
2 files changed, 8 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 83d6d4c6e88..dc6a02d7faf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12010-12-02 Jan Djärv <jan.h.d@swipnet.se> 12010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
4
3 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if 5 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
4 drawing text under filled box cursor (Bug#7479). 6 drawing text under filled box cursor (Bug#7479).
5 7
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)
1049 { 1049 {
1050 idx = -1; 1050 idx = -1;
1051 } 1051 }
1052 helpObj = TOOLPROP (TOOL_BAR_ITEM_HELP);
1053 if (NILP (helpObj))
1054 helpObj = TOOLPROP (TOOL_BAR_ITEM_CAPTION);
1055 helpText = NILP (helpObj) ? "" : (char *)SDATA (helpObj);
1056
1052 /* Ignore invalid image specifications. */ 1057 /* Ignore invalid image specifications. */
1053 if (!valid_image_p (image)) 1058 if (!valid_image_p (image))
1054 { 1059 {
1055 NSLog (@"Invalid image for toolbar item"); 1060 /* Don't log anything, GNUS makes invalid images all the time. */
1056 continue; 1061 continue;
1057 } 1062 }
1058 1063
@@ -1066,11 +1071,6 @@ update_frame_tool_bar (FRAME_PTR f)
1066 continue; 1071 continue;
1067 } 1072 }
1068 1073
1069 helpObj = TOOLPROP (TOOL_BAR_ITEM_HELP);
1070 if (NILP (helpObj))
1071 helpObj = TOOLPROP (TOOL_BAR_ITEM_CAPTION);
1072 helpText = NILP (helpObj) ? "" : (char *)SDATA (helpObj);
1073
1074 [toolbar addDisplayItemWithImage: img->pixmap idx: i helpText: helpText 1074 [toolbar addDisplayItemWithImage: img->pixmap idx: i helpText: helpText
1075 enabled: enabled_p]; 1075 enabled: enabled_p];
1076#undef TOOLPROP 1076#undef TOOLPROP