diff options
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; } |