@@ -121,6 +121,8 @@ public class Files.AppMenu : Gtk.Popover {
121121 locale_button.get_style_context ().add_class (Gtk .STYLE_CLASS_MENUITEM );
122122 var informal_button = new Gtk .RadioButton .with_label_from_widget (iso_button, DateFormatMode . INFORMAL. to_string ());
123123 informal_button.get_style_context ().add_class (Gtk .STYLE_CLASS_MENUITEM );
124+ var compact_button = new Gtk .RadioButton .with_label_from_widget (iso_button, DateFormatMode . COMPACT. to_string ());
125+ compact_button.get_style_context ().add_class (Gtk .STYLE_CLASS_MENUITEM );
124126
125127 var menu_box = new Gtk .Box (VERTICAL , 0 ) {
126128 margin_bottom = 6
@@ -141,6 +143,7 @@ public class Files.AppMenu : Gtk.Popover {
141143 menu_box.add (iso_button );
142144 menu_box.add (locale_button );
143145 menu_box.add (informal_button );
146+ menu_box.add (compact_button );
144147
145148 menu_box.show_all ();
146149
@@ -167,6 +170,9 @@ public class Files.AppMenu : Gtk.Popover {
167170 case DateFormatMode . INFORMAL:
168171 informal_button. active= true ;
169172 break ;
173+ case DateFormatMode . COMPACT:
174+ compact_button. active= true ;
175+ break ;
170176 default:
171177 assert_not_reached ();
172178 }
@@ -186,6 +192,11 @@ public class Files.AppMenu : Gtk.Popover {
186192 app_settings. set_enum (" date-format" , DateFormatMode . INFORMAL );
187193 }
188194 });
195+ compact_button.toggled.connect (() => {
196+ if (compact_button. active) {
197+ app_settings. set_enum (" date-format" , DateFormatMode . COMPACT );
198+ }
199+ });
189200 }
190201
191202 private void set_undo_redo_tooltips () {
0 commit comments