From: Klaus Ethgen Date: Sat, 8 Jul 2017 09:32:34 +0000 (+0100) Subject: Merge remote-tracking branch 'github/merge-requests/464' X-Git-Tag: v1.4~137 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=2e5fe39deef29a14a22c116fd73fb40326183929;hp=ce7ff575605689feaf794984eb1bb044683cfb66 Merge remote-tracking branch 'github/merge-requests/464' * github/merge-requests/464: Eliminate some deprecations --- diff --git a/src/compat.h b/src/compat.h index 954f3367..117c5bdd 100644 --- a/src/compat.h +++ b/src/compat.h @@ -88,5 +88,24 @@ cairo_surface_t *compat_gdk_window_create_similar_surface (GdkWindow *window, ca #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: */