--- a/ui/gtk/toolbar.c Fri Jun 14 18:24:31 2024 +0200 +++ b/ui/gtk/toolbar.c Sun Jun 16 11:36:27 2024 +0200 @@ -42,6 +42,8 @@ #include "../common/context.h" +#if UI_GTK2 || UI_GTK3 + GtkWidget* ui_create_toolbar(UiObject *obj) { GtkWidget *toolbar = gtk_toolbar_new(); #ifdef UI_GTK3 @@ -417,4 +419,6 @@ } -#endif +#endif /* UI_GTK3 */ + +#endif /* UI_GTK2 || UI_GTK3 */