- GtkWidget *da = GTK_WIDGET (user_data);
-
- ang++;
-
- gdk_window_invalidate_rect (da->window, &da->allocation, FALSE);
- gdk_window_process_updates (da->window, FALSE);
-
+ /* Add configuration tab */
+ GtkWidget *label = gtk_label_new("Cube");
+ rotate_button = gtk_toggle_button_new_with_label("Rotate");
+ gtk_notebook_append_page(GTK_NOTEBOOK(config), rotate_button, label);
+
+ /* Set up OpenGL Stuff */
+ g_signal_connect(drawing, "expose-event", G_CALLBACK(expose), NULL);
+ g_timeout_add(1000/60, rotate, drawing);