Mon, 28 Jul 2025 21:28:43 +0200
fix gtk3 build
| ui/gtk/headerbar.c | file | annotate | diff | comparison | revisions | |
| ui/gtk/list.c | file | annotate | diff | comparison | revisions | |
| ui/gtk/text.c | file | annotate | diff | comparison | revisions | |
| ui/gtk/window.c | file | annotate | diff | comparison | revisions |
--- a/ui/gtk/headerbar.c Mon Jul 28 21:23:49 2025 +0200 +++ b/ui/gtk/headerbar.c Mon Jul 28 21:28:43 2025 +0200 @@ -162,8 +162,9 @@ gtk_menu_button_set_menu_model(GTK_MENU_BUTTON(menubutton), G_MENU_MODEL(menu)); #else GtkWidget *menubutton = gtk_menu_button_new(); + GtkWidget *menu = gtk_menu_new(); - // TODO + #endif
--- a/ui/gtk/list.c Mon Jul 28 21:23:49 2025 +0200 +++ b/ui/gtk/list.c Mon Jul 28 21:28:43 2025 +0200 @@ -921,7 +921,7 @@ SCROLLEDWINDOW_SET_CHILD(scroll_area, view); UI_APPLY_LAYOUT2(current, args); - current->container->add(current->container, scroll_area, FALSE); + current->container->add(current->container, scroll_area); // ct->current should point to view, not scroll_area, to make it possible // to add a context menu @@ -1098,7 +1098,7 @@ } UI_APPLY_LAYOUT2(current, args); - current->container->add(current->container, scroll_area, FALSE); + current->container->add(current->container, scroll_area); // ct->current should point to view, not scroll_area, to make it possible // to add a context menu @@ -1166,7 +1166,7 @@ ui_set_name_and_style(combobox, args->name, args->style_class); ui_set_widget_groups(obj->ctx, combobox, args->groups); UI_APPLY_LAYOUT2(current, args); - current->container->add(current->container, combobox, FALSE); + current->container->add(current->container, combobox); current->container->current = combobox; return combobox; }
--- a/ui/gtk/text.c Mon Jul 28 21:23:49 2025 +0200 +++ b/ui/gtk/text.c Mon Jul 28 21:28:43 2025 +0200 @@ -1118,7 +1118,7 @@ pathtf); UI_APPLY_LAYOUT2(current, args); - current->container->add(current->container, eventbox, FALSE); + current->container->add(current->container, eventbox); // hbox as parent for the GtkEntry and GtkButtonBox GtkWidget *hbox = ui_gtk_hbox_new(0);
--- a/ui/gtk/window.c Mon Jul 28 21:23:49 2025 +0200 +++ b/ui/gtk/window.c Mon Jul 28 21:28:43 2025 +0200 @@ -410,7 +410,7 @@ WINDOW_DESTROY(GTK_WIDGET(self)); } -void ui_dialog_create(UiObject *parent, UiDialogArgs args) { +void ui_dialog_create(UiObject *parent, UiDialogArgs *args) { GtkDialog *dialog = GTK_DIALOG(gtk_dialog_new()); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(parent->widget)); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);