1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

gtkcompat.h: fix GTK1 implementation of ref_sink.

I was testing some upcoming new GTK code against all GTK versions,
which for once was interesting enough to make nontrivial use of
g_object_ref_sink, and I found that I hadn't implemented the GTK1
fallback version right. GTK1 has no ref_sink call, but it does have
ref and sink, so the right thing seems to be to just call them in
succession.
This commit is contained in:
Simon Tatham 2019-11-02 08:26:14 +00:00
parent 4adbd725ca
commit 717571d25f

View File

@ -34,7 +34,10 @@
#define g_object_get_data gtk_object_get_data
#define g_object_set_data gtk_object_set_data
#define g_object_set_data_full gtk_object_set_data_full
#define g_object_ref_sink gtk_object_sink
#define g_object_ref_sink(x) do { \
gtk_object_ref(x); \
gtk_object_sink(x); \
} while (0)
#define GDK_GRAB_SUCCESS GrabSuccess