diff --git a/gtk/util.c b/gtk/util.c index 30fc5b6e3..17c237beb 100644 --- a/gtk/util.c +++ b/gtk/util.c @@ -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 } -