Add compatibility code for GtkDialog

This commit is contained in:
Pierre Pronchery 2018-02-06 00:46:03 +01:00
parent f879140893
commit 070d3123bd
2 changed files with 13 additions and 0 deletions

View File

@ -135,6 +135,10 @@ GtkWidget * gtk_box_new(GtkOrientation orientation, gint spacing);
GtkWidget * gtk_button_box_new(GtkOrientation orientation);
# if !GTK_CHECK_VERSION(2, 14, 0)
GtkWidget * gtk_dialog_get_content_area(GtkDialog * dialog);
# endif
GtkWidget * gtk_paned_new(GtkOrientation orientation);
GtkWidget * gtk_scale_new(GtkOrientation orientation,

View File

@ -79,6 +79,15 @@ GtkWidget * gtk_button_box_new(GtkOrientation orientation)
}
# if !GTK_CHECK_VERSION(2, 14, 0)
/* gtk_dialog_get_content_area */
GtkWidget * gtk_dialog_get_content_area(GtkDialog * dialog)
{
return dialog->vbox;
}
# endif
/* gtk_paned_new */
GtkWidget * gtk_paned_new(GtkOrientation orientation)
{