Mercurial > hg > forks > geeqie
changeset 2543:09b3121f1975
Eliminate some deprecations
author | Colin Clark <cclark@mcb.net> |
---|---|
date | Wed, 11 Jan 2017 22:00:49 +0000 |
parents | e8f835110f9c |
children | 9ac44adeeec1 |
files | src/compat.h |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/compat.h Sat Jan 07 21:02:06 2017 -0800 +++ b/src/compat.h Wed Jan 11 22:00:49 2017 +0000 @@ -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: */