{
struct tower_node *new = pool_malloc (a->pool, sizeof *new);
- struct tower_node *before = tower_get (&a->tower, posn);
+ struct tower_node *before = NULL;
+
+ if ( posn != tower_count (&a->tower))
+ before = tower_get (&a->tower, posn);
tower_insert (&a->tower, size, new, before);
}
g_signal_connect (de->data_store->dict, "backend-changed", G_CALLBACK (new_variables_callback), de);
g_signal_connect (de->data_store->dict, "variable-inserted", G_CALLBACK (insert_variable_callback), de);
g_signal_connect (de->data_store->dict, "variable-deleted", G_CALLBACK (delete_variable_callback), de);
- // g_signal_connect (de->data_store->dict, "variable-changed", G_CALLBACK (alter_variable_callback), de);
g_signal_connect (de->data_store->dict, "variable-display-width-changed", G_CALLBACK (rewidth_variable_callback), de);
break;
case PROP_VAR_STORE: