From 7814fa4c9f24c220cc55ae728d717107f754cb72 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 27 Jun 2014 13:08:53 +0200 Subject: Add option in the UI to set IEC units usage Closes https://github.com/mate-desktop/caja/issues/293 --- src/caja-file-management-properties.c | 5 +++ src/caja-file-management-properties.ui | 67 ++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c index 5bac9e25..d5f62b68 100644 --- a/src/caja-file-management-properties.c +++ b/src/caja-file-management-properties.c @@ -68,6 +68,7 @@ #define CAJA_FILE_MANAGEMENT_PROPERTIES_TREE_VIEW_FOLDERS_WIDGET "treeview_folders_checkbutton" #define CAJA_FILE_MANAGEMENT_PROPERTIES_MEDIA_AUTOMOUNT_OPEN "media_automount_open_checkbutton" #define CAJA_FILE_MANAGEMENT_PROPERTIES_MEDIA_AUTORUN_NEVER "media_autorun_never_checkbutton" +#define CAJA_FILE_MANAGEMENT_PROPERTIES_USE_IEC_UNITS_WIDGET "use_iec_units" /* int enums */ #define CAJA_FILE_MANAGEMENT_PROPERTIES_THUMBNAIL_LIMIT_WIDGET "preview_image_size_combobox" @@ -946,6 +947,10 @@ caja_file_management_properties_dialog_setup (GtkBuilder *builder, GtkWindow *wi CAJA_FILE_MANAGEMENT_PROPERTIES_TREE_VIEW_FOLDERS_WIDGET, CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES); + bind_builder_bool (builder, caja_preferences, + CAJA_FILE_MANAGEMENT_PROPERTIES_USE_IEC_UNITS_WIDGET, + CAJA_PREFERENCES_USE_IEC_UNITS); + bind_builder_enum (builder, caja_preferences, CAJA_FILE_MANAGEMENT_PROPERTIES_DEFAULT_VIEW_WIDGET, CAJA_PREFERENCES_DEFAULT_FOLDER_VIEWER, diff --git a/src/caja-file-management-properties.ui b/src/caja-file-management-properties.ui index 5c4c3036..d952f720 100644 --- a/src/caja-file-management-properties.ui +++ b/src/caja-file-management-properties.ui @@ -1703,6 +1703,73 @@ False + + + True + False + 6 + + + True + <b>Size</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + True + 0.5 + 0.5 + 1 + 1 + 0 + 0 + 12 + 0 + + + True + True + _Show file sizes with IEC units + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + + 0 + False + False + + + + + 0 + False + False + + False -- cgit v1.2.1