gem-graph-client/callback.c

29 lines
931 B
C
Raw Normal View History

#include <stdio.h>
#include <gtk-4.0/gtk/gtk.h>
#include "hot.h"
#include "display.h"
#include "contain.h"
#include "texts.h"
void activate (GtkApplication *self, gpointer user_data) {
GtkWindow *window = GTK_WINDOW (gtk_application_window_new (self));
window_bar (window, "E coli (with permission from David S. Goodsell, 2009)");
two_notebooks_in_two_panes (window);
gtk_window_present (GTK_WINDOW (window));
}
void ui_toggle_run_edit (GtkWidget *btt_run_xor_edit, gpointer data)
{
printf("window.ui_toggle_run_edit() >>> mode = %d", get_run_edit_mode ());
if (get_run_edit_mode()) {
gtk_button_set_icon_name (GTK_BUTTON (btt_run_xor_edit), "system-run-symbolic");
set_run_edit_mode (0);
} else {
gtk_button_set_icon_name (GTK_BUTTON (btt_run_xor_edit), "document-edit-symbolic");
set_run_edit_mode (1);
}
printf(" > %d\n", get_run_edit_mode ());
}