Hello,all. Thank you for xlog, I use it daily.
One thing that I found difficult to interpret is that the number "0"
would appear in the scoring windows for a confirmed contact. It
seemed hard to pick out the confirmed contacts among the numbers
appearing for the unconfirmed contacts. So, I changed the constant in
use from a "0" to a "✓", a unicode checkmark. This seems to work for
me and is visually more distinct.
Please find attached a patch against 2.0.3 that will change to the
unicode checkmark. I have not tried this with non-unicode locales or
fonts, so YMMV. Instead of accepting this patch directly, perhaps
this should be a configuration option. Either way, I hope this is
helpful.
Thanks again and 73.
-Chris KC2SYK
--- xlog-2.0.3.orig/src/gui_awards_was.c
+++ xlog-2.0.3/src/gui_awards_was.c
@@ -230,7 +230,7 @@
{
if (was_c[i][j] > 0)
{
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j+1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j+1, "\u2713", -1);
}
else if (was_w[i][j] > 0)
{
--- xlog-2.0.3.orig/src/gui_awards_locator.c
+++ xlog-2.0.3/src/gui_awards_locator.c
@@ -272,7 +272,7 @@
gpointer p_locator_c = g_hash_table_lookup (loc_c[j], g_ascii_strup(locatorstr, -1));
if (p_locator_c && (GPOINTER_TO_INT(p_locator_c) > 0))
{
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j+1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j+1, "\u2713", -1);
}
else
{
--- xlog-2.0.3.orig/src/dxcc.c
+++ xlog-2.0.3/src/dxcc.c
@@ -619,7 +619,7 @@
for (j = 0; j < MAX_BANDS; j++)
{
if (dxcc_c[lookup.country][j] > 0)
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "\u2713", -1);
else if (dxcc_w[lookup.country][j] > 0)
{
temp = g_strdup_printf ("%d", dxcc_w[lookup.country][j]);
@@ -640,7 +640,7 @@
for (j = 0; j < MAX_BANDS; j++)
{
if (wac_c[lookup.continent][j] > 0)
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "\u2713", -1);
else if (wac_w[lookup.continent][j] > 0)
{
temp = g_strdup_printf ("%d", wac_w[lookup.continent][j]);
@@ -662,7 +662,7 @@
for (j = 0; j < MAX_BANDS; j++)
{
if (was_c[st][j] > 0)
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "\u2713", -1);
else if (was_w[st][j] > 0)
{
temp = g_strdup_printf ("%d", was_w[st][j]);
@@ -683,7 +683,7 @@
for (j = 0; j < MAX_BANDS; j++)
{
if (waz_c[lookup.cq-1][j] > 0)
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "\u2713", -1);
else if (waz_w[lookup.cq-1][j] > 0)
{
temp = g_strdup_printf ("%d", waz_w[lookup.cq-1][j]);
@@ -709,7 +709,7 @@
gpointer p_iota_c = g_hash_table_lookup (iota_c[j], iotastr);
if (p_iota_c && GPOINTER_TO_INT(p_iota_c) > 0)
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "\u2713", -1);
else if (p_iota_w && GPOINTER_TO_INT(p_iota_w) > 0)
{
temp = g_strdup_printf ("%d", GPOINTER_TO_INT(p_iota_w));
@@ -742,7 +742,7 @@
gpointer p_loc_c = g_hash_table_lookup (loc_c[j], loc4);
if (p_loc_c && GPOINTER_TO_INT(p_loc_c) > 0)
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "0", -1);
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j + 1, "\u2713", -1);
else if (p_loc_w && GPOINTER_TO_INT(p_loc_w) > 0)
{
temp = g_strdup_printf ("%d", GPOINTER_TO_INT(p_loc_w));
_______________________________________________
Xlog-discussion mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/xlog-discussion