mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 10:28:32 +00:00
(trunk gtk) update some of the gtk+ calls s.t. we're not using deprecated API calls anymore
This commit is contained in:
11
gtk/util.c
11
gtk/util.c
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user