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_colormap.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_colormap.c')
-rw-r--r-- | Smoke/gtk_colormap.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Smoke/gtk_colormap.c b/Smoke/gtk_colormap.c index 3d6965f..24639b4 100644 --- a/Smoke/gtk_colormap.c +++ b/Smoke/gtk_colormap.c @@ -11,25 +11,35 @@ static gboolean select_colormap(GtkComboBox *combo, gpointer data) { - colormap_set_colormap(gtk_combo_box_get_active(combo)); + colormap_set_colormap(gtk_combo_box_get_active(combo)); + + return TRUE; } static gboolean select_num_colors(GtkRange *adjustment, gpointer data) { - colormap_set_num_colors((int)gtk_range_get_value(adjustment)); + colormap_set_num_colors((int)gtk_range_get_value(adjustment)); + + return TRUE; } static gboolean set_scaling(GtkWidget *button, gpointer data) { colormap_set_scaling(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))); + + return TRUE; } static gboolean set_clamping(GtkWidget *button, gpointer data) { colormap_set_clamping(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))); + + return TRUE; } static gboolean select_alpha(GtkRange *adjustment, gpointer data) { - colormap_set_alpha((float)gtk_range_get_value(adjustment)); + colormap_set_alpha((float)gtk_range_get_value(adjustment)); + + return TRUE; } |