$ git clone http://tcclient.ion.nu/tc_client.git
commit 70ac181c68ce6fb3e9b6b07916e93a52ec936230
Author: Alicia <...>
Date:   Fri Sep 23 20:55:41 2016 +0200

    tc_client-gtk: added GTK+2 compatibility code related to the greenscreen postprocessor.

diff --git a/ChangeLog b/ChangeLog
index 647e269..3ade7d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Moved the backward compatibility code for avcodec_{send,receive}_{frame,packet}
 tc_client-gtk: merged camera_remove() and camera_removebynick() into a single function, merged the deallocation of camera data into camera_free()
 tc_client-gtk: moved the postprocessing code into its own source file.
 tc_client-gtk: added greenscreen postprocessor.
+tc_client-gtk: added GTK+2 compatibility code related to the greenscreen postprocessor.
 tc_client-gtk and camviewer: updated to libavcodec's avcodec_{send,receive}_{frame,packet} API.
 0.39:
 Added a /closecam command to stop receiving a cam stream.
diff --git a/utilities/gtk/compat.h b/utilities/gtk/compat.h
index ee78e85..2cccd48 100644
--- a/utilities/gtk/compat.h
+++ b/utilities/gtk/compat.h
@@ -55,6 +55,23 @@ extern SECURITY_ATTRIBUTES sa;
   #define GTK_ORIENTATION_VERTICAL 1
   #define gtk_widget_set_halign(x,y)
   #define gtk_widget_get_preferred_size(x,y,z) (y)->height=gtk_widget_get_allocated_height(x)
+  typedef struct{double red; double green; double blue; double alpha;} GdkRGBA;
+  #define gtk_color_chooser_set_rgba(x,c) \
+  {\
+    GdkColor gdkc={.red=(c)->red*65535,\
+                   .green=(c)->green*65535,\
+                   .blue=(c)->blue*65535};\
+    gtk_color_button_set_color(x,&gdkc);\
+  }
+  #define gtk_color_chooser_get_rgba(x,c) \
+  {\
+    GdkColor gdkc;\
+    gtk_color_button_get_color(x,&gdkc);\
+    (c)->red=(double)gdkc.red/65535;\
+    (c)->green=(double)gdkc.green/65535;\
+    (c)->blue=(double)gdkc.blue/65535;\
+  }
+  #define GTK_COLOR_CHOOSER GTK_COLOR_BUTTON
   extern GtkWidget* gtk_box_new(int vertical, int spacing);
   extern int gtk_widget_get_allocated_width(GtkWidget* widget);
   extern int gtk_widget_get_allocated_height(GtkWidget* widget);