mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk gtk) add portability wrappers for gtk_hbox_new() and gtk_vbox_new(), which are deprecated now in GTK+ 3.2
This commit is contained in:
20
gtk/util.c
20
gtk/util.c
@@ -473,6 +473,26 @@ gtr_priority_combo_new( void )
|
||||
****
|
||||
***/
|
||||
|
||||
GtkWidget*
|
||||
gtr_hbox_new( gboolean homogenous UNUSED, gint spacing )
|
||||
{
|
||||
#if GTK_CHECK_VERSION( 3,2,0 )
|
||||
return gtk_box_new( GTK_ORIENTATION_HORIZONTAL, spacing );
|
||||
#else
|
||||
return gtk_hbox_new( homogenous, spacing );
|
||||
#endif
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtr_vbox_new( gboolean homogenous UNUSED, gint spacing )
|
||||
{
|
||||
#if GTK_CHECK_VERSION( 3,2,0 )
|
||||
return gtk_box_new( GTK_ORIENTATION_VERTICAL, spacing );
|
||||
#else
|
||||
return gtk_vbox_new( homogenous, spacing );
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
gtr_widget_set_visible( GtkWidget * w, gboolean b )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user