1
From 4f15e36b55c24c638e8eaf56eb723815a771e841 Mon Sep 17 00:00:00 2001
2
From: Ryan Lortie <desrt@desrt.ca>
3
Date: Tue, 16 Dec 2014 12:54:28 -0500
4
Subject: [PATCH] Use the OSX menubar layout for XFCE, Unity, etc.
6
Rename menus-osx to menus-traditional so that it will automatically get loaded
7
on platforms that require traditional menubar layouts.
9
Add "Quit", "Preferences" and "About" items in the appropriate places, but mark
10
them as hidden on Mac OS.
12
Simplify configure.ac to let GtkApplication handle things automatically.
14
We now also need to deal with the case where the gear menu will not
15
exist, even on non-OSX systems. Do that by hiding the button.
17
https://bugzilla.gnome.org/show_bug.cgi?id=741904
20
gedit/Makefile.am | 5 +-
21
gedit/gedit-app.c | 33 ++-
22
gedit/gedit-app.h | 2 +-
23
gedit/gedit-window.c | 16 +-
24
gedit/resources/gtk/menus-default.ui | 145 -------------
25
gedit/resources/gtk/menus-osx.ui | 277 -------------------------
26
gedit/resources/gtk/menus-traditional.ui | 338 +++++++++++++++++++++++--------
27
gedit/resources/gtk/menus.ui | 145 +++++++++++++
28
9 files changed, 425 insertions(+), 539 deletions(-)
29
delete mode 100644 gedit/resources/gtk/menus-default.ui
30
delete mode 100644 gedit/resources/gtk/menus-osx.ui
31
create mode 100644 gedit/resources/gtk/menus.ui
33
Index: gedit-3.16.3/configure.ac
34
===================================================================
35
--- gedit-3.16.3.orig/configure.ac
36
+++ gedit-3.16.3/configure.ac
37
@@ -434,10 +434,8 @@ fi
38
VAPIGEN_CHECK([0.25.1])
40
if test "$os_osx" = "yes"; then
41
- os_menus_ui=menus-osx.ui
42
os_style_css=gedit-style-osx.css
44
- os_menus_ui=menus-default.ui
47
OS_DEPENDENT_RESOURCE_FILES='<file preprocess="xml-stripblanks">gtk/menus-traditional.ui</file>'
48
@@ -449,7 +447,6 @@ if test "x$os_style_css" != "x"; then
51
AC_SUBST(OS_DEPENDENT_RESOURCE_FILES)
52
-AC_CONFIG_LINKS(gedit/resources/gtk/menus.ui:gedit/resources/gtk/$os_menus_ui)
56
Index: gedit-3.16.3/gedit/Makefile.am
57
===================================================================
58
--- gedit-3.16.3.orig/gedit/Makefile.am
59
+++ gedit-3.16.3/gedit/Makefile.am
60
@@ -260,10 +260,7 @@ gedit_overrides_PYTHON = gedit/Gedit.py
63
gedit_dist_resource_deps = \
64
- $(filter-out gedit/resources/css/gedit-style-os.css,$(filter-out gedit/resources/gtk/menus.ui,$(gedit_resource_deps))) \
65
- gedit/resources/gtk/menus-traditional.ui \
66
- gedit/resources/gtk/menus-default.ui \
67
- gedit/resources/gtk/menus-osx.ui \
68
+ $(filter-out %gedit/resources/css/gedit-style-os.css,$(gedit_resource_deps)) \
69
gedit/resources/css/gedit-style-osx.css
72
Index: gedit-3.16.3/gedit/gedit-app.c
73
===================================================================
74
--- gedit-3.16.3.orig/gedit/gedit-app.c
75
+++ gedit-3.16.3/gedit/gedit-app.c
76
@@ -79,7 +79,7 @@ struct _GeditAppPrivate
77
GSettings *ui_settings;
78
GSettings *window_settings;
80
- GMenuModel *window_menu;
81
+ GMenuModel *gear_menu;
82
GMenuModel *notebook_menu;
83
GMenuModel *tab_width_menu;
84
GMenuModel *line_col_menu;
85
@@ -192,7 +192,7 @@ gedit_app_dispose (GObject *object)
86
g_clear_object (&app->priv->theme_provider);
89
- g_clear_object (&app->priv->window_menu);
90
+ g_clear_object (&app->priv->gear_menu);
91
g_clear_object (&app->priv->notebook_menu);
92
g_clear_object (&app->priv->tab_width_menu);
93
g_clear_object (&app->priv->line_col_menu);
94
@@ -768,17 +768,7 @@ gedit_app_startup (GApplication *applica
98
- app->priv->window_menu = gtk_application_get_menubar (GTK_APPLICATION (app));
100
- if (app->priv->window_menu == NULL)
102
- app->priv->window_menu = get_menu_model (app, "gear-menu");
106
- g_object_ref (app->priv->window_menu);
109
+ app->priv->gear_menu = get_menu_model (app, "gear-menu");
110
app->priv->notebook_menu = get_menu_model (app, "notebook-menu");
111
app->priv->tab_width_menu = get_menu_model (app, "tab-width-menu");
112
app->priv->line_col_menu = get_menu_model (app, "line-col-menu");
113
@@ -1784,11 +1774,11 @@ _gedit_app_get_settings (GeditApp *app)
117
-_gedit_app_get_window_menu (GeditApp *app)
118
+_gedit_app_get_gear_menu (GeditApp *app)
120
g_return_val_if_fail (GEDIT_IS_APP (app), NULL);
122
- return app->priv->window_menu;
123
+ return app->priv->gear_menu;
127
@@ -1826,8 +1816,17 @@ _gedit_app_extend_menu (GeditApp *app
128
g_return_val_if_fail (GEDIT_IS_APP (app), NULL);
129
g_return_val_if_fail (extension_point != NULL, NULL);
131
- /* First look in the window menu */
132
- section = find_extension_point_section (app->priv->window_menu, extension_point);
133
+ /* First look in the gear or window menu */
134
+ if (app->priv->gear_menu)
136
+ model = app->priv->gear_menu;
140
+ model = gtk_application_get_menubar (GTK_APPLICATION (app));
143
+ section = find_extension_point_section (model, extension_point);
145
/* otherwise look in the app menu */
147
Index: gedit-3.16.3/gedit/gedit-app.h
148
===================================================================
149
--- gedit-3.16.3.orig/gedit/gedit-app.h
150
+++ gedit-3.16.3/gedit/gedit-app.h
151
@@ -135,7 +135,7 @@ void _gedit_app_set_default_print_set
153
GObject *_gedit_app_get_settings (GeditApp *app);
155
-GMenuModel *_gedit_app_get_window_menu (GeditApp *app);
156
+GMenuModel *_gedit_app_get_gear_menu (GeditApp *app);
158
GMenuModel *_gedit_app_get_notebook_menu (GeditApp *app);
160
Index: gedit-3.16.3/gedit/gedit-window.c
161
===================================================================
162
--- gedit-3.16.3.orig/gedit/gedit-window.c
163
+++ gedit-3.16.3/gedit/gedit-window.c
164
@@ -2802,9 +2802,19 @@ gedit_window_init (GeditWindow *window)
166
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
168
- gear_menu = _gedit_app_get_window_menu (GEDIT_APP (g_application_get_default ())),
169
- gtk_menu_button_set_menu_model (window->priv->gear_button, gear_menu);
170
- gtk_menu_button_set_menu_model (window->priv->fullscreen_gear_button, gear_menu);
171
+ gear_menu = _gedit_app_get_gear_menu (GEDIT_APP (g_application_get_default ()));
174
+ gtk_menu_button_set_menu_model (window->priv->gear_button, gear_menu);
175
+ gtk_menu_button_set_menu_model (window->priv->fullscreen_gear_button, gear_menu);
179
+ gtk_widget_hide (GTK_WIDGET (window->priv->gear_button));
180
+ gtk_widget_hide (GTK_WIDGET (window->priv->fullscreen_gear_button));
181
+ gtk_widget_set_no_show_all (GTK_WIDGET (window->priv->gear_button), TRUE);
182
+ gtk_widget_set_no_show_all (GTK_WIDGET (window->priv->fullscreen_gear_button), TRUE);
185
g_signal_connect (GTK_TOGGLE_BUTTON (window->priv->fullscreen_open_button),
187
Index: gedit-3.16.3/gedit/resources/gtk/menus-default.ui
188
===================================================================
189
--- gedit-3.16.3.orig/gedit/resources/gtk/menus-default.ui
192
-<?xml version="1.0"?>
194
- <!-- interface-requires gtk+ 3.0 -->
195
- <menu id="app-menu">
197
- <attribute name="id">app-commands-section</attribute>
199
- <attribute name="label" translatable="yes">_New Window</attribute>
200
- <attribute name="action">app.new-window</attribute>
204
- <attribute name="id">preferences-section</attribute>
206
- <attribute name="label" translatable="yes">_Preferences</attribute>
207
- <attribute name="action">app.preferences</attribute>
211
- <attribute name="id">help-section</attribute>
213
- <attribute name="label" translatable="yes">_Help</attribute>
214
- <attribute name="action">app.help</attribute>
217
- <attribute name="label" translatable="yes">_About</attribute>
218
- <attribute name="action">app.about</attribute>
221
- <attribute name="label" translatable="yes">_Quit</attribute>
222
- <attribute name="action">app.quit</attribute>
226
- <menu id="gear-menu">
228
- <attribute name="id">juntion-section</attribute>
229
- <attribute name="display-hint">horizontal-buttons</attribute>
231
- <attribute name="label" translatable="yes">_Reload</attribute>
232
- <attribute name="action">win.revert</attribute>
233
- <attribute name="verb-icon">view-refresh-symbolic</attribute>
236
- <attribute name="label" translatable="yes">_Print…</attribute>
237
- <attribute name="action">win.print</attribute>
238
- <attribute name="verb-icon">printer-symbolic</attribute>
241
- <attribute name="label" translatable="yes">_Fullscreen</attribute>
242
- <attribute name="action">win.fullscreen</attribute>
243
- <attribute name="verb-icon">view-fullscreen-symbolic</attribute>
247
- <attribute name="id">file-section</attribute>
250
- <attribute name="id">file-section-1</attribute>
252
- <attribute name="label" translatable="yes">_Save As…</attribute>
253
- <attribute name="action">win.save-as</attribute>
256
- <attribute name="label" translatable="yes">Save _All</attribute>
257
- <attribute name="action">win.save-all</attribute>
261
- <attribute name="id">edit-section</attribute>
264
- <attribute name="id">edit-section-1</attribute>
267
- <attribute name="id">search-section</attribute>
269
- <attribute name="label" translatable="yes">_Find…</attribute>
270
- <attribute name="action">win.find</attribute>
273
- <attribute name="label" translatable="yes">_Find and Replace…</attribute>
274
- <attribute name="action">win.replace</attribute>
277
- <attribute name="label" translatable="yes">_Clear Highlight</attribute>
278
- <attribute name="action">win.clear-highlight</attribute>
281
- <attribute name="label" translatable="yes">_Go to Line…</attribute>
282
- <attribute name="action">win.goto-line</attribute>
287
- <attribute name="label" translatable="yes">View</attribute>
289
- <attribute name="id">view-section</attribute>
291
- <attribute name="label" translatable="yes">Side _Panel</attribute>
292
- <attribute name="action">win.side-panel</attribute>
295
- <attribute name="label" translatable="yes">_Bottom Panel</attribute>
296
- <attribute name="action">win.bottom-panel</attribute>
297
- <attribute name="hidden-when">action-disabled</attribute>
301
- <attribute name="id">view-section-1</attribute>
304
- <attribute name="id">view-section-2</attribute>
306
- <attribute name="label" translatable="yes">_Highlight Mode…</attribute>
307
- <attribute name="action">win.highlight-mode</attribute>
312
- <attribute name="label" translatable="yes">Tools</attribute>
314
- <attribute name="id">spell-section</attribute>
317
- <attribute name="id">tools-section</attribute>
320
- <attribute name="id">tools-section-1</attribute>
325
- <attribute name="id">close-section</attribute>
327
- <attribute name="label" translatable="yes">_Close All</attribute>
328
- <attribute name="action">win.close-all</attribute>
331
- <attribute name="label" translatable="yes">_Close</attribute>
332
- <attribute name="action">win.close</attribute>
337
Index: gedit-3.16.3/gedit/resources/gtk/menus-osx.ui
338
===================================================================
339
--- gedit-3.16.3.orig/gedit/resources/gtk/menus-osx.ui
342
-<?xml version="1.0"?>
344
- <!-- interface-requires gtk+ 3.0 -->
345
- <menu id="menubar">
348
- <attribute name="label" translatable="yes">File</attribute>
350
- <attribute name="id">file-section-0</attribute>
352
- <attribute name="label" translatable="yes" comments="_New is the menu item under the File menu on OS X which creates a new empty document.">_New</attribute>
353
- <attribute name="action">win.new-tab</attribute>
357
- <attribute name="id">file-section</attribute>
359
- <attribute name="label" translatable="yes">_Open</attribute>
360
- <attribute name="action">win.open</attribute>
361
- <attribute name="hidden-when">action-disabled</attribute>
364
- <attribute name="label" translatable="yes">_Open</attribute>
365
- <attribute name="action">app.open</attribute>
366
- <attribute name="hidden-when">action-disabled</attribute>
369
- <attribute name="label" translatable="yes">Open _Recent</attribute>
372
- <attribute name="label" translatable="yes">Reopen Closed _Tab</attribute>
373
- <attribute name="action">win.reopen-closed-tab</attribute>
377
- <attribute name="id">recent-files-section</attribute>
382
- <attribute name="id">file-section-1</attribute>
384
- <attribute name="label" translatable="yes">_Save</attribute>
385
- <attribute name="action">win.save</attribute>
388
- <attribute name="label" translatable="yes">Save _As…</attribute>
389
- <attribute name="action">win.save-as</attribute>
393
- <attribute name="id">app-commands-section</attribute>
395
- <attribute name="label" translatable="yes">_New Window</attribute>
396
- <attribute name="action">app.new-window</attribute>
400
- <attribute name="id">file-section-2</attribute>
402
- <attribute name="label" translatable="yes">_Reload</attribute>
403
- <attribute name="action">win.revert</attribute>
407
- <attribute name="id">file-section-3</attribute>
409
- <attribute name="label" translatable="yes">_Print…</attribute>
410
- <attribute name="action">win.print</attribute>
414
- <attribute name="id">close-section</attribute>
416
- <attribute name="label" translatable="yes">_Close</attribute>
417
- <attribute name="action">win.close</attribute>
422
- <attribute name="label" translatable="yes">Edit</attribute>
424
- <attribute name="id">edit-section</attribute>
426
- <attribute name="label" translatable="yes">_Undo</attribute>
427
- <attribute name="action">win.undo</attribute>
430
- <attribute name="label" translatable="yes">_Redo</attribute>
431
- <attribute name="action">win.undo</attribute>
436
- <attribute name="label" translatable="yes">C_ut</attribute>
437
- <attribute name="action">win.cut</attribute>
440
- <attribute name="label" translatable="yes">_Copy</attribute>
441
- <attribute name="action">win.copy</attribute>
444
- <attribute name="label" translatable="yes">_Paste</attribute>
445
- <attribute name="action">win.paste</attribute>
448
- <attribute name="label" translatable="yes">_Delete</attribute>
449
- <attribute name="action">win.delete</attribute>
453
- <attribute name="id">edit-section-1</attribute>
455
- <attribute name="label" translatable="yes">Overwrite _Mode</attribute>
456
- <attribute name="action">win.overwrite-mode</attribute>
460
- <attribute name="id">edit-section-2</attribute>
462
- <attribute name="label" translatable="yes">Select _All</attribute>
463
- <attribute name="action">win.select-all</attribute>
468
- <attribute name="label" translatable="yes">View</attribute>
470
- <attribute name="id">view-section</attribute>
472
- <attribute name="label" translatable="yes">Side _Panel</attribute>
473
- <attribute name="action">win.side-panel</attribute>
476
- <attribute name="label" translatable="yes">_Bottom Panel</attribute>
477
- <attribute name="action">win.bottom-panel</attribute>
478
- <attribute name="hidden-when">action-disabled</attribute>
482
- <attribute name="id">view-section-1</attribute>
484
- <attribute name="label" translatable="yes">_Fullscreen</attribute>
485
- <attribute name="action">win.fullscreen</attribute>
489
- <attribute name="id">view-section-2</attribute>
491
- <attribute name="label" translatable="yes">_Highlight Mode…</attribute>
492
- <attribute name="action">win.highlight-mode</attribute>
497
- <attribute name="label" translatable="yes">Search</attribute>
499
- <attribute name="id">search-section</attribute>
501
- <attribute name="label" translatable="yes">_Find…</attribute>
502
- <attribute name="action">win.find</attribute>
505
- <attribute name="label" translatable="yes">Find Ne_xt</attribute>
506
- <attribute name="action">win.find-next</attribute>
509
- <attribute name="label" translatable="yes">Find Pre_vious</attribute>
510
- <attribute name="action">win.find-prev</attribute>
514
- <attribute name="id">search-section-1</attribute>
516
- <attribute name="label" translatable="yes">Find and _Replace…</attribute>
517
- <attribute name="action">win.replace</attribute>
521
- <attribute name="id">search-section-2</attribute>
523
- <attribute name="label" translatable="yes">_Clear Highlight</attribute>
524
- <attribute name="action">win.clear-highlight</attribute>
528
- <attribute name="id">search-section-3</attribute>
530
- <attribute name="label" translatable="yes">Go to _Line…</attribute>
531
- <attribute name="action">win.goto-line</attribute>
536
- <attribute name="label" translatable="yes">Tools</attribute>
538
- <attribute name="id">spell-section</attribute>
541
- <attribute name="id">tools-section</attribute>
544
- <attribute name="id">tools-section-1</attribute>
547
- <attribute name="id">preferences-section</attribute>
551
- <attribute name="label" translatable="yes">Documents</attribute>
553
- <attribute name="id">documents-section</attribute>
555
- <attribute name="label" translatable="yes">_Save All</attribute>
556
- <attribute name="action">win.save-all</attribute>
559
- <attribute name="label" translatable="yes">_Close All</attribute>
560
- <attribute name="action">win.close-all</attribute>
564
- <attribute name="id">documents-section-1</attribute>
566
- <attribute name="label" translatable="yes">_New Tab Group</attribute>
567
- <attribute name="action">win.new-tab-group</attribute>
570
- <attribute name="label" translatable="yes">P_revious Tab Group</attribute>
571
- <attribute name="action">win.previous-tab-group</attribute>
574
- <attribute name="label" translatable="yes">Nex_t Tab Group</attribute>
575
- <attribute name="action">win.next-tab-group</attribute>
579
- <attribute name="id">documents-section-2</attribute>
581
- <attribute name="label" translatable="yes">_Previous Document</attribute>
582
- <attribute name="action">win.previous-document</attribute>
585
- <attribute name="label" translatable="yes">N_ext Document</attribute>
586
- <attribute name="action">win.next-document</attribute>
590
- <attribute name="id">documents-section-3</attribute>
592
- <attribute name="label" translatable="yes">_Move To New Window</attribute>
593
- <attribute name="action">win.move-to-new-window</attribute>
598
- <attribute name="label" translatable="yes">Help</attribute>
600
- <attribute name="id">help-section</attribute>
602
- <attribute name="label" translatable="yes">_Help</attribute>
603
- <attribute name="action">app.help</attribute>
609
- <!--<menu id="gear-menu">
611
- <attribute name="id">edit-section</attribute>
614
- <attribute name="id">edit-section-1</attribute>
619
Index: gedit-3.16.3/gedit/resources/gtk/menus-traditional.ui
620
===================================================================
621
--- gedit-3.16.3.orig/gedit/resources/gtk/menus-traditional.ui
622
+++ gedit-3.16.3/gedit/resources/gtk/menus-traditional.ui
624
<?xml version="1.0"?>
626
<!-- interface-requires gtk+ 3.0 -->
627
- <menu id="gear-menu">
629
- <attribute name="id">juntion-section</attribute>
630
- <attribute name="display-hint">horizontal-buttons</attribute>
632
- <attribute name="label" translatable="yes">_Reload</attribute>
633
- <attribute name="action">win.revert</attribute>
634
- <attribute name="verb-icon">view-refresh-symbolic</attribute>
637
- <attribute name="label" translatable="yes">_Print…</attribute>
638
- <attribute name="action">win.print</attribute>
639
- <attribute name="verb-icon">printer-symbolic</attribute>
642
- <attribute name="label" translatable="yes">_Fullscreen</attribute>
643
- <attribute name="action">win.fullscreen</attribute>
644
- <attribute name="verb-icon">view-fullscreen-symbolic</attribute>
648
- <attribute name="id">file-section</attribute>
651
- <attribute name="id">file-section-1</attribute>
653
- <attribute name="label" translatable="yes">_Save As…</attribute>
654
- <attribute name="action">win.save-as</attribute>
657
- <attribute name="label" translatable="yes">Save _All</attribute>
658
- <attribute name="action">win.save-all</attribute>
662
- <attribute name="id">edit-section</attribute>
665
- <attribute name="id">edit-section-1</attribute>
668
- <attribute name="id">search-section</attribute>
670
- <attribute name="label" translatable="yes">_Find…</attribute>
671
- <attribute name="action">win.find</attribute>
674
- <attribute name="label" translatable="yes">_Find and Replace…</attribute>
675
- <attribute name="action">win.replace</attribute>
678
- <attribute name="label" translatable="yes">_Clear Highlight</attribute>
679
- <attribute name="action">win.clear-highlight</attribute>
682
- <attribute name="label" translatable="yes">_Go to Line…</attribute>
683
- <attribute name="action">win.goto-line</attribute>
686
+ <menu id="menubar">
689
+ <attribute name="label" translatable="yes">File</attribute>
691
+ <attribute name="id">file-section-0</attribute>
693
+ <attribute name="label" translatable="yes" comments="_New is the menu item under the File menu on OS X which creates a new empty document.">_New</attribute>
694
+ <attribute name="action">win.new-tab</attribute>
698
+ <attribute name="id">file-section</attribute>
700
+ <attribute name="label" translatable="yes">_Open</attribute>
701
+ <attribute name="action">win.open</attribute>
702
+ <attribute name="hidden-when">action-disabled</attribute>
705
+ <attribute name="label" translatable="yes">_Open</attribute>
706
+ <attribute name="action">app.open</attribute>
707
+ <attribute name="hidden-when">action-disabled</attribute>
710
+ <attribute name="label" translatable="yes">Open _Recent</attribute>
713
+ <attribute name="label" translatable="yes">Reopen Closed _Tab</attribute>
714
+ <attribute name="action">win.reopen-closed-tab</attribute>
718
+ <attribute name="id">recent-files-section</attribute>
723
+ <attribute name="id">file-section-1</attribute>
725
+ <attribute name="label" translatable="yes">_Save</attribute>
726
+ <attribute name="action">win.save</attribute>
729
+ <attribute name="label" translatable="yes">Save _As…</attribute>
730
+ <attribute name="action">win.save-as</attribute>
734
+ <attribute name="id">app-commands-section</attribute>
736
+ <attribute name="label" translatable="yes">_New Window</attribute>
737
+ <attribute name="action">app.new-window</attribute>
741
+ <attribute name="id">file-section-2</attribute>
743
+ <attribute name="label" translatable="yes">_Reload</attribute>
744
+ <attribute name="action">win.revert</attribute>
748
+ <attribute name="id">file-section-3</attribute>
750
+ <attribute name="label" translatable="yes">_Print…</attribute>
751
+ <attribute name="action">win.print</attribute>
755
+ <attribute name="id">close-section</attribute>
757
+ <attribute name="label" translatable="yes">_Close</attribute>
758
+ <attribute name="action">win.close</attribute>
761
+ <attribute name="label" translatable="yes">_Quit</attribute>
762
+ <attribute name="hidden-when">macos-menubar</attribute>
763
+ <attribute name="action">app.quit</attribute>
768
+ <attribute name="label" translatable="yes">Edit</attribute>
770
+ <attribute name="id">edit-section</attribute>
772
+ <attribute name="label" translatable="yes">_Undo</attribute>
773
+ <attribute name="action">win.undo</attribute>
776
+ <attribute name="label" translatable="yes">_Redo</attribute>
777
+ <attribute name="action">win.undo</attribute>
782
+ <attribute name="label" translatable="yes">C_ut</attribute>
783
+ <attribute name="action">win.cut</attribute>
786
+ <attribute name="label" translatable="yes">_Copy</attribute>
787
+ <attribute name="action">win.copy</attribute>
790
+ <attribute name="label" translatable="yes">_Paste</attribute>
791
+ <attribute name="action">win.paste</attribute>
794
+ <attribute name="label" translatable="yes">_Delete</attribute>
795
+ <attribute name="action">win.delete</attribute>
799
+ <attribute name="id">edit-section-1</attribute>
801
+ <attribute name="label" translatable="yes">Overwrite _Mode</attribute>
802
+ <attribute name="action">win.overwrite-mode</attribute>
806
+ <attribute name="id">edit-section-2</attribute>
808
+ <attribute name="label" translatable="yes">Select _All</attribute>
809
+ <attribute name="action">win.select-all</attribute>
814
+ <attribute name="label" translatable="yes">_Preferences</attribute>
815
+ <attribute name="hidden-when">macos-menubar</attribute>
816
+ <attribute name="action">app.preferences</attribute>
821
<attribute name="label" translatable="yes">View</attribute>
823
<attribute name="id">view-section</attribute>
827
<attribute name="id">view-section-1</attribute>
829
+ <attribute name="label" translatable="yes">_Fullscreen</attribute>
830
+ <attribute name="action">win.fullscreen</attribute>
834
<attribute name="id">view-section-2</attribute>
839
+ <attribute name="label" translatable="yes">Search</attribute>
841
+ <attribute name="id">search-section</attribute>
843
+ <attribute name="label" translatable="yes">_Find…</attribute>
844
+ <attribute name="action">win.find</attribute>
847
+ <attribute name="label" translatable="yes">Find Ne_xt</attribute>
848
+ <attribute name="action">win.find-next</attribute>
851
+ <attribute name="label" translatable="yes">Find Pre_vious</attribute>
852
+ <attribute name="action">win.find-prev</attribute>
856
+ <attribute name="id">search-section-1</attribute>
858
+ <attribute name="label" translatable="yes">Find and _Replace…</attribute>
859
+ <attribute name="action">win.replace</attribute>
863
+ <attribute name="id">search-section-2</attribute>
865
+ <attribute name="label" translatable="yes">_Clear Highlight</attribute>
866
+ <attribute name="action">win.clear-highlight</attribute>
870
+ <attribute name="id">search-section-3</attribute>
872
+ <attribute name="label" translatable="yes">Go to _Line…</attribute>
873
+ <attribute name="action">win.goto-line</attribute>
878
<attribute name="label" translatable="yes">Tools</attribute>
880
<attribute name="id">spell-section</attribute>
883
<attribute name="id">tools-section-1</attribute>
886
+ <attribute name="id">preferences-section</attribute>
890
+ <attribute name="label" translatable="yes">Documents</attribute>
892
+ <attribute name="id">documents-section</attribute>
894
+ <attribute name="label" translatable="yes">_Save All</attribute>
895
+ <attribute name="action">win.save-all</attribute>
898
+ <attribute name="label" translatable="yes">_Close All</attribute>
899
+ <attribute name="action">win.close-all</attribute>
903
+ <attribute name="id">documents-section-1</attribute>
905
+ <attribute name="label" translatable="yes">_New Tab Group</attribute>
906
+ <attribute name="action">win.new-tab-group</attribute>
909
+ <attribute name="label" translatable="yes">P_revious Tab Group</attribute>
910
+ <attribute name="action">win.previous-tab-group</attribute>
913
+ <attribute name="label" translatable="yes">Nex_t Tab Group</attribute>
914
+ <attribute name="action">win.next-tab-group</attribute>
918
+ <attribute name="id">documents-section-2</attribute>
920
+ <attribute name="label" translatable="yes">_Previous Document</attribute>
921
+ <attribute name="action">win.previous-document</attribute>
924
+ <attribute name="label" translatable="yes">N_ext Document</attribute>
925
+ <attribute name="action">win.next-document</attribute>
929
+ <attribute name="id">documents-section-3</attribute>
931
+ <attribute name="label" translatable="yes">_Move To New Window</attribute>
932
+ <attribute name="action">win.move-to-new-window</attribute>
937
+ <attribute name="label" translatable="yes">Help</attribute>
939
+ <attribute name="id">help-section</attribute>
941
+ <attribute name="label" translatable="yes">_Help</attribute>
942
+ <attribute name="action">app.help</attribute>
947
+ <attribute name="label" translatable="yes">_About</attribute>
948
+ <attribute name="hidden-when">macos-menubar</attribute>
949
+ <attribute name="action">app.about</attribute>
955
+ <!--<menu id="gear-menu">
957
- <attribute name="id">preferences-section</attribute>
959
- <attribute name="label" translatable="yes">_Preferences</attribute>
960
- <attribute name="action">app.preferences</attribute>
964
- <attribute name="id">help-section</attribute>
966
- <attribute name="label" translatable="yes">_Help</attribute>
967
- <attribute name="action">app.help</attribute>
970
- <attribute name="label" translatable="yes">_About</attribute>
971
- <attribute name="action">app.about</attribute>
973
+ <attribute name="id">edit-section</attribute>
976
- <attribute name="id">close-section</attribute>
978
- <attribute name="label" translatable="yes">_Close All</attribute>
979
- <attribute name="action">win.close-all</attribute>
982
- <attribute name="label" translatable="yes">_Close</attribute>
983
- <attribute name="action">win.close</attribute>
986
- <attribute name="label" translatable="yes">_Quit</attribute>
987
- <attribute name="action">app.quit</attribute>
989
+ <attribute name="id">edit-section-1</attribute>