-#define gtk_vbutton_box_new() gtk_button_box_new (GTK_ORIENTATION_VERTICAL)
-#define gtk_hbutton_box_new() gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL)
+#if (GTK_CHECK_VERSION(3,22,0) == 0)
+static inline void
+gtk_menu_popup_at_pointer (GtkMenu *menu, const GdkEvent *trigger)
+{
+ const GdkEventButton *be = trigger;
+ gtk_menu_popup (menu, NULL, NULL, NULL, NULL, be ? be->button : 0, be ? be->time : 0);
+}
+#endif