summaryrefslogtreecommitdiffstats
path: root/Smoke/gtk_main.c
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-01-03 15:03:55 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-01-03 15:03:55 (GMT)
commit8addeabeb2498955ebb7b62f810fbf2781bcae59 (patch)
tree65b770f5f7c86936e7c58b25fd2d6c56ee305986 /Smoke/gtk_main.c
parent747c680560744a021f1b99455db33f906970c3fe (diff)
download2iv35-8addeabeb2498955ebb7b62f810fbf2781bcae59.zip
2iv35-8addeabeb2498955ebb7b62f810fbf2781bcae59.tar.gz
2iv35-8addeabeb2498955ebb7b62f810fbf2781bcae59.tar.bz2
betere belichting
Diffstat (limited to 'Smoke/gtk_main.c')
-rw-r--r--Smoke/gtk_main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Smoke/gtk_main.c b/Smoke/gtk_main.c
index 6c9815f..242578f 100644
--- a/Smoke/gtk_main.c
+++ b/Smoke/gtk_main.c
@@ -42,6 +42,10 @@ static gboolean set_dataset(GtkButton *button, gpointer data)
}
}
+static gboolean select_normals(GtkWidget *button, gpointer data) {
+ normals_set_render(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)));
+}
+
static gboolean reset_zoom(GtkWidget *button, gpointer data) {
renderer_reset_zoom();
}
@@ -134,6 +138,12 @@ GtkWidget *create_main_page(void)
gtk_box_pack_start (GTK_BOX(box), button, TRUE, TRUE, 0);
gtk_widget_show(button);
+ button = gtk_check_button_new_with_label("Draw Normal Vectors");
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), normals_get_render());
+ g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(select_normals), NULL);
+ gtk_box_pack_start (GTK_BOX(box), button, TRUE, TRUE, 0);
+ gtk_widget_show(button);
+
gtk_box_pack_start (GTK_BOX(page), box, FALSE, TRUE, 0);
gtk_widget_show(box);