~ubuntu-dev/gnucash/ubuntu

« back to all changes in this revision

Viewing changes to src/register/ledger-core/split-register-load.c

  • Committer: Reinhard Tartler
  • Date: 2008-08-03 07:38:54 UTC
  • mfrom: (2.1.2 debian)
  • Revision ID: siretart@tauware.de-20080803073854-23i4uqi1e73no4oz
mergeĀ fromĀ debian/unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
    find_trans = blank_trans;
303
303
    find_split = NULL;
304
304
    find_trans_split = blank_split;
 
305
    find_class = CURSOR_CLASS_SPLIT;
305
306
  }
306
307
  else
307
308
  {
308
309
    find_trans = info->cursor_hint_trans;
309
310
    find_split = info->cursor_hint_split;
310
311
    find_trans_split = info->cursor_hint_trans_split;
 
312
    find_class = info->cursor_hint_cursor_class;
311
313
  }
312
 
  find_class = info->cursor_hint_cursor_class;
313
314
 
314
315
  save_loc = table->current_cursor_loc;
315
316
 
362
363
      }
363
364
    }
364
365
 
365
 
    /* set the completion character for the xfer cells */
366
 
    gnc_combo_cell_set_complete_char(
367
 
        (ComboCell *) gnc_table_layout_get_cell(table->layout, MXFRM_CELL),
368
 
        gnc_get_account_separator());
369
 
  
370
 
    gnc_combo_cell_set_complete_char(
371
 
        (ComboCell *) gnc_table_layout_get_cell(table->layout, XFRM_CELL),
372
 
        gnc_get_account_separator());
373
 
  
374
 
    /* set the confirmation callback for the reconcile cell */
375
 
    gnc_recn_cell_set_confirm_cb(
376
 
        (RecnCell *) gnc_table_layout_get_cell(table->layout, RECN_CELL),
377
 
        gnc_split_register_recn_cell_confirm, reg);
378
 
  
379
366
    /* load up account names into the transfer combobox menus */
380
367
    gnc_split_register_load_xfer_cells (reg, default_account);
381
368
    gnc_split_register_load_recn_cells (reg);
382
369
    gnc_split_register_load_type_cells (reg);
383
370
  }
384
371
 
 
372
  if (info->separator_changed) {
 
373
    info->separator_changed = FALSE;
 
374
 
 
375
    /* set the completion character for the xfer cells */
 
376
    gnc_combo_cell_set_complete_char(
 
377
      (ComboCell *) gnc_table_layout_get_cell(table->layout, MXFRM_CELL),
 
378
      gnc_get_account_separator());
 
379
 
 
380
    gnc_combo_cell_set_complete_char(
 
381
      (ComboCell *) gnc_table_layout_get_cell(table->layout, XFRM_CELL),
 
382
      gnc_get_account_separator());
 
383
 
 
384
    /* set the confirmation callback for the reconcile cell */
 
385
    gnc_recn_cell_set_confirm_cb(
 
386
      (RecnCell *) gnc_table_layout_get_cell(table->layout, RECN_CELL),
 
387
      gnc_split_register_recn_cell_confirm, reg);
 
388
  }
 
389
 
385
390
  table->model->dividing_row = -1;
386
391
 
387
392
  // Ensure that the transaction and splits being edited are in the split