(trunk gtk) update some of the gtk+ calls s.t. we're not using deprecated API calls anymore

This commit is contained in:
Charles Kerr
2009-06-20 23:55:36 +00:00
parent e4d8d305ba
commit a8a4259f3a
4 changed files with 19 additions and 2 deletions

View File

@@ -689,3 +689,14 @@ gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip )
gtk_tooltips_set_tip( tips, w, tip, NULL );
#endif
}
void
gtr_toolbar_set_orientation( GtkToolbar * toolbar,
GtkOrientation orientation )
{
#if GTK_CHECK_VERSION( 2,16,0 )
gtk_orientable_set_orientation( GTK_ORIENTABLE( toolbar ), orientation );
#else
gtk_toolbar_set_orientation( toolbar, orientation );
#endif
}