+
+
+ wxToolBar *tb = tool->m_owner;
+
+#if (GTK_MINOR_VERSION == 0)
+ /* we grey-out the tip text of disabled tool in GTK 1.0 */
+ if (tool->m_enabled)
+ {
+ if (tb->m_fg->red != 0)
+ {
+ tb->m_fg->red = 0;
+ tb->m_fg->green = 0;
+ tb->m_fg->blue = 0;
+ gdk_color_alloc( gtk_widget_get_colormap( GTK_WIDGET(tb->m_toolbar) ), tb->m_fg );
+
+ gtk_tooltips_set_colors( GTK_TOOLBAR(tb->m_toolbar)->tooltips, tb->m_bg, tb->m_fg );
+ }
+ }
+ else
+ {
+ if (tb->m_fg->red == 0)
+ {
+ tb->m_fg->red = 33000;
+ tb->m_fg->green = 33000;
+ tb->m_fg->blue = 33000;
+ gdk_color_alloc( gtk_widget_get_colormap( GTK_WIDGET(tb->m_toolbar) ), tb->m_fg );
+ gtk_tooltips_set_colors( GTK_TOOLBAR(tb->m_toolbar)->tooltips, tb->m_bg, tb->m_fg );
+ }
+ }
+#endif
+
+ /* emit the event */