mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use an ellipsis for Nitrox O2% ranges
The plain dash may look a bit too much like a trimix specification. Is the ellipsis better? Maybe. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d1d17c543c
commit
11495bbb2b
1 changed files with 3 additions and 1 deletions
|
@ -292,6 +292,8 @@ static gint nitrox_sort_func(GtkTreeModel *model,
|
||||||
return a_he - b_he;
|
return a_he - b_he;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define UTF8_ELLIPSIS "\xE2\x80\xA6"
|
||||||
|
|
||||||
static void nitrox_data_func(GtkTreeViewColumn *col,
|
static void nitrox_data_func(GtkTreeViewColumn *col,
|
||||||
GtkCellRenderer *renderer,
|
GtkCellRenderer *renderer,
|
||||||
GtkTreeModel *model,
|
GtkTreeModel *model,
|
||||||
|
@ -315,7 +317,7 @@ static void nitrox_data_func(GtkTreeViewColumn *col,
|
||||||
if (o2 == o2low)
|
if (o2 == o2low)
|
||||||
snprintf(buffer, sizeof(buffer), "%d", o2);
|
snprintf(buffer, sizeof(buffer), "%d", o2);
|
||||||
else
|
else
|
||||||
snprintf(buffer, sizeof(buffer), "%d-%d", o2low, o2);
|
snprintf(buffer, sizeof(buffer), "%d" UTF8_ELLIPSIS "%d", o2low, o2);
|
||||||
else
|
else
|
||||||
strcpy(buffer, "air");
|
strcpy(buffer, "air");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue