diff options
Diffstat (limited to 'Smoke/gtk_glyphs.c')
-rw-r--r-- | Smoke/gtk_glyphs.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Smoke/gtk_glyphs.c b/Smoke/gtk_glyphs.c index 6049323..9d7a3cb 100644 --- a/Smoke/gtk_glyphs.c +++ b/Smoke/gtk_glyphs.c @@ -12,32 +12,42 @@ static gboolean select_colormap(GtkComboBox *combo, gpointer data) { - glyphs_set_colormap(gtk_combo_box_get_active(combo)); + glyphs_set_colormap(gtk_combo_box_get_active(combo)); + + return TRUE; } static gboolean select_num_colors(GtkRange *adjustment, gpointer data) { - glyphs_set_num_colors((int)gtk_range_get_value(adjustment)); + glyphs_set_num_colors((int)gtk_range_get_value(adjustment)); + + return TRUE; } static gboolean select_alpha(GtkRange *adjustment, gpointer data) { - glyphs_set_alpha((float)gtk_range_get_value(adjustment)); + glyphs_set_alpha((float)gtk_range_get_value(adjustment)); + + return TRUE; } -static gboolean set_dataset_color(GtkButton *button, gpointer data) +static gboolean set_dataset_color(GtkToggleButton *button, gpointer data) { if (gtk_toggle_button_get_active(button)) { glyphs_set_dataset_color((int)data); } + + return TRUE; } -static gboolean set_dataset_direction(GtkButton *button, gpointer data) +static gboolean set_dataset_direction(GtkToggleButton *button, gpointer data) { if (gtk_toggle_button_get_active(button)) { glyphs_set_dataset_direction((int)data); } + + return TRUE; } |