summaryrefslogtreecommitdiffstats
path: root/Smoke/gtk_glyphs.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-01-03 16:33:47 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-01-03 16:33:47 (GMT)
commit3d764e6b458d897d2959771b46c67addbcea8b70 (patch)
treecfdb03310238ff2301ff32516f602950fe742687 /Smoke/gtk_glyphs.c
parent8addeabeb2498955ebb7b62f810fbf2781bcae59 (diff)
download2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.zip
2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.tar.gz
2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.tar.bz2
code cleanup and fixes
Diffstat (limited to 'Smoke/gtk_glyphs.c')
-rw-r--r--Smoke/gtk_glyphs.c20
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;
}