mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Change name of SplitRegister variable name to 'reg' for consistency.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13154 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
91c112f432
commit
5e5084037b
@ -584,7 +584,7 @@ gnc_plugin_page_register_update_menus (GncPluginPageRegister *page)
|
|||||||
GtkActionGroup *action_group;
|
GtkActionGroup *action_group;
|
||||||
GtkAction *action;
|
GtkAction *action;
|
||||||
Account *account;
|
Account *account;
|
||||||
SplitRegister *sr;
|
SplitRegister *reg;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
priv = GNC_PLUGIN_PAGE_REGISTER_GET_PRIVATE(page);
|
priv = GNC_PLUGIN_PAGE_REGISTER_GET_PRIVATE(page);
|
||||||
@ -594,10 +594,11 @@ gnc_plugin_page_register_update_menus (GncPluginPageRegister *page)
|
|||||||
"sensitive", account != NULL);
|
"sensitive", account != NULL);
|
||||||
|
|
||||||
/* Set "style" radio button */
|
/* Set "style" radio button */
|
||||||
sr = gnc_ledger_display_get_split_register(priv->ledger);
|
reg = gnc_ledger_display_get_split_register(priv->ledger);
|
||||||
for (i = n_radio_entries_2 - 1; i > 0; i--) {
|
for (i = n_radio_entries_2 - 1; i > 0; i--) {
|
||||||
DEBUG(" index %d: comparing %x to %x", i, radio_entries_2[i].value, sr->style);
|
DEBUG(" index %d: comparing %x to %x", i, radio_entries_2[i].value,
|
||||||
if (radio_entries_2[i].value == sr->style) {
|
reg->style);
|
||||||
|
if (radio_entries_2[i].value == reg->style) {
|
||||||
DEBUG("match");
|
DEBUG("match");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -613,7 +614,7 @@ gnc_plugin_page_register_update_menus (GncPluginPageRegister *page)
|
|||||||
action = gtk_action_group_get_action (action_group,
|
action = gtk_action_group_get_action (action_group,
|
||||||
"ViewStyleDoubleLineAction");
|
"ViewStyleDoubleLineAction");
|
||||||
g_signal_handlers_block_by_func(action, gnc_plugin_page_register_cmd_style_double_line, page);
|
g_signal_handlers_block_by_func(action, gnc_plugin_page_register_cmd_style_double_line, page);
|
||||||
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION(action), sr->use_double_line);
|
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION(action), reg->use_double_line);
|
||||||
g_signal_handlers_unblock_by_func(action, gnc_plugin_page_register_cmd_style_double_line, page);
|
g_signal_handlers_unblock_by_func(action, gnc_plugin_page_register_cmd_style_double_line, page);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -628,7 +629,7 @@ gnc_plugin_page_register_create_widget (GncPluginPage *plugin_page)
|
|||||||
GncWindow *gnc_window;
|
GncWindow *gnc_window;
|
||||||
guint numRows;
|
guint numRows;
|
||||||
GtkWidget *gsr;
|
GtkWidget *gsr;
|
||||||
SplitRegister *sr;
|
SplitRegister *reg;
|
||||||
Account *acct;
|
Account *acct;
|
||||||
|
|
||||||
ENTER("page %p", plugin_page);
|
ENTER("page %p", plugin_page);
|
||||||
@ -662,8 +663,9 @@ gnc_plugin_page_register_create_widget (GncPluginPage *plugin_page)
|
|||||||
G_CALLBACK ( gnc_plugin_page_help_changed_cb ),
|
G_CALLBACK ( gnc_plugin_page_help_changed_cb ),
|
||||||
page );
|
page );
|
||||||
|
|
||||||
sr = gnc_ledger_display_get_split_register(priv->ledger);
|
reg = gnc_ledger_display_get_split_register(priv->ledger);
|
||||||
gnc_split_register_config(sr, sr->type, sr->style, sr->use_double_line);
|
gnc_split_register_config(reg, reg->type, reg->style,
|
||||||
|
reg->use_double_line);
|
||||||
gnc_ledger_display_refresh(priv->ledger);
|
gnc_ledger_display_refresh(priv->ledger);
|
||||||
|
|
||||||
gnc_plugin_page_register_update_menus (page);
|
gnc_plugin_page_register_update_menus (page);
|
||||||
|
Loading…
Reference in New Issue
Block a user