mirror of
https://github.com/transmission/transmission
synced 2025-02-21 21:57:01 +00:00
(trunk gtk) implement gtr_widget_set_tooltip_text() for gtk < 2.12
This commit is contained in:
parent
73b546c817
commit
d97a387e60
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue