# HG changeset patch # User Olaf Wintermann # Date 1753730923 -7200 # Node ID a4795b40e6791aa3e4278fc088adf93c69117ff5 # Parent bdc3f59b21ca614550dc7721121f955c14440653 fix gtk3 build diff -r bdc3f59b21ca -r a4795b40e679 ui/gtk/headerbar.c --- 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 diff -r bdc3f59b21ca -r a4795b40e679 ui/gtk/list.c --- 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; } diff -r bdc3f59b21ca -r a4795b40e679 ui/gtk/text.c --- 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); diff -r bdc3f59b21ca -r a4795b40e679 ui/gtk/window.c --- 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);