From dfca0b41c05b167ba64b7ec2d11c74c2fbd56b05 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Tue, 28 May 2024 23:08:39 +0200 Subject: [PATCH] WIP: cleaning... --- src/ui/contain.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/contain.c b/src/ui/contain.c index af9841b..8bf510f 100644 --- a/src/ui/contain.c +++ b/src/ui/contain.c @@ -181,13 +181,14 @@ void window_bar(GtkWindow *window, char *title){ void experimental_activate_00 (GtkApplication *app, GtkWindow *window) { // window_bar (window, "E coli (with permission from David S. Goodsell, 2009)"); GtkWidget *my_header_bar = gtk_header_bar_new (); - gtk_header_bar_set_title_widget (my_header_bar, GTK_WIDGET (gtk_label_new ("E coli (with permission from David S. Goodsell, 2009)"))); + gtk_header_bar_set_title_widget (GTK_HEADER_BAR (my_header_bar), GTK_WIDGET (gtk_label_new ("E coli (with permission from David S. Goodsell, 2009)"))); GtkWidget *run_edit = gtk_toggle_button_new (); - gtk_button_set_icon_name (run_edit, "document-edit-symbolic"); - gtk_button_set_icon_name (run_edit, "system-run-symbolic"); + gtk_button_set_icon_name (GTK_BUTTON (run_edit), "document-edit-symbolic"); + gtk_button_set_icon_name (GTK_BUTTON (run_edit), "system-run-symbolic"); // gtk_toggle_button_set_active (run_edit, TRUE); // gtk_actionable_set_action_name (run_edit, "togglerunedit"); - gtk_header_bar_pack_start (my_header_bar, run_edit); +// gtk_actionable_set_action_target_value (GTK_WIDGET (run_edit), "togglerunedit"); // ui_toggle_run_edit() GVariant + gtk_header_bar_pack_start (GTK_HEADER_BAR (my_header_bar), run_edit); gtk_window_set_titlebar (window, my_header_bar);