1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 06:00:41 +00:00

(trunk gtk) implement gtr_widget_set_tooltip_text() for gtk < 2.12

This commit is contained in:
Charles Kerr 2009-03-30 16:16:38 +00:00
parent 73b546c817
commit d97a387e60

View file

@ -653,14 +653,15 @@ gtr_timeout_add_seconds( guint seconds, GSourceFunc function, gpointer data )
#endif
}
void
gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip )
{
#if GTK_CHECK_VERSION( 2,12,0 )
gtk_widget_set_tooltip_text( w, tip );
#else
/* FIXME */
static GtkTooltips * tips = NULL;
if( tips == NULL )
tips = gtk_tooltips_new( );
gtk_tooltips_set_tip( tips, w, tip, NULL );
#endif
}