From 49c5e6eaf2c113f7c15a42ac7babc01f13f57918 Mon Sep 17 00:00:00 2001 From: Andre Miranda Date: Sun, 2 Sep 2018 12:23:12 -0300 Subject: [PATCH] Remove show file size in binary format from preferences (Bug #14653) --- thunar/thunar-list-model.c | 2 +- thunar/thunar-preferences-dialog.c | 7 ------- thunar/thunar-preferences.c | 2 +- thunar/thunar-properties-dialog.c | 6 +----- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/thunar/thunar-list-model.c b/thunar/thunar-list-model.c index 529e4e30..ac015e8e 100644 --- a/thunar/thunar-list-model.c +++ b/thunar/thunar-list-model.c @@ -360,7 +360,7 @@ thunar_list_model_class_init (ThunarListModelClass *klass) g_param_spec_boolean ("file-size-binary", "file-size-binary", "file-size-binary", - FALSE, + TRUE, EXO_PARAM_READWRITE); /* install properties */ diff --git a/thunar/thunar-preferences-dialog.c b/thunar/thunar-preferences-dialog.c index f3731c71..27de82a0 100644 --- a/thunar/thunar-preferences-dialog.c +++ b/thunar/thunar-preferences-dialog.c @@ -333,13 +333,6 @@ thunar_preferences_dialog_init (ThunarPreferencesDialog *dialog) gtk_grid_attach (GTK_GRID (grid), button, 0, 3, 2, 1); gtk_widget_show (button); - button = gtk_check_button_new_with_mnemonic (_("Show file size in binary format")); - exo_mutual_binding_new (G_OBJECT (dialog->preferences), "misc-file-size-binary", G_OBJECT (button), "active"); - gtk_widget_set_tooltip_text (button, _("Select this option to show file size in binary format instead of decimal.")); - gtk_widget_set_hexpand (button, TRUE); - gtk_grid_attach (GTK_GRID (grid), button, 0, 4, 2, 1); - gtk_widget_show (button); - frame = g_object_new (GTK_TYPE_FRAME, "border-width", 0, "shadow-type", GTK_SHADOW_NONE, NULL); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0); gtk_widget_show (frame); diff --git a/thunar/thunar-preferences.c b/thunar/thunar-preferences.c index 8a5df7c9..2822cf5b 100644 --- a/thunar/thunar-preferences.c +++ b/thunar/thunar-preferences.c @@ -744,7 +744,7 @@ thunar_preferences_class_init (ThunarPreferencesClass *klass) g_param_spec_boolean ("misc-file-size-binary", "MiscFileSizeBinary", NULL, - FALSE, + TRUE, EXO_PARAM_READWRITE); /** diff --git a/thunar/thunar-properties-dialog.c b/thunar/thunar-properties-dialog.c index 4168b53f..800efe8d 100644 --- a/thunar/thunar-properties-dialog.c +++ b/thunar/thunar-properties-dialog.c @@ -234,14 +234,10 @@ thunar_properties_dialog_init (ThunarPropertiesDialog *dialog) GtkWidget *image; /* acquire a reference on the preferences and monitor the - "misc-date-style" and "misc-file-size-binary" settings */ + "misc-date-style" setting */ dialog->preferences = thunar_preferences_get (); g_signal_connect_swapped (G_OBJECT (dialog->preferences), "notify::misc-date-style", G_CALLBACK (thunar_properties_dialog_reload), dialog); - exo_binding_new (G_OBJECT (dialog->preferences), "misc-file-size-binary", - G_OBJECT (dialog), "file-size-binary"); - g_signal_connect_swapped (G_OBJECT (dialog->preferences), "notify::misc-file-size-binary", - G_CALLBACK (thunar_properties_dialog_reload), dialog); /* create a new thumbnailer */ dialog->thumbnailer = thunar_thumbnailer_get (); -- 2.18.0