summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-10-22 21:22:17 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-22 11:36:31 -0700
commit77afa1bc933218eaefd43e94664a936518ce0dcd (patch)
tree0a57f372c1360e5fdc29a585622a7b7a0c8b076d /info.c
parente77e5e1810633de29b8649ff7e36cbb479d5ecf1 (diff)
downloadsubsurface-77afa1bc933218eaefd43e94664a936518ce0dcd.tar.gz
Use the 'star_strings' buffer to set combo box entries for rating
info.c: extended_dive_info_widget() was still using the precompiler macros instead of the 'star_strings' buffer, which may end up being modified if the unicode stars are not supported on a certain OS (UTF8_FONT_WITH_STARS). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/info.c b/info.c
index f6905dcd1..838013580 100644
--- a/info.c
+++ b/info.c
@@ -924,12 +924,12 @@ GtkWidget *extended_dive_info_widget(void)
people_list = gtk_list_store_new(1, G_TYPE_STRING);
location_list = gtk_list_store_new(1, G_TYPE_STRING);
star_list = gtk_list_store_new(1, G_TYPE_STRING);
- add_string_list_entry(ZERO_STARS, star_list);
- add_string_list_entry(ONE_STARS, star_list);
- add_string_list_entry(TWO_STARS, star_list);
- add_string_list_entry(THREE_STARS, star_list);
- add_string_list_entry(FOUR_STARS, star_list);
- add_string_list_entry(FIVE_STARS, star_list);
+ add_string_list_entry(star_strings[0], star_list);
+ add_string_list_entry(star_strings[1], star_list);
+ add_string_list_entry(star_strings[2], star_list);
+ add_string_list_entry(star_strings[3], star_list);
+ add_string_list_entry(star_strings[4], star_list);
+ add_string_list_entry(star_strings[5], star_list);
suit_list = gtk_list_store_new(1, G_TYPE_STRING);
gtk_container_set_border_width(GTK_CONTAINER(vbox), 6);