diff --git a/src/fe-gtk/fe-gtk.h b/src/fe-gtk/fe-gtk.h index 81278662..03e55508 100644 --- a/src/fe-gtk/fe-gtk.h +++ b/src/fe-gtk/fe-gtk.h @@ -40,6 +40,14 @@ #endif #endif +#if !HAVE_GTK3 +/* GtkWidget expansion APIs were introduced in GTK3. Keep GTK2 builds + * source-compatible by accepting the calls as no-ops. + */ +#define gtk_widget_set_hexpand(widget, expand) G_STMT_START { (void) (widget); (void) (expand); } G_STMT_END +#define gtk_widget_set_vexpand(widget, expand) G_STMT_START { (void) (widget); (void) (expand); } G_STMT_END +#endif + #ifdef HAVE_GTK_MAC #include #endif