diff options
Diffstat (limited to 'Smoke/gtk_streamlines.c')
-rw-r--r-- | Smoke/gtk_streamlines.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Smoke/gtk_streamlines.c b/Smoke/gtk_streamlines.c index 0f1e3c8..d207684 100644 --- a/Smoke/gtk_streamlines.c +++ b/Smoke/gtk_streamlines.c @@ -36,6 +36,13 @@ static gboolean reset_seedpoints(GtkWidget *button, gpointer data) { return TRUE; } +static gboolean select_sort(GtkComboBox *combo, gpointer data) +{ + streamlines_set_sort(gtk_combo_box_get_active(combo)); + + return TRUE; +} + GtkWidget *create_streamlines_page(void) { @@ -124,6 +131,23 @@ GtkWidget *create_streamlines_page(void) gtk_widget_show(frame); + label = gtk_label_new("Select your traceline"); + + gtk_box_pack_start(GTK_BOX(box), label, FALSE, TRUE, 0); + gtk_widget_show(label); + + combo = gtk_combo_box_new_text(); + + gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Streamlines"); + gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Streamtubes"); + gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Stream-spheres"); + + gtk_combo_box_set_active(GTK_COMBO_BOX(combo), streamlines_get_sort()); + g_signal_connect(combo, "changed", G_CALLBACK(select_sort), (gpointer)NULL); + + gtk_box_pack_start(GTK_BOX(box), combo, FALSE, TRUE, 0); + gtk_widget_show(combo); + return page; } |