>>>>> On Fri, 24 Dec 1999 14:50:27 -0800, Dave Peticolas
>>>>> <[EMAIL PROTECTED]> said:

Dave> The bit I added at the bottom of gnc_build_ledger_style_menu
Dave> in window-register.c does that.

ahh,

  for (i = 0; i < num_items; i++)
    if (style == regData->style_cb_data[i].style_code)
    {
      gtk_option_menu_set_history(GTK_OPTION_MENU(omenu), i);
      break;
    }


I was going to do something kind of like that around the lines:

  for (i = 0; i < num_items; i++)
  {
    regData->style_cb_data[i].regData = regData;
    regData->style_cb_data[i].style_code = style_data[i].style_code;

    style_items[i].user_data = &regData->style_cb_data[i];
  }

but mine wouldn't have worked, as that would have rearranged the order
of the items in the drop down, right?

rob


-- 
"You know, I used to think it was awful that life was so unfair.  Then
I thought, wouldn't it be much worse if life were fair, and all the
terrible things that happen to us come because we actually deserve
them? So, now I take great comfort in the general hostility and
unfairness of the universe."

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to