diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-03 16:33:47 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-03 16:33:47 (GMT) |
commit | 3d764e6b458d897d2959771b46c67addbcea8b70 (patch) | |
tree | cfdb03310238ff2301ff32516f602950fe742687 /Smoke/gtk.c | |
parent | 8addeabeb2498955ebb7b62f810fbf2781bcae59 (diff) | |
download | 2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.zip 2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.tar.gz 2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.tar.bz2 |
code cleanup and fixes
Diffstat (limited to 'Smoke/gtk.c')
-rw-r--r-- | Smoke/gtk.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Smoke/gtk.c b/Smoke/gtk.c index 7de195f..f2daa5a 100644 --- a/Smoke/gtk.c +++ b/Smoke/gtk.c @@ -95,11 +95,11 @@ static gboolean animate = TRUE; static void timeout_add (GtkWidget *widget); static void timeout_remove (GtkWidget *widget); -static void toggle_animation (GtkWidget *widget); +//static void toggle_animation (GtkWidget *widget); static GdkGLConfig *configure_gl (void); -static GtkWidget *create_popup_menu (GtkWidget *drawing_area); +//static GtkWidget *create_popup_menu (GtkWidget *drawing_area); static GtkWidget *create_window (GdkGLConfig *glconfig, fftw_real *field); @@ -365,6 +365,7 @@ button_press_event (GtkWidget *widget, return FALSE; } +#if 0 /* For popup menu. */ static gboolean button_press_event_popup_menu (GtkWidget *widget, @@ -387,6 +388,7 @@ button_press_event_popup_menu (GtkWidget *widget, return FALSE; } +#endif /*** *** The "key_press_event" signal handler. Any processing required when key @@ -554,7 +556,7 @@ visibility_notify_event (GtkWidget *widget, return TRUE; } - +#if 0 /************************************************************************** * The following section contains some miscellaneous utility functions. **************************************************************************/ @@ -579,7 +581,6 @@ toggle_animation (GtkWidget *widget) } -#if 0 /************************************************************************** * The following section contains the GUI building function definitions. **************************************************************************/ @@ -624,8 +625,6 @@ create_window (GdkGLConfig *glconfig, fftw_real *field) GtkWidget *window; GtkWidget *hbox; GtkWidget *drawing_area; - GtkWidget *menu; - GtkWidget *button; GtkWidget *settings_notebook, *notebook_page, *notebook_page_label; /* @@ -871,9 +870,6 @@ main (int argc, { GtkWidget *window; GdkGLConfig *glconfig; - int i; - struct color4f colormap; - float value; fftw_real *field; /* Initialize the simulation */ |