WIP: gtk_actionable_set_action_name (run_edit, togglerunedit); (line 189 in contain.c)

This commit is contained in:
Jean Sirmai 2024-05-28 22:45:42 +02:00
parent 95a87a660d
commit b8904d66dd
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <gtk-4.0/gtk/gtk.h> #include <gtk-4.0/gtk/gtk.h>
#include "../../include/ui.h"
#include "../../include/tree.h" #include "../../include/tree.h"
#include "../../include/display.h" #include "../../include/display.h"
#include "../../include/contain.h" #include "../../include/contain.h"
@ -182,11 +183,11 @@ void experimental_activate_00 (GtkApplication *app, GtkWindow *window) {
GtkWidget *my_header_bar = gtk_header_bar_new (); 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 (my_header_bar, GTK_WIDGET (gtk_label_new ("E coli (with permission from David S. Goodsell, 2009)")));
GtkWidget *run_edit = gtk_toggle_button_new (); GtkWidget *run_edit = gtk_toggle_button_new ();
GtkWidget *run_edit2 = 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 (run_edit, "system-run-symbolic");
gtk_button_set_icon_name (run_edit2, "document-edit-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_header_bar_pack_start (my_header_bar, run_edit);
gtk_header_bar_pack_start (my_header_bar, run_edit2);
gtk_window_set_titlebar (window, my_header_bar); gtk_window_set_titlebar (window, my_header_bar);