# HG changeset patch # User Klaus Ethgen # Date 1499506354 -3600 # Node ID 9ac44adeeec17d3c849eb1fcc64c3f4ad2d11690 # Parent 85a4f55d2b336cf805d5ed583e6eb8e78c69c3ed# Parent 09b3121f1975a31bcb56111ee47192b78e596f60 Merge remote-tracking branch 'github/merge-requests/464' * github/merge-requests/464: Eliminate some deprecations diff -r 85a4f55d2b33 -r 9ac44adeeec1 src/compat.h --- a/src/compat.h Sat Jul 08 10:29:51 2017 +0100 +++ b/src/compat.h Sat Jul 08 10:32:34 2017 +0100 @@ -88,5 +88,24 @@ #define gdk_drag_context_get_actions(context) ((context)->actions) #endif +#if GTK_CHECK_VERSION(3,0,0) +#define gtk_hbox_new(homogeneous, spacing) gtk_box_new(GTK_ORIENTATION_HORIZONTAL, spacing) +#define gtk_vbox_new(homogeneous, spacing) gtk_box_new(GTK_ORIENTATION_VERTICAL, spacing) +#define gdk_cursor_unref(cursor) g_object_unref(G_OBJECT(cursor)) +#endif + +#if GTK_CHECK_VERSION(3,2,0) +#define gtk_hpaned_new() gtk_paned_new(GTK_ORIENTATION_HORIZONTAL) +#define gtk_vpaned_new() gtk_paned_new(GTK_ORIENTATION_VERTICAL) +#endif + +#if GTK_CHECK_VERSION(3,8,0) +#define gtk_scrolled_window_add_with_viewport(viewport, child) gtk_container_add(GTK_CONTAINER(viewport), child) +#endif + +#if GTK_CHECK_VERSION(3,20,0) +#define gtk_hbutton_box_new() gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL) +#endif + #endif /* COMPAT_H */ /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */