From f46761f8d5f20566ae12da4f0bc068cd2cec3b6c Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Wed, 10 Feb 2016 13:45:50 +0100 Subject: preferences: remove sorting Since 3.18 is done in the menu directly. --- src/nautilus-preferences-dialog.c | 8 ----- src/resources/ui/nautilus-preferences-dialog.ui | 45 ------------------------- 2 files changed, 53 deletions(-) diff --git a/src/nautilus-preferences-dialog.c b/src/nautilus-preferences-dialog.c index 614507a59..e216315ce 100644 --- a/src/nautilus-preferences-dialog.c +++ b/src/nautilus-preferences-dialog.c @@ -42,7 +42,6 @@ /* string enum preferences */ #define NAUTILUS_PREFERENCES_DIALOG_DEFAULT_VIEW_WIDGET "default_view_combobox" -#define NAUTILUS_PREFERENCES_DIALOG_SORT_ORDER_WIDGET "sort_order_combobox" #define NAUTILUS_PREFERENCES_DIALOG_PREVIEW_FILES_WIDGET \ "preview_image_combobox" #define NAUTILUS_PREFERENCES_DIALOG_PREVIEW_FOLDER_WIDGET \ @@ -68,9 +67,6 @@ #define NAUTILUS_PREFERENCES_DIALOG_THUMBNAIL_LIMIT_WIDGET \ "preview_image_size_combobox" -static const char *const sort_order_values[] = { - "name", "size", "type", "mtime", "atime", "trash-time", NULL}; - static const char *const preview_values[] = {"always", "local-only", "never", NULL}; @@ -504,10 +500,6 @@ static void nautilus_preferences_dialog_setup(GtkBuilder *builder, NAUTILUS_PREFERENCES_DIALOG_REMOTE_RECURSIVE_SEARCH_WIDGET, NAUTILUS_PREFERENCES_REMOTE_RECURSIVE_SEARCH); - bind_builder_enum(builder, nautilus_preferences, - NAUTILUS_PREFERENCES_DIALOG_SORT_ORDER_WIDGET, - NAUTILUS_PREFERENCES_DEFAULT_SORT_ORDER, - (const char **)sort_order_values); bind_builder_enum(builder, nautilus_preferences, NAUTILUS_PREFERENCES_DIALOG_PREVIEW_FILES_WIDGET, NAUTILUS_PREFERENCES_SHOW_FILE_THUMBNAILS, diff --git a/src/resources/ui/nautilus-preferences-dialog.ui b/src/resources/ui/nautilus-preferences-dialog.ui index 4ecb86e9d..3d15242ff 100644 --- a/src/resources/ui/nautilus-preferences-dialog.ui +++ b/src/resources/ui/nautilus-preferences-dialog.ui @@ -236,51 +236,6 @@ False vertical 6 - - - True - False - 12 - - - True - False - _Arrange items: - True - sort_order_combobox - 0 - - - False - False - 0 - - - - - True - False - model2 - - - - 0 - - - - - False - True - 1 - - - - - False - True - 1 - - Sort _folders before files -- cgit v1.2.1