(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:
Jordan Lee
2011-10-11 04:11:08 +00:00
parent 94ea901162
commit f9388714b7
9 changed files with 57 additions and 26 deletions

View File

@@ -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 )
{