mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make a distinction between file/link Association
Show a 'f' in the register for a file association and a 'w' for a link
This commit is contained in:
parent
5bb53c044a
commit
57666b43ba
@ -696,7 +696,7 @@ gnc_split_register_layout_add_cells (SplitRegister *reg,
|
||||
ASSOC_CELL,
|
||||
RECN_CELL_TYPE_NAME,
|
||||
N_("Associate:A") + 10,
|
||||
CELL_ALIGN_LEFT,
|
||||
CELL_ALIGN_CENTER,
|
||||
FALSE,
|
||||
FALSE);
|
||||
|
||||
|
@ -81,8 +81,8 @@ gnc_split_register_load_associate_cells (SplitRegister *reg)
|
||||
if (!cell) return;
|
||||
|
||||
/* FIXME: These should get moved to an i18n function */
|
||||
gnc_recn_cell_set_valid_flags (cell, "@ ", ' ');
|
||||
gnc_recn_cell_set_flag_order (cell, "@ ");
|
||||
gnc_recn_cell_set_valid_flags (cell, "fw ", ' ');
|
||||
gnc_recn_cell_set_flag_order (cell, "fw ");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -318,6 +318,13 @@ gnc_split_register_get_action_label (VirtualLocation virt_loc,
|
||||
return _("Action");
|
||||
}
|
||||
|
||||
static const char *
|
||||
gnc_split_register_get_associate_label (VirtualLocation virt_loc,
|
||||
gpointer user_data)
|
||||
{
|
||||
return _("Associate:A") + 10;
|
||||
}
|
||||
|
||||
static const char *
|
||||
gnc_split_register_get_xfrm_label (VirtualLocation virt_loc,
|
||||
gpointer user_data)
|
||||
@ -339,13 +346,6 @@ gnc_split_register_get_memo_label (VirtualLocation virt_loc,
|
||||
return _("Memo");
|
||||
}
|
||||
|
||||
static const char *
|
||||
gnc_split_register_get_associate_label (VirtualLocation virt_loc,
|
||||
gpointer user_data)
|
||||
{
|
||||
return _("Associate:A");
|
||||
}
|
||||
|
||||
static const char *
|
||||
gnc_split_register_get_type_label (VirtualLocation virt_loc,
|
||||
gpointer user_data)
|
||||
@ -786,7 +786,12 @@ gnc_split_register_get_associate_entry (VirtualLocation virt_loc,
|
||||
|
||||
// Check for uri is empty or NULL
|
||||
if (g_strcmp0 (uri, "") != 0 && g_strcmp0 (uri, NULL) != 0)
|
||||
associate = '@';
|
||||
{
|
||||
if (g_str_has_prefix (uri, "file:"))
|
||||
associate = 'f';
|
||||
else
|
||||
associate = 'w';
|
||||
}
|
||||
else
|
||||
associate = ' ';
|
||||
|
||||
@ -809,7 +814,6 @@ gnc_split_register_get_associate_value (SplitRegister *reg,
|
||||
return gnc_recn_cell_get_flag (cell);
|
||||
}
|
||||
|
||||
|
||||
static const char *
|
||||
gnc_split_register_get_type_entry (VirtualLocation virt_loc,
|
||||
gboolean translate,
|
||||
|
Loading…
Reference in New Issue
Block a user