Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: chrome/browser/gtk/standard_menus.cc

Issue 119393: Bind ^Q to quit, as is std with Linux GUI apps.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/gtk/standard_menus.h" 5 #include "chrome/browser/gtk/standard_menus.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 GDK_j, GDK_CONTROL_MASK }, 89 GDK_j, GDK_CONTROL_MASK },
90 { MENU_SEPARATOR }, 90 { MENU_SEPARATOR },
91 // TODO(erg): P13N stuff goes here as soon as they get IDS strings. 91 // TODO(erg): P13N stuff goes here as soon as they get IDS strings.
92 { MENU_NORMAL, IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA }, 92 { MENU_NORMAL, IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA },
93 { MENU_NORMAL, IDC_IMPORT_SETTINGS, IDS_IMPORT_SETTINGS }, 93 { MENU_NORMAL, IDC_IMPORT_SETTINGS, IDS_IMPORT_SETTINGS },
94 { MENU_SEPARATOR }, 94 { MENU_SEPARATOR },
95 { MENU_NORMAL, IDC_OPTIONS, IDS_OPTIONS, IDS_PRODUCT_NAME }, 95 { MENU_NORMAL, IDC_OPTIONS, IDS_OPTIONS, IDS_PRODUCT_NAME },
96 { MENU_NORMAL, IDC_ABOUT, IDS_ABOUT, IDS_PRODUCT_NAME }, 96 { MENU_NORMAL, IDC_ABOUT, IDS_ABOUT, IDS_PRODUCT_NAME },
97 { MENU_NORMAL, IDC_HELP_PAGE, IDS_HELP_PAGE, 0, NULL, GDK_F1 }, 97 { MENU_NORMAL, IDC_HELP_PAGE, IDS_HELP_PAGE, 0, NULL, GDK_F1 },
98 { MENU_SEPARATOR }, 98 { MENU_SEPARATOR },
99 { MENU_NORMAL, IDC_EXIT, IDS_EXIT }, 99 { MENU_NORMAL, IDC_EXIT, IDS_EXIT, 0, NULL, GDK_q, GDK_CONTROL_MASK },
100 { MENU_END } 100 { MENU_END }
101 }; 101 };
102 } // namespace 102 } // namespace
103 103
104 const MenuCreateMaterial* GetStandardPageMenu() { 104 const MenuCreateMaterial* GetStandardPageMenu() {
105 return standard_page_menu_materials; 105 return standard_page_menu_materials;
106 } 106 }
107 107
108 const MenuCreateMaterial* GetStandardAppMenu() { 108 const MenuCreateMaterial* GetStandardAppMenu() {
109 return standard_app_menu_materials; 109 return standard_app_menu_materials;
110 } 110 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698