Changeset 8117


Ignore:
Timestamp:
Mar 30, 2009, 4:16:38 PM (13 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r8097 r8117  
    654654}
    655655
    656 
    657656void
    658657gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip )
     
    661660    gtk_widget_set_tooltip_text( w, tip );
    662661#else
    663     /* FIXME */
    664 #endif
    665 }
    666 
     662    static GtkTooltips * tips = NULL;
     663    if( tips == NULL )
     664        tips = gtk_tooltips_new( );
     665    gtk_tooltips_set_tip( tips, w, tip, NULL );
     666#endif
     667}
Note: See TracChangeset for help on using the changeset viewer.