From 9599c29c465cf8b0ac64969152e645ed09fef1d0 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 3 May 2014 23:57:45 -0400 Subject: Use filesize format based on OS Adds gui_filesize_iec option on Unix Closes #966 --- src/common/cfgfiles.c | 1 + src/common/hexchat.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/common') diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 3e14d748..1207ff69 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -416,6 +416,7 @@ const struct prefs vars[] = {"gui_dialog_left", P_OFFINT (hex_gui_dialog_left), TYPE_INT}, {"gui_dialog_top", P_OFFINT (hex_gui_dialog_top), TYPE_INT}, {"gui_dialog_width", P_OFFINT (hex_gui_dialog_width), TYPE_INT}, + {"gui_filesize_iec", P_OFFINT (hex_gui_filesize_iec), TYPE_BOOL}, {"gui_focus_omitalerts", P_OFFINT (hex_gui_focus_omitalerts), TYPE_BOOL}, {"gui_hide_menu", P_OFFINT (hex_gui_hide_menu), TYPE_BOOL}, {"gui_input_attr", P_OFFINT (hex_gui_input_attr), TYPE_BOOL}, diff --git a/src/common/hexchat.h b/src/common/hexchat.h index 5d96fd4b..1c48fe71 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -156,6 +156,7 @@ struct hexchatprefs unsigned int hex_gui_autoopen_recv; unsigned int hex_gui_autoopen_send; unsigned int hex_gui_compact; + unsigned int hex_gui_filesize_iec; unsigned int hex_gui_focus_omitalerts; unsigned int hex_gui_hide_menu; unsigned int hex_gui_input_attr; -- cgit 1.4.1