[gnome-sound-recorder] App menu: standardize Preferences/About/Quit
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] App menu: standardize Preferences/About/Quit
- Date: Fri, 24 Jan 2014 02:07:34 +0000 (UTC)
commit 3585eae841cf2dc66d14e88074f6c124afdd78ed
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Fri Jan 24 01:38:22 2014 +0200
App menu: standardize Preferences/About/Quit
Add a separatoe between the preferences menu and the
about and quit menus. and replace "About Sound Recorder"
with "About".
See https://wiki.gnome.org/Design/HIG/ApplicationMenus
and https://bugzilla.gnome.org/show_bug.cgi?id=722868.
Signed-off-by: Meg Ford <meg387 gmail com>
src/main.js | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index 12a5343..aae4f7c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -59,9 +59,13 @@ const Application = new Lang.Class({
_initAppMenu: function() {
let menu = new Gio.Menu();
- menu.append(_("Preferences"), 'app.preferences');
- menu.append(_("About Sound Recorder"), 'app.about');
- menu.append(_("Quit"),'app.quit');
+ let section = new Gio.Menu();
+ menu.append_section(null, section);
+ section.append(_("Preferences"), 'app.preferences');
+ section = new Gio.Menu();
+ menu.append_section(null, section);
+ section.append(_("About"), 'app.about');
+ section.append(_("Quit"),'app.quit');
this.set_app_menu(menu);
let preferences = new Gio.SimpleAction({ name: 'preferences' });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]