- if (!m_tooltips)
- {
- m_tooltips = gtk_tooltips_new();
-
- gdk_color_alloc( gtk_widget_get_colormap( tool ), m_fg );
- gdk_color_alloc( gtk_widget_get_colormap( tool ), m_bg );
-
- gtk_tooltips_set_colors( m_tooltips, m_bg, m_fg );
- }
-
- gtk_tooltips_set_tip( m_tooltips, tool, m_text, (gchar*) NULL );
+ if ( !gs_tooltips )
+ gs_tooltips = gtk_tooltips_new();
+
+ gtk_tooltips_set_tip(gs_tooltips, w, tip, NULL);