-
- gs_tooltip_fg.red = 0;
- gs_tooltip_fg.green = 0;
- gs_tooltip_fg.blue = 0;
- gdk_color_alloc( gtk_widget_get_colormap( tool->GetConnectWidget() ), &gs_tooltip_fg );
-
- gs_tooltip_bg.red = 65535;
- gs_tooltip_bg.green = 65535;
- gs_tooltip_bg.blue = 50000;
- gdk_color_alloc( gtk_widget_get_colormap( tool->GetConnectWidget() ), &gs_tooltip_bg );
-
- gtk_tooltips_set_colors( gs_tooltips, &gs_tooltip_bg, &gs_tooltip_fg );
- }
-
- gtk_tooltips_set_tip( gs_tooltips, tool->GetConnectWidget(), tip, (gchar*) NULL );
+
+ m_window = win;
+
+ if (m_text.empty())
+ m_window->ApplyToolTip( gs_tooltips, (wxChar*) NULL );
+ else
+ m_window->ApplyToolTip( gs_tooltips, m_text );
+}
+
+/* static */
+void wxToolTip::Apply(GtkWidget *w, const wxCharBuffer& tip)
+{
+ if ( !gs_tooltips )
+ gs_tooltips = gtk_tooltips_new();
+
+ gtk_tooltips_set_tip(gs_tooltips, w, tip, NULL);