Thu, 09 Oct 2025 18:24:09 +0200
fix gtk3 build
| ui/gtk/container.c | file | annotate | diff | comparison | revisions | |
| ui/gtk/list.c | file | annotate | diff | comparison | revisions |
--- a/ui/gtk/container.c Thu Oct 09 18:23:07 2025 +0200 +++ b/ui/gtk/container.c Thu Oct 09 18:24:09 2025 +0200 @@ -1022,7 +1022,7 @@ GtkWidget *sidebar_vbox = g_object_get_data(G_OBJECT(obj->widget), "ui_sidebar"); GtkWidget *box = ui_gtk_vbox_new(args->spacing); - ui_gtk_set_margin(box, args->margin, args->margin-left, args->margin_right, args->margin_top, args->margin_bottom); + ui_gtk_set_margin(box, args->margin, args->margin_left, args->margin_right, args->margin_top, args->margin_bottom); BOX_ADD_EXPAND(sidebar_vbox, box); UiContainerX *container = ui_box_container(obj, box, UI_CONTAINER_VBOX);
--- a/ui/gtk/list.c Thu Oct 09 18:23:07 2025 +0200 +++ b/ui/gtk/list.c Thu Oct 09 18:24:09 2025 +0200 @@ -1519,7 +1519,7 @@ UIWIDGET ui_combobox_create(UiObject *obj, UiListArgs *args) { GtkWidget *combobox = gtk_combo_box_new(); if(args->width > 0) { - gtk_widget_set_size_request(scroll_area, args->width, -1); + gtk_widget_set_size_request(combobox, args->width, -1); } ui_set_name_and_style(combobox, args->name, args->style_class);